Cancel Order

Cancel a delivery you dispatched from an order push.

order_id can be either the delivery id or the OrderOut order id returned by POST /api/channel/order/push (order_id in its response).

❗️

Cancel before a driver is assigned

Deliveries on api.orderout.co are real. If a delivery is cancelled after a driver has been assigned, a $10 cancellation fee applies, to you and to OrderOut.

Cancellation is asynchronous: the response confirms the request (cancel_requested: true), and status reflects the state at the time of the call, not the final cancelled state.

Reason

reason is the reason code sent to the courier network. It is required and must be one of the codes below (case and _ are ignored, so customer_cancelled works). Put any free text in reason_comments.

CodeUse when
CustomerCancelledThe customer no longer wants the order. Default.
CustomerChangedOrderThe customer changed the order (new order created, delivery switched to pickup, ...).
MissedDropoffTimeThe customer cancels because the delivery is late.
CustomerOtherReasonAnother customer reason.
DriverMissedPickupThe restaurant cancels because the driver is late to pick up.
SystemFailureOrder processing failed (POS transmission, payment, ...).
UnableToFulfillThe restaurant can't make the order (out of stock, store closed, ...).
VendorOtherReasonAnother restaurant reason.
PickupNotReadyThe driver arrived but the order is not ready.
DestinationUnreachableThe driver can't reach the customer.
PackageContentsThe customer refused the delivery: missing or wrong items.
PackageDamageThe customer refused the delivery: damaged package.
DriverFailureThe driver's vehicle failed.
ServiceOverCommittedThe courier network has no driver available.
DspOtherReasonAnother courier-network reason.
📘

Free text in reason

A reason that is not a code is still accepted for older integrations: it is sent as CustomerCancelled with your text as the comments. This will become an error later, so send a code.

The response returns the reason and reason_comments that were sent.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int64
required

Delivery id, or the OrderOut order id from the push response

Body Params
string
enum
required
Defaults to CustomerCancelled

Reason code sent to the courier network. See the table above.

string

Optional free text, e.g. "customer called to cancel". Defaults to the reason code.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json