Push an Order
This endpoint is used to push a new order to the external POS.
FAQ
-
If there is a discount for an item, the discounted amount will be reflected at the item level, and the value is assigned to order.item.price.discountAmount attribute. This value is a total of the discounts for an item, based on the quantity.
-
The Sum of the item level discounts plus order level discounts will be reflected in the order.payment.discounts.amount attribute.
Examples:
Scenario 1: Order with both item level and separate order level discount. The payment.discount value is a total of the item discounts and includes the order discount as well.
Scenario 2: Order with order level discount. Item level discount values are set to 0.
Scenario 3: Order with order item level discount. Sum of the item level discounts are equal to the value in payment.discount value.
Please note that not all order channels support item-level discount.
Request body
Example request
{
"id": "703546147070869504",
"storeId": "a9f3ded6-c10b-4f17-ad42-5788e061b0a6",
"displayId": "4212331",
"currencyCode": "AED",
"instructions": "Please readuce the bag count of the order",
"delivery": {
"pickupTime": "2021-01-01T09:23:54.723Z"
},
"archivedItems": [
{
"price": {
"unitPrice": 1200,
"discountAmount": 1200,
"totalPrice": 1200
},
"amendItems": [
{
"quantity": 10
}
]
}
],
"scheduledOrder": {
"scheduledAt": "2020-08-02T09:23:54.723Z"
},
"placedAt": "2020-08-02T09:23:54.723Z"
}Response
Successful response OK