This endpoint cancels orders that are pending or ready_for_collection. Once a courier is on the way to collect, from out_for_collection onwards, it refuses; cancel those in Quiqdash.
Call this endpoint with PUT, you can pass an array of order IDs.
Security
bearerToken or oauthToken
- Staging. Build and test here.https://api.staging.quiqup.com/orders/batch/set_cancelled
- Production. Real couriers, real charges.https://api-ae.quiqup.com/orders/batch/set_cancelled
curl -i -X PUT \
https://api.staging.quiqup.com/orders/batch/set_cancelled \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"order_ids": [
null
]
}'The orders that were cancelled.
Array [
]
Response
[ { "allowed_payment_types": [ … ], "brand_name": "Example Brand", "collection_time": {}, "created_at": "2022-11-25T17:57:46.000+04:00", "delivery_attempts": 0, "destination": { … }, "display_items_info": false, "id": 10000002, "item_quantity_count": 1, "items": [ … ], "kind": "partner_same_day", "origin": { … }, "partner_order_id": "PARTNER-ORDER-ID", "payment_amount": "10.0", "payment_mode": "paid_on_delivery", "region_name": "Dubai", "required_documents": [], "service_kind": "partner_same_day", "state": "cancelled", "state_updated_at": "2022-12-08T17:45:14.000+04:00", "submitted_at": "2022-11-25T17:57:46.000+04:00", "tracking_url": "https://track-parcel.staging.quiqup.com/00000000-0000-4000-8000-000000000002", "user": { … }, "uuid": "00000000-0000-4000-8000-000000000002" } ]