Orders

Whenever a consumer completes the order containing one or more products configured via Zakeke, it is mandatory to register the order through the following API.

The auth needed for this API must be S2S (Server2Server).

Order properties

orderCode
"orderCode": "3521"

The order identifier on your system.

orderDate
"orderDate": "2018-10-24T10:29:48.132Z"

The date and time (ISO 8601 format) when the order was created in your system.

 total  
"total": 409.94

The sum of all line item prices, discounts, shipping, taxes, and tips (must be positive).

 

compositionDetails
"compositionDetails": [
{
"orderDetailCode": "453",
"composition": "315-e4848045-91c2-44b2",
"unitPrice": 149.99,
"quantity": 2
}
]

A list of composition detail objects, each containing information about an product configuration in the order. Each object has the following properties:

  • orderDetailCode: The ID on your system for the line item.
  • composition: The product configuration identifier for the product that the line item belongs to.
  • unitPrice: The unit price of the product, including the configuration price, after discounts have been applied. Must be in the base currency set in the Zakeke API settings.
  • quantity: The number of products that were purchased.

Order endpoint

POST https://api.zakeke.com/v1/order
Register an order in Zakeke.

Register an onder

POST https://api.zakeke.com/v1/order

{
"orderCode": "3521",
"orderDate": "2018-10-24T10:29:48.132Z",
"total": 409.94,
"compositionDetails": [
{
"orderDetailCode": "453",
"composition": "315-e4848045-91c2-44b2",
"unitPrice": 149.99,
"quantity": 2
}
]
}

Response

HTTP/1.1 200 OK

 

Was this article helpful?
0 out of 0 found this helpful