Fonction Prestashop.LitDétailCmd
[Prestashop : Lit]
Syntaxe
Prestashop.LitDétailCmd(url : < Url >, apikey : < Clé API >, elem_id : < Identifiant > [, format_json : < Format JSON ? >])
- url : adresse du site marchand Prestashop (obligatoire)
- apikey : clé enregistrée dans le back-office de Prestashop pour l'usage du webservice (obligatoire ; la passer par un argument plutôt que l'écrire en clair)
- elem_id (alias : elemid, itemid, item_id, detail_cmd_id, detailcmdid, order_detail_id, orderdetailid) : identifiant Prestashop de la ressource à lire (obligatoire)
- format_json (alias : formatjson, jsonformat, json_format) : 0 par défaut ; à 1, le résultat est en JSON au lieu d'être en XML
Description
Lit une ressource "Détail des commandes" (ressource order_details de Prestashop). Retourne du XML, ou du JSON avec format_json à 1.
Exemple
Prestashop.LitDétailCmd(url : "https://monsite.fr/", apikey : <%CléApi%>, detail_cmd_id : 1)
Retourne le XML de la ressource.
Prestashop.LitDétailCmd(url : "https://monsite.fr/", apikey : <%CléApi%>, detail_cmd_id : 1, format_json : 1)
Retourne la ressource en JSON.