The private Orders API allows you to send us your customers orders.

  • Usage Quotas: unlimited
    This API is not subject to requests quota.
  • Authentication: yes
    Key authentication is required to access and send data.
  • E-mail sending delay : 10 days
    From the date your orders are received via the API, your customers will be contacted 10 days later by e-mail.


The following parameters must be used to customize the query:

  • api_key string, mandatory
    Unique private key for API access
  • orders json, mandatory
    Orders array (JSON encoded)
    • id_order string, mandatory
      Unique order identifier
    • order_date string, mandatory
      Order date and time in YYYY-MM-DD HH:MM:SS format
    • firstname string, mandatory
      Customer first name
    • lastname string, mandatory
      Customer last name
    • email string, mandatory
      Customer email address
    • reference string
      Unique order reference
    • products array
      Array of ordered products
      • id integer, mandatory
        Unique product identifier
      • name string, mandatory
        Product name
      • category_id string
        Product category identifier
      • category_name string
        Product category name
      • qty integer
        Product quantity in order
      • unit_price float
        Unit product price (tax included)
      • mpn string
        Product MPN code
      • ean13 string
        Product EAN13 code
      • sku string
        Product SKU code
      • upc string
        Product UPC code
      • url string
        Product URL
Request example (PHP cURL)
<?php // Define API endpoint and API key $apiEndPoint = ""; $apiKey = "YOUR_PRIVATE_KEY"; // Prepare data $post = array( 'api_key' => $apiKey, 'orders' => json_encode( array( array( 'id_order' => '1234', 'order_date' => '2019-01-01 12:00:00', 'firstname' => 'John', 'lastname' => 'Doe', 'email' => '[email protected]', 'reference' => '12345678', 'products' => array( array( 'id' => '100', 'name' => 'My Product 100', 'category_id' => 'cat1', 'category_name' => 'Category 1', 'qty' => '1', 'unit_price' => '25.90', 'mpn' => 'MPN100', 'ean13' => '1234567890123', 'sku' => 'SKU100', 'upc' => 'UPCCODE', 'url' => '', ), ), ), ), ), ); // Prepare CURL request $ch = curl_init($apiEndPoint); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); // Execute CURL request $response = curl_exec($ch); // Close the connection, release resources used curl_close($ch); // Do anything you want with your response ! var_dump($response); ?>

Values returned by API

The API returns a response containing a 'success' object.

  • success integer
    Returns '1' if at least one order has been imported, or '0' if no order has been imported.
  • orders_count integer
    Returns the total number of commands sent in the call
  • orders_imported integer
    Returns the total number of orders actually been imported
    WARNING: An order will not be re-imported if another order with the same order_id or reference has already been sent.
  • message string
    Returns a possible message containing more information about an error during import

Example of an API response to a successfully imported command :

{ "success": 1, "orders_count": 1, "orders_imported": 1, "message": null }

Example of an API response for orders that already been imported :

{ "success": 0, "orders_count": 1, "orders_imported": 0, "message": "Some orders were not imported because they had already been sent (see documentation)" }