Catégorie de dépenses
Expense_category - Demander une catégorie de dépenses
OBTENEZ votredomaine.com/api/common/expense_category
Header
json
|
Champ |
Type |
Description |
|
Authorization |
String |
Jeton d'authentification d'accès de base. |
Succès 200
json
|
Champ |
Type |
Description |
|
Expense |
Déployer |
informations sur la catégorie. |
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": "cloud server","description": "AWS server"},{"id": "2","name": "website domain","description": "domain Management and configurations"}]
}
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "No data were found"}
Dépenses
Dépenses - Ajouter une dépense
POST votredomaine.com/api/expenses
Header
json
|
Champ |
Type |
Description |
|
Authorization |
String |
Jeton d'authentification d'accès de base. |
Paramètre
json
|
Champ |
Type |
Description |
|
expense_name (facultatif) |
String |
Facultatif. Nom de l'étendue |
|
note (facultatif) |
String |
Facultatif. Note d'étendue |
|
category |
Number |
Obligatoire. Catégorie de dépenses |
|
amount |
Décimal |
Obligatoire. Montant des dépenses |
|
date |
Date |
Obligatoire. Date de dépense |
|
clientid |
Number |
Facultatif. Customer_id |
|
currency |
Number |
Obligatoire. Champ Devise |
|
tax |
Number |
Facultatif. Taxe 1 |
|
tax2 |
Number |
Facultatif. Taxe 2 |
|
paymentmode |
Number |
Facultatif. Mode de paiement |
|
reference_no (facultatif) |
String |
Facultatif. Référence # |
|
recurring (facultatif) |
String |
Facultatif. récurrent 1 à 12 ou personnalisé |
|
repeat_every_custom (facultatif) |
Number |
Facultatif. si récurrent est un écart de Number défini personnalisé |
|
repeat_type_custom (facultatif) |
String |
Facultatif. si la récurrence est personnalisée, définissez l'option d'écart jour/semaine/mois/année |
Succès 200
json
|
Champ |
Type |
Description |
|
status |
booléen |
État de la demande. |
|
message |
String |
Dépense ajoutée avec succès |
Erreur 4xx
json
|
Nom |
Type |
Description |
|
status |
booléen |
État de la demande. |
|
message |
String |
Échec de la mise à jour des dépenses |
|
category |
String |
La catégorie de dépenses est introuvable. |
|
date |
String |
Le champ Date de dépense est obligatoire. |
|
amount |
String |
Le champ Montant est obligatoire. |
-
Réponse réussie
HTTP/1.1 200 OK{ "status": true, "message": "Expense Added Successfully"}
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "Expense Add Fail"}
Dépenses - Supprimer la dépense
SUPPRIMER votredomaine.com/api/expenses/:id
Header
json
|
Champ |
Type |
Description |
|
Authorization |
String |
Jeton d'authentification d'accès de base. |
Succès 200
json
|
Champ |
Type |
Description |
|
status |
booléen |
État de la demande. |
|
message |
String |
Dépense supprimée avec succès |
Erreur 4xx
json
|
Nom |
Type |
Description |
|
status |
booléen |
État de la demande. |
|
message |
String |
Échec de la suppression des dépenses |
-
Réponse réussie
HTTP/1.1 200 OK{ "status": true, "message": "Expense Deleted Successfully"}
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "Expense Delete Fail"}
Dépenses - Demander des informations sur les dépenses
OBTENEZ votredomaine.com/api/expenses/:id
Header
json
|
Champ |
Type |
Description |
|
Authorization |
String |
Jeton d'authentification d'accès de base. |
Paramètre
json
|
Champ |
Type |
Description |
|
id |
Number |
ID unique de dépense. |
Succès 200
json
|
Champ |
Type |
Description |
|
Expense |
Déployer |
Informations sur les dépenses. |
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
[{"id": "1","category": "1","currency": "1","amount": "50.00","tax": "0","tax2": "0","reference_no": "012457893","note": "AWS server hosting charges","expense_name": "Cloud Hosting","clientid": "1","project_id": "0","billable": "0","invoiceid": null,"paymentmode": "2","date": "2021-09-01","recurring_type": "month","repeat_every": "1","recurring": "1","cycles": "12","total_cycles": "0","custom_recurring": "0","last_recurring_date": null,"create_invoice_billable": "0","send_invoice_to_customer": "0","recurring_from": null,"dateadded": "2021-09-01 12:26:34","addedfrom": "1","is_expense_created_in_xero": "0","userid": "1","company": "Company A","vat": "","phonenumber": "","country": "0","city": "","zip": "","state": "","address": "","website": "","datecreated": "2020-05-25 22:55:49","active": "1","leadid": null,"billing_street": "","billing_city": "","billing_state": "","billing_zip": "","billing_country": "0","shipping_street": "","shipping_city": "","shipping_state": "","shipping_zip": "","shipping_country": "0","longitude": null,"latitude": null,"default_language": "","default_currency": "0","show_primary_contact": "0","stripe_id": null,"registration_confirmed": "1","name": "Hosting Management","description": "server space and other settings","show_on_pdf": "0","invoices_only": "0","expenses_only": "0","selected_by_default": "0","taxrate": null,"category_name": "Hosting Management","payment_mode_name": "Paypal","tax_name": null,"tax_name2": null,"taxrate2": null,"expenseid": "1","customfields": []}]
-
Réponse réussie
HTTP/1.1 404 Not Found{ "status": false, "message": "No data were found"}
Dépenses - Rechercher des informations sur les dépenses
OBTENEZ votredomaine.com/api/expenses/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 |
|
Dépenses |
Déployer |
Informations sur les dépenses |
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
[{"id": "1","category": "1","currency": "1","amount": "50.00","tax": "0","tax2": "0","reference_no": "012457893","note": "AWS server hosting charges","expense_name": "Cloud Hosting","clientid": "1","project_id": "0","billable": "0","invoiceid": null,"paymentmode": "2","date": "2021-09-01","recurring_type": "month","repeat_every": "1","recurring": "1","cycles": "12","total_cycles": "0","custom_recurring": "0","last_recurring_date": null,"create_invoice_billable": "0","send_invoice_to_customer": "0","recurring_from": null,"dateadded": "2021-09-01 12:26:34","addedfrom": "1","is_expense_created_in_xero": "0","userid": "1","company": "Company A","vat": "","phonenumber": "","country": "0","city": "","zip": "","state": "","address": "","website": "","datecreated": "2020-05-25 22:55:49","active": "1","leadid": null,"billing_street": "","billing_city": "","billing_state": "","billing_zip": "","billing_country": "0","shipping_street": "","shipping_city": "","shipping_state": "","shipping_zip": "","shipping_country": "0","longitude": null,"latitude": null,"default_language": "","default_currency": "0","show_primary_contact": "0","stripe_id": null,"registration_confirmed": "1","name": "Hosting Management","description": "server space and other settings","show_on_pdf": "0","invoices_only": "0","expenses_only": "0","selected_by_default": "0","taxrate": null,"category_name": "Hosting Management","payment_mode_name": "Paypal","tax_name": null,"tax_name2": null,"taxrate2": null,"expenseid": "1","customfields": []}]
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "No data were found"}
Dépenses - Mettre à jour une dépense
METTRE votredomaine.com/api/expenses
Header
json
|
Champ |
Type |
Description |
|
Authorization |
String |
Jeton d'authentification d'accès de base. |
Paramètre
json
|
Champ |
Type |
Description |
|
expense_name (facultatif) |
String |
Facultatif. Nom |
|
note (facultatif) |
String |
Facultatif. Note |
|
category |
Number |
Obligatoire. Catégorie de dépenses |
|
amount |
Décimal |
Obligatoire. Montant des dépenses |
|
date |
Date |
Obligatoire. Date de dépense |
|
clientid |
Number |
Facultatif. Customer_id |
|
currency |
Number |
Obligatoire. champ de devise |
|
tax |
Number |
Facultatif. Taxe 1 |
|
tax2 |
Number |
Facultatif. Taxe 2 |
|
paymentmode |
Number |
Facultatif. Mode de paiement |
|
reference_no (facultatif) |
String |
Facultatif. Référence # |
|
recurring (facultatif) |
String |
Facultatif. récurrent 1 à 12 ou personnalisé |
|
repeat_every_custom (facultatif) |
Number |
Facultatif. si récurrent est un écart de Number défini personnalisé |
|
expense_name (facultatif) |
String |
Facultatif. si la récurrence est personnalisée, définissez l'option d'écart jour/semaine/mois/année |
Succès 200
json
|
Champ |
Type |
Description |
|
status |
booléen |
État de la demande. |
|
message |
String |
Dépense mise à jour avec succès |
Erreur 4xx
json
|
Nom |
Type |
Description |
|
status |
booléen |
État de la demande. |
|
message |
String |
Échec de la mise à jour des dépenses |
|
category |
String |
La catégorie de dépenses est introuvable. |
|
date |
String |
Le champ Date de dépense est obligatoire. |
|
amount |
String |
Le champ Montant est obligatoire. |
-
Réponse réussie
HTTP/1.1 200 OK{ "status": true, "message": "Expense Updated Successfully"}
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "Expense Update Fail"