API connection

For automatic placing of orders directly into our system, without the need to use the B2B interface, an API interface with a simple technical specification is prepared, where it is enough to send information about the order in the product code; quantity format.

REST API.

POST http://www.spvelkoobchod.cz/import/<token>

The system accepts data in a variable order in XML format of the following structure:

<?xml version="1.0"?>
<xml>
  <Options>
    <Currency>EUR</Currency>
    <Transport_ID>1</Transport_ID>
  </Options>
  <Items>
    <Item>
      <code>1214</code>
      <amount>8</amount>
    </Item>
    <Item>
      <code>5841214</code>
      <amount>1</amount>
    </Item>
    <Item>
      <code>02000230</code>
      <amount>3</amount>
    </Item>
  </Items>
</xml>

After processing, the output shows JSON containing the resulting status and possibly a list of products that were not inserted into the order. Output pattern:

{"status":"OK","items":[]}

All required products have been placed into the order and none of the products are missing, the order was accepted in full extent.

{"status":"OK","items":[{"code":"02012121","amount":2},{"code":"09212121","amount":1},{"code":"12943423","amount":3}]}

Some of the required products were not ordered at all or completely and their list is part of the answer. The value "amount" means the number of NON-ORDERED pieces. 

{"status":"NOT OK"}

None of the products were placed in the order - the order was not created.

Na vašem soukromí nám záleží
Tento internetový obchod ukládá soubory cookies, které pomáhají k jeho správnému fungování. Využíváním našich služeb s jejich používáním souhlasíte.
Allow everythingDo not allow cookies