Cancel Order¶
Cancel Order by ID¶
Cancel an individual order directly using its unique order ID.
Method: DELETE
Endpoint: orders/{order_id}
cURL¶
curl --location --globoff --request PUT 'https://api.nubra.io/orders/{order_id}' \
--header 'x-device-id: TEST21234' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Bearer Bearer eyJh...6Pno' \
--data '
'
Response Structure¶
{"message":"delete request pushed"}
Cancel Multiple Orders by ID¶
Cancel several orders at once by passing a list of order IDs.
Method: POST
Endpoint: orders/cancel
cURL¶
curl --location --request PUT 'https://api.nubra.io/orders/cancel' \
--header 'x-device-id: TEST21234' \
--header 'Content-Type: text/plain' \
--header 'Authorization: Bearer Bearer eyJh...6Pno' \
--data '{
 "orders": [{"order_id": 890}]
}
'
Payload¶
{
 "orders": [{"order_id": 890}]
}
Request Parameters¶
| Field | Type | Description | 
|---|---|---|
| order_ids | List[int] | A list of order IDs you want to cancel. All IDs must correspond to valid pending orders. | 
Response Structure¶
{"message":"delete request pushed"}