↑↓select↵openescclose

Horeca24 Partner API › Orders

Courier update, for orders with your own courier

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

Only for orders with fulfillment.courier: partner; any other order answers 409 INVALID_TRANSITION.

  • picked_up: delivery status "on the way" in the till.
  • delivered: delivery status "delivered"; the restaurant can complete the order.
  • assigned, arriving: no change of the delivery status; the other fields still apply.
  • failed: nothing changes in the till; our support is alerted. Cancel the order separately if needed.

etaPickupAt / etaDropOffAt set the pickup and drop-off times, courier the driver (the latest counts), trackingUrl the tracking link. The order's status never changes by a courier update. An update that changes nothing answers changed: false, so retries are safe.

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

statusstringRequiredassignedarrivingpicked_updeliveredfailed
etaPickupAtstringOptionalformat: date-time

ISO 8601 with Z or an offset

etaDropOffAtstringOptionalformat: date-time

ISO 8601 with Z or an offset

courierobjectOptional
Show child attributesHide child attributes
namestringRequired1-200 chars
phonestringRequired1-50 chars
trackingUrlstringOptional0-2048 charsformat: uri

Response

200Taken
orderIdstringRequiredpattern: ^oo_[0-9a-f]{64}$

Our order id

externalIdstringRequiredpattern: ^[A-Za-z0-9._~-]{1,64}$

Your order id, unique per connection

changedbooleanRequired

false when the update changed nothing

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