Articles
Articles - Demander des informations sur les articles
OBTENEZ votredomaine.com/api/items/items/:id
Header
json
Champ |
Type |
Description |
Authorization |
String |
Jeton d'authentification d'accès de base. |
Succès 200
json
Champ |
Type |
Description |
Article |
Objet |
Informations sur l'élément. |
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
{
"itemid": "1",
"rate": "100.00",
"taxrate": "5.00",
"taxid": "1",
"taxname": "PAYPAL",
"taxrate_2": "9.00",
"taxid_2": "2",
"taxname_2": "CGST",
"description": "JBL Soundbar",
"long_description": "The JBL Cinema SB110 is a hassle-free soundbar",
"group_id": "0",
"group_name": null,
"unit": ""
}
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "No data were found"}
Articles - Rechercher des informations sur les articles de facture
OBTENEZ votredomaine.com/api/items/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 |
Article |
Objet |
Informations sur l'élément |
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{ "rate": "100.00", "id": "1", "name": "(100.00) JBL Soundbar", "subtext": "The JBL Cinema SB110 is a hassle-free soundbar..."}
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "No data were found"}