Principe de fonctionnement

principe fonctionnement commande externe she

Json attendu

Json format
{
   "entity": "MyEntity",
   "ref_customer": "CL7824",
   "project_name": "Smartinstall, chantier RILLIEUX",
   "order_reference": "SMH02187X56",
   "order_date": "1563795172",
   "order_date_wish_shipment": "1569151972",
   "address_shipping": {
     "company": "SMATINSTALL SARL",
     "lastname": "",
     "firstname": "",
     "address1": "67 rue de la vilette",
     "address2": "",
     "postalcode": 69003,
     "city": "LYON",
     "state": "",
     "country": "FRANCE",
     "vat_number": "0123456789",
     "email": "compta@smartinstall.fr",
     "phone": "0478766554"
   },
   "address_delivery": {
     "company": "SMATINSTALL SARL",
     "lastname": "",
     "firstname": "",
     "address1": "67 rue de la vilette",
     "address2": "",
     "postalcode": 69003,
     "city": "LYON",
     "state": "",
     "country": "FRANCE",
     "email": "compta@smartinstall.fr",
     "phone": "0478766554"
   },
   "products": [
     {
       "reference": "FGBS-222",
       "unit_price": "30.11",
       "quantity": 12
     },
     {
       "reference": "ZIGATE-USB",
       "unit_price": "22.40",
       "quantity": 3
     },
     {
       "reference": "JEEDOM_SMART",
       "unit_price": "222.40",
       "quantity": 3
     }
   ],
   "lots": [
     {
       "lot_reference": "Lot_T2_1",
       "composition": [
         {
           "reference": "JEEDOM_SMART",
           "quantity": 1
         },
         {
           "reference": "ZIGATE-USB",
           "quantity": 1
         },
         {
           "reference": "FGBS-222",
           "quantity": 3
         }
       ]
     },
     {
       "lot_reference": "Lot_T4_1",
       "composition": [
         {
           "reference": "JEEDOM_SMART",
           "quantity": 1
         },
         {
           "reference": "ZIGATE-USB",
           "quantity": 1
         },
         {
           "reference": "FGBS-222",
           "quantity": 6
         }
       ]
     },
     {
       "lot_reference": "Lot_T2_2",
       "composition": [
         {
           "reference": "JEEDOM_SMART",
           "quantity": 1
         },
         {
           "reference": "ZIGATE-USB",
           "quantity": 1
         },
         {
           "reference": "FGBS-222",
           "quantity": 3
         }
       ]
     }
   ]
 }

Génération du token

Url format

https://commande.smarthome-europe.com/?token=yourtoken

Sécurité

La clé privée est fournit par Smarthome Europe, vous devrez nous fournir le referer.

Codes Erreurs

  • 23000: No token
  • 23001: No post data
  • 23002: The current referer don’t match with entity referer
  • 23003: The current token don’t match with entity token