After an order is created, it is necessary to transmit information about the composition of the order.


History: The user opened the cart and proceed to the checkout. Having passed all the stages of the checkout, the user confirmed the order.

Transmission method: POST

Format: JSON

URL: /api/events/order


Structure:


{
  "order_id": string ,
  "price_total": double ,
  "status": string (Pending, Paid, Closed),
  "qty_total": integer ,
  "products": [
    {
      "product_id": string ,
      "product_name": string ,
      "product_desc": string ,
      "product_sku": string ,
      "product_image": string ,
      "product_url": string ,
      "product_qty": integer ,
      "product_price": integer (,
      "product_total_val": integer ,
      "product_categories": [
        string,
        string,
        … 
      ]
    }
  ],
"customer": {
  "device_id": string (device hash, can be retrieved from the FingerprintJS library),
  "device_id_1": string (device ID, can be retrieved from the ClientJS library),
  "customer_id": string ,
  "customer_first_name": string ,
  "customer_last_name": string ,
  "customer_email": string ,
  "customer_date_created": string
}
}


Example:

{
  "order_id": "763",
  "price_total": "210.00",
  "status": "pending",
  "qty_total": 1,
  "products": [
    {
      "product_id": "421",
      "product_name": "Elizabeth Knit Top",
      "product_desc": "Loose fitting from the shoulders, open weave knit top. Semi sheer.  Slips on. Faux button closure detail on the back. Linen/Cotton. Machine wash.",
      "product_sku": "wbk013",
      "product_image": "https://1924magento.triggmine.com.ua/media/catalog/product/cache/1/image/265x/9df78eab33525d08d6e5fb8d27136e95/w/b/wbk012t.jpg",
      "product_url": "https://1924magento.triggmine.com.ua/elizabeth-knit-top-596.html",
      "product_qty": 1,
      "product_price": 210,
      "product_total_val": 210,
      "product_categories": [
        "New Arrivals",
        "Tops & Blouses"
      ]
    }
  ],
"customer": {
  "device_id": "4c3d48512d48b2603092b5a45ba74c8c",
  "device_id_1": "465060737",
  "customer_id": "980",
  "customer_first_name": "Max",
  "customer_last_name": "Riabchynskyi",
  "customer_email": "mr@triggmine.com",
  "customer_date_created": "2016-09-08 10:20:37"
}
}