Help Center
-
Plugins | Modules | Connecteurs CMS
-
API | Developers
-
Imprimantes et Accessoires
-
Mentions Légales
-
Expedy TMS
-
Expedy SHIFT (Coursier)
-
Expedy SIM M2M
Print
Service requête import commandes (data)
Requête permettant l’importation des commandes.
URL requête : http://www.expedy.fr/api/shop/data
Paramètre | Description | Format |
shop_id | UID de la boutique (https://www.expedy.fr/console) | |
start | Date unix de début de période demandée | |
end | Date unix de fin de période demandée |
Exemple PHP
// xpdy call $xpdy_params = array( 'sid' => $sid, 'token' => $token, 'shop_id' => $shop_id, 'start' => $start, 'end' => $end ); $ch_xpdy = curl_init(); curl_setopt($ch_xpdy, CURLOPT_URL, "https://www.expedy.fr/api/shop/data"); curl_setopt($ch_xpdy, CURLOPT_POST, 1); curl_setopt($ch_xpdy, CURLOPT_POSTFIELDS, http_build_query($xpdy_params)); curl_setopt($ch_xpdy, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch_xpdy, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch_xpdy, CURLOPT_SSL_VERIFYPEER, false); $xpdyResult = curl_exec($ch_xpdy); curl_close($ch_xpdy); // end xpdy call
Résultat
order
date
company
firstname
lastname
address
streetaddress
city
postalcode
phone
email
products_refs
product_names
total
tax
total_tax_incl