Skip to main content

Reorder Items

This API is used to reorder from previously ordered items.

Path Parameters
  • orderId string required

    The unique id of the order.

Query Parameters
  • force boolean

    This is the confirmation to clear the cart and proceed the reorder operation.

Responses

Success response


{
"statusCode": 200,
"data": {
"locationId": 1364,
"userId": "63775bf2622952337246312a",
"bill": {
"subtotal": 0,
"tax": 0,
"taxes": [],
"discount": 0,
"discounts": [],
"charge": 0,
"charges": [],
"roundOff": 0,
"total": 0
},
"_id": "63f0d7e02a304105e3e10b0f",
"items": [
{
"variation": {
"_id": 352183,
"name": "Tomato Basil Penne Pasta"
},
"item": {
"_id": 343468,
"name": "Penne Pasta"
},
"category": {
"_id": 34259,
"name": "Pasta"
},
"inventoryId": 363731,
"name": "Tomato Basil Penne Pasta",
"image": "https://s3.amazonaws.com/posbytz-qa/items/0a5c76d2-934e-42d7-83ab-77a9d8c78fe4-large.jpg",
"sku": "777785553444070",
"quantity": 1,
"price": 180,
"mrp": 0,
"groups": [],
"subtotal": 180,
"tax": 0,
"taxes": [],
"discount": 0,
"discounts": [],
"total": 180,
"_id": "63f0d29551f4efba724cd733"
}
]
}
}