Canceling orders frequently can negatively impact your store’s rating on delivery platforms. Use this endpoint judiciously and consider alternative solutions when possible.
Request Body
The unique identifier of the store canceling the order
The unique identifier of the order to cancel
Reason for cancellation. Must be one of the predefined reason codes.
Additional details about the cancellation reason
Employee ID who initiated the cancellation
Cancellation Reason Codes
Available Reason Codes
Available Reason Codes
Store-Related Reasons:
OUT_OF_STOCK
- Required items are not availableKITCHEN_CLOSED
- Kitchen is closed or unable to prepareEQUIPMENT_FAILURE
- Equipment malfunction preventing preparationSTAFF_SHORTAGE
- Insufficient staff to fulfill orderSTORE_EMERGENCY
- Emergency situation at store
CUSTOMER_REQUEST
- Customer requested cancellationPAYMENT_ISSUE
- Payment could not be processedDELIVERY_ADDRESS_ISSUE
- Delivery address problems
PLATFORM_ERROR
- Technical issue with delivery platformDUPLICATE_ORDER
- Order was duplicated in systemFRAUD_SUSPECTED
- Suspected fraudulent order
WEATHER_RELATED
- Severe weather preventing fulfillmentOTHER
- Other reason (requires description)
Response
Indicates whether the order was successfully canceled
Confirmation message or error details
The canceled order’s unique identifier
Unique identifier for the cancellation record
Amount that will be refunded to customer
Status of the refund process
Whether the delivery platform was successfully notified
Whether the customer was successfully notified
Request Example
Response Example
Cancellation Process Workflow
Cancellation Process Workflow
When an order is canceled, the following automated processes occur:
- Order Status Update: Status changed to “canceled”
- Inventory Release: Any reserved inventory is released back to available stock
- Refund Initiation: Automatic refund processing begins
- Platform Notification: Delivery platform is notified with reason
- Customer Notification: Customer receives cancellation notification
- Analytics Update: Cancellation metrics are updated for reporting
- Audit Trail: Complete cancellation record is created for compliance
Refund Timing: Refunds typically process within 3-5 business days, but the exact timing depends on the customer’s payment method and the delivery platform’s policies.
Best Practice: When possible, contact the customer directly before canceling to explore alternatives or explain the situation. This can help maintain customer satisfaction even in difficult situations.
Error Responses
Common Error Scenarios
Common Error Scenarios
Order Cannot Be CanceledInvalid Reason CodePlatform Communication Failed
Manual Follow-up: If platform_notified is false, you may need to manually notify the delivery platform to avoid fulfillment conflicts.