Cancel order
Cancel order
GET
/v1/order-cancel/index
This section is used to cancel an existing order.
When the request is sent, the system changes the order status to cancelled and stops any further delivery processing.
⚠️ Important condition: Cancellation is allowed only when the current order status equals status_code = 100.
If the order is in any other status (for example, already in delivery or completed), the system will reject the request and return an error message.
This endpoint only updates the order status and does not modify any other order data.
REQUEST
No schema defined.
RESPONSE
HTTP 200
Response Body
{
"status": true,
"message": "success.updated",
"status_code": 200,
"data": {
"orderId": 4293646,
"status": {
"id": 0,
"name": "Cancelled Order"
}
}
}
No schema defined.
HTTP 400
Response Body
{
"status": false,
"message": "error.already_cancelled",
"status_code": 400
}
No schema defined.