Horeca24 Partner API › Orders
Cancel an order
https://management.horeca-24.de/api/partner/v1/orders/{externalId}/cancelApproved at once in v1; the till shows the order as cancelled (the reason is not shown there). You also receive order.cancelled with reason.code: PARTNER_REQUESTED. An order cancelled already answers 200 again, so retries are safe. 409 INVALID_TRANSITION for a completed or rejected order.
Headers
AuthorizationstringRequiredBearer pk_<connectionId>.<keyId>.<secret>
The connection's API key, from the restaurant's till. Treat it as one opaque string. 401 UNAUTHORIZED for a missing, wrong, expired or revoked key; 403 CONNECTION_REVOKED for the key of a deleted connection. After a rotation by the restaurant, the previous key keeps working for 24 hours.
Path parameters
externalIdstringRequiredpattern: ^[A-Za-z0-9._~-]{1,64}$Your order id, as sent in POST /orders.
Request
application/jsonRequired
reasonstringRequired1-500 charsResponse
externalIdstringRequiredpattern: ^[A-Za-z0-9._~-]{1,64}$Your order id, unique per connection
statusstringRequiredValue: cancelledversionintegerRequired≥ 1Errors
objectErrorBody
An error; see ErrorCode
UNAUTHORIZED: the key is missing, malformed, unknown, wrong, expired or revoked
CONNECTION_REVOKED: the restaurant deleted the connection; stop sending
An error; see ErrorCode
An error; see ErrorCode
An error; see ErrorCode
RATE_LIMITED: 60 per minute and connection, shared by orders, cancel and delivery
Headers
Retry-AfterintegerOptionalSeconds until the window ends