Documentation
Imprimer

Service requête import commandes (data)

Requête permettant l’importation des commandes.

URL requête : http://www.expedy.fr/api/shop/data

ParamètreDescriptionFormat
shop_idUID de la boutique
(https://www.expedy.fr/console)
 
startDate unix de début de période demandée 
endDate 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