New Order

The order data containing all information available at the point of webhook delivery can be sent, it can be fed into e.g. stock management or sales reporting services



Payload

Sent by Deliverect as a JSON payload.

Each event is sent as a single HTTP POST request with a timeout of 20 seconds. Every event is delivered in one attempt, whatever response status is returned, so we recommend acknowledging with a 2xx response straight away and processing the payload asynchronously.

Please note any Deprecated parameters should be ignored

date-time

Time the order was created in Deliverect, in ISO 8601 UTC format, e.g. yyyy-MM-ddTHH:mm:ss.SSSZ; fractional seconds vary between none, 3 and 6 digits.

date-time

Time the order was last updated in Deliverect, in ISO 8601 UTC format, e.g. yyyy-MM-ddTHH:mm:ss.SSSZ; fractional seconds vary between none, 3 and 6 digits.

string

Unique identifier of the order in Deliverect. Please note cancel requests are processed as new orders with "status": 100 and bearing original order _id (see cancellation guide here).

string

accountId is the unique identifier of the customer account in Deliverect

string

The full unique ID from the delivery channel. Together with the channel is guaranteed to be unique for 48h after pickup.

string

Alternative order ID set by ordering channel, primarily for convenience and readability. This is not unique and typically a shortened version of channelOrderId consisting of 4-5 alphanumeric characters, although may go up to 12 characters.

string

Additional order reference supplied by the ordering channel.

string

The POS order ID.

string

Provided by the POS in response to incoming orders as a reference to a specific POS receipt.

string

posLocationId is an identifier of the location known on the POS side, it is stored within the POS config in Deliverect.

This is the same ID set as the externalLocationId within the registration webhook during onboarding (see guide here).

string

locationId is the unique identifier of a physical restaurant location, store, or kitchen

integer

Current order status (see all Order statuses here).

statusHistory
array of objects

All status changes of the order up to the point the webhook is sent.

statusHistory
packaging
object

Order-level packaging preferences.

posStatusHistory
array of objects

Status updates received from the POS for the order.

posStatusHistory
string

Order source (if known) e.g. app or mobile, not the same as channel that specifies the ordering platform (see guide here).

integer
enum

Type of order.

  • Pickup: 1
  • Delivery: 2
  • Eat in: 3 (see guide on processing 'eat in' orders here)
  • Curbside: 4
  • Drive thru: 5
Allowed:
integer

Unique ID of the channel (see GET Integrated channels).

integer

Unique ID of the POS.

rating
array of objects
deprecated

Legacy attribute, not to be referenced as part of an integration.

rating
date-time

Time the order is due to be picked up, in ISO 8601 UTC format, e.g. yyyy-MM-ddTHH:mm:ss.SSSZ; fractional seconds vary between none, 3 and 6 digits.

date-time

Time the order is due to be delivered, in ISO 8601 UTC format, e.g. yyyy-MM-ddTHH:mm:ss.SSSZ; fractional seconds vary between none, 3 and 6 digits, where provided.

date-time

Estimated time the courier picks up the order, in ISO 8601 UTC format, e.g. yyyy-MM-ddTHH:mm:ss.SSSZ; fractional seconds vary between none, 3 and 6 digits.

date-time

Estimated time the order is delivered to the customer, in ISO 8601 UTC format, e.g. yyyy-MM-ddTHH:mm:ss.SSSZ; fractional seconds vary between none, 3 and 6 digits, where provided.

date-time

Time the order was scheduled for processing, in ISO 8601 UTC format, e.g. yyyy-MM-ddTHH:mm:ss.SSSZ; fractional seconds vary between none, 3 and 6 digits, where provided.

boolean

Signifies if the order is required as soon as possible.

courier
object

Details of courier, see the Courier Update webhook for the full object.

courierUpdateHistory
array of objects

History of every courier update received for the order.

courierUpdateHistory
customer
object

Customer is the end-consumer.

deliveryAddress
object

Provided address for an order.

boolean

Statement of whether an order was paid online or not.

taxes
array of objects

All taxes applied to an order, in tax exclusive regions only (see guide here).

taxes
payment
object

Payment details.

More details on processing payments here.

string

Overall note for an order.

items
array of objects

All the items included in an order.

items
integer

Decimal precision of order and payment amounts.

integer

Indicates how many diners (applicable to table ordering).

string

Deliverect internal ID of an order.

channelOrderHistoryRawIds
array of strings
deprecated

Legacy attribute, not to be referenced as part of an integration.

channelOrderHistoryRawIds
integer

Service charge applied. The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

integer

Delivery cost applied. The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

integer

A surcharge applied for the packaging. The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

integer

A tip intended for the restaurant operator. The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

integer

A tip intended for the driver/courier. The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

integer

A surcharge applied by channels who impose minimum basket fees. The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

integer

The total of all discounts applied to the order, sent as a negative value representing the deduction from the order total. Ordering platforms may offer different forms of discount, e.g. a percentage discount (see guide here).

The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

discounts
array of objects

All applied discounts within an order. This array may be empty, as not all channels share detailed discount information (see more info here).

discounts
capacityUsages
array of objects
deprecated

Legacy attribute, not to be referenced as part of an integration.

capacityUsages
boolean
deprecated

Legacy attribute, not to be referenced as part of an integration.

string
deprecated

Legacy attribute, not to be referenced as part of an integration.

string

Identifier of the delivery job, where one exists.

string

Appears where the customer operates multiple brands from one location (see Get account brands).

boolean

Only applicable as true in staging environment via menu preview orders.

string

Timezone of the location, e.g. Europe/London (see TZ list here).

integer

Order created date in format YMD.

tags
array of strings

Custom tag(s) applied to the store location, typically a brand name, e.g. ["Best Burger"].

tags
integer

Sum of deliveryTax + serviceChargeTax + deliveryCostTax (see guide here). The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

integer

The portion of taxTotal collected and paid to the tax authority by the ordering platform on the merchant's behalf (e.g. as a marketplace facilitator). It may be all or part of taxTotal; 0 or absent means no tax was remitted. The amount is expressed as an integer in the currency's minor units (e.g., 1000 = USD 10.00; 100 = EUR 1.00).

If the location setting 'Don't send tax remit' is enabled, payment.amount already excludes this value, so do not subtract it again.

string

With 'Eat-in' orders ("orderType": 3) a table identifier can be sent (see more details here).

Headers
string
required

Identifies Deliverect as the sender, in the format Deliverect/{version}.

string
required

Signature of the raw request body using your shared secret; recompute it on receipt to verify the request came from Deliverect (see HMAC authentication guide).

Response
200

Return a 2xx status to acknowledge receipt.

LoadingLoading…