Mode de paiement
Payment_Mode - Demander des modes de paiement
OBTENEZ votredomaine.com/api/common/payment_mode
Header
json
|
Champ |
Type |
Description |
|
Authorization |
String |
Jeton d'authentification d'accès de base. |
Succès 200
json
|
Champ |
Type |
Description |
|
Payment |
Array |
Modes. |
Erreur 4xx
json
|
Nom |
Type |
Description |
|
status |
booléen |
État de la demande. |
|
message |
String |
Aucune donnée n'a été trouvée. |
-
Réponse réussie
HTTP/1.1 200 OK[{"id": "1","name": "Bank","description": null,"show_on_pdf": "0","invoices_only": "0","expenses_only": "0","selected_by_default": "1","active": "1"}]
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "No data were found"}
Paiements
Paiements - Lister tous les paiements
OBTENEZ votredomaine.com/api/payments/:id
Header
json
|
Champ |
Type |
Description |
|
Authorization |
String |
Jeton d'authentification d'accès de base. |
Paramètre
json
|
Champ |
Type |
Description |
|
payment_id |
Number |
Identifiant unique de paiement facultatif |
Succès 200
json
|
Champ |
Type |
Description |
|
Payments |
Déployer |
Répertorier tous les enregistrements de paiement. |
Erreur 4xx
json
|
Nom |
Type |
Description |
|
status |
booléen |
État de la demande. |
|
message |
String |
Aucune donnée n'a été trouvée. |
-
Réponse réussie
HTTP/1.1 200 OK[{"id": "3","invoiceid": "7","amount": "1000.00","paymentmode": "3","paymentmethod": "","date": "2020-06-08","daterecorded": "2020-06-08 20:29:54","note": "","transactionid": "000355795931","name": "UPI","description": "","show_on_pdf": "0","invoices_only": "0","expenses_only": "0","selected_by_default": "0","active": "1","paymentid": "1"},{"id": "4","invoiceid": "12","amount": "-3.00","paymentmode": "4","paymentmethod": "","date": "2020-07-04","daterecorded": "2020-07-04 15:32:59","note": "","transactionid": "P228210122733439","name": "Stripe","description": "","show_on_pdf": "0","invoices_only": "0","expenses_only": "0","selected_by_default": "0","active": "1","paymentid": "2"},{"id": "1","invoiceid": "14","amount": "8.00","paymentmode": "1","paymentmethod": "","date": "2020-07-04","daterecorded": "2020-07-04 15:47:30","note": "","transactionid": "000360166374","name": "Bank","description": null,"show_on_pdf": "0","invoices_only": "0","expenses_only": "0","selected_by_default": "1","active": "1","paymentid": "3"},{"id": "2","invoiceid": "13","amount": "3.00","paymentmode": "2","paymentmethod": "Credit card","date": "2020-07-04","daterecorded": "2020-07-04 15:49:56","note": "","transactionid": "0124875873","name": "paypal","description": "","show_on_pdf": "0","invoices_only": "0","expenses_only": "0","selected_by_default": "0","active": "1","paymentid": "4"}]
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "No data were found"}
Paiements - Rechercher des informations sur les paiements
OBTENEZ votredomaine.com/api/payments/search/:keysearch
Header
json
|
Champ |
Type |
Description |
|
Authorization |
String |
Jeton d'authentification d'accès de base |
Paramètre
json
|
Champ |
Type |
Description |
|
keysearch |
String |
Rechercher des mots-clés |
Succès 200
json
|
Champ |
Type |
Description |
|
Paiements |
Déployer |
Informations sur les paiements |
Erreur 4xx
json
|
Nom |
Type |
Description |
|
status |
booléen |
État de la demande |
|
message |
String |
Aucune donnée n'a été trouvée |
-
Réponse réussie
HTTP/1.1 200 OK[{"id": "3","invoiceid": "14","amount": "8.00","paymentmode": "2","paymentmethod": "","date": "2020-07-04","daterecorded": "2020-07-04 15:47:30","note": "","transactionid": "",...}]
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "No data were found"}