↑↓select↵openescclose

Horeca24 Partner API › Orders

Cancel an order

POSThttps://management.horeca-24.de/api/partner/v1/orders/{externalId}/cancel

Approved 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

AuthorizationstringRequired

Bearer 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 chars

Response

200Cancelled, also when it was cancelled already
externalIdstringRequiredpattern: ^[A-Za-z0-9._~-]{1,64}$

Your order id, unique per connection

statusstringRequiredValue: cancelled
versionintegerRequired≥ 1

Errors

objectErrorBody

400

An error; see ErrorCode

401

UNAUTHORIZED: the key is missing, malformed, unknown, wrong, expired or revoked

403

CONNECTION_REVOKED: the restaurant deleted the connection; stop sending

404

An error; see ErrorCode

409

An error; see ErrorCode

422

An error; see ErrorCode

429

RATE_LIMITED: 60 per minute and connection, shared by orders, cancel and delivery

Headers

Retry-AfterintegerOptional

Seconds until the window ends