Cancel an Order

Cancels the given order.

An order can be cancelled so long as it hasn't been collected by a driver. The way to see whether an order can still be cancelled is with the is_cancellable key when viewing an order.

If the order has already been cancelled a 200 response will be returned – this is why an idempotency key isn't needed for this endpoint. If the order has already been collected a 422 failure response will be returned.

Note: Cancelled orders aren't deleted from the system and should still be viewable on your dashboard in the 'cancelled' state.

Path Params
string
required

The Sendle Order ID. The order's individual identification in our system. For example, f5233746-71d4-4b05-bf63-56f4abaed5f6.

This isn't the reference that's used for the public tracking page.

Headers
string

Name of your service, site, or some other informative value.

Including this lets our team identify your requests and ensures that they aren't blocked by our security tools.

Responses

500

Indicates that an unhandled error has occured with the Sendle API. We may have more information on the Sendle Status page. Contact [email protected] if the problem persists.

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