Delivery checkouts
Cancel an unfinished checkout
Requires checkouts:write and expected_revision. Cancel an unfinished checkout. This does not cancel an accepted order or issue a refund. Resolve any locked payment attempt before cancelling.
post/api/external/v1/checkouts/{token}/cancel
Request
- Base URL: http://localhost
- URL: http://localhost/api/external/v1/checkouts/{token}/cancel
- Auth: HTTP bearer
Headers
Idempotency-Keystring required
Request body
Example request
{
"expected_revision": 4
}Response
Example response
{
"data": {
"checkout_token": "chk_AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPp",
"status": "cancelled",
"revision": 5,
"currency": "SEK",
"locale": "en",
"ready": false,
"expires_at": "2026-09-14T12:10:00+00:00",
"quote": null,
"selection": null,
"lock": null,
"order": null
}
}Changes
No recorded changes to this operation across all 1 revision of this API.