Cancel Order
Orders
Cancel Order
Cancel an order with a specified reason
PUT
Cancel Order
Overview
Cancels an order at any status (except already completed/canceled) with a mandatory cancellation reason.Path Parameters
Order’s
payment_key (UUID)Headers
Your API access token
Must be
application/jsonBody Parameters
Cancellation reason ID (1-8) - see Cancel Reasons
Cancel Reasons
| ID | Reason |
|---|---|
| 1 | Ürün tükendi (Product out of stock) |
| 2 | Adres bulunamıyor (Address not found) |
| 3 | Yoğunluk nedeniyle (Due to congestion) |
| 4 | Müşteri iptal etti (Customer canceled) |
| 5 | Teknik sorun (Technical issue) |
| 6 | Çok uzak teslimat adresi (Delivery address too far) |
| 7 | Ödeme problemi (Payment problem) |
| 8 | Diğer (Other) |
Response
true if successful"OK" on successExamples
Success Response (200)
Error Responses
When to Cancel
1. Product Out of Stock (reason_id: 1)
1. Product Out of Stock (reason_id: 1)
Key ingredient or menu item is unavailable.
2. Address Not Found (reason_id: 2)
2. Address Not Found (reason_id: 2)
Delivery address is invalid or cannot be located.
3. Too Busy (reason_id: 3)
3. Too Busy (reason_id: 3)
Restaurant is overwhelmed and cannot fulfill order.
4. Customer Canceled (reason_id: 4)
4. Customer Canceled (reason_id: 4)
Customer requested cancellation.
5. Technical Issue (reason_id: 5)
5. Technical Issue (reason_id: 5)
POS system or equipment failure.
6. Address Too Far (reason_id: 6)
6. Address Too Far (reason_id: 6)
Delivery address is outside service area.
7. Payment Problem (reason_id: 7)
7. Payment Problem (reason_id: 7)
Payment verification failed.
8. Other (reason_id: 8)
8. Other (reason_id: 8)
Any other reason not covered above.
Status Transition
Complete Workflow
Best Practices
- Always Use Correct Reason
- Confirm Before Canceling
- Notify Customer
Related Endpoints
Get Cancel Reasons
Fetch available cancellation reasons
Get Current Orders
View orders to cancel