Skip to content

Order model

Orders are the building blocks of the Bolt restaurant orders API.
Each instance of an Order model represents an actual order recorded in the eshop that can be delivered to (or returned from) the contact.

An Order model has the following fields:

FieldDescription
order_idMarket specific order ID you receive back when placing an order
order_refOrder ID with the prefix attached
created_atThe exact date time of the order’s placement
first_nameFirst name of the customer contact
last_nameLast name of the customer contact
consigneeName of the partner company (formerly known as “Restaurant Name”)
emailEmail address of the customer contact
phonePhone number of the customer contact
countryCountry code of the customer contact
zipZIP (postal) code of the customer delivery address
cityCity of the customer delivery address
streetStreet name of the customer delivery address
house_numberHouse number of the customer delivery address
floorFloor number/label of the customer delivery address
doorDoor number/label of the customer delivery address
opening_hoursThe opening hours of the customer
productThe name (with variation) of the product in the order
product_idThe ID of the product in the order
loginLogin credential for the restaurant device
passwordPassword credential for the restaurant device
final_completion_dateThe final delivery date for the order when it reached its end of life
order_typeType of the order, either REGULAR, RETURN or EXCHANGE
original_order_idID of the original order in case the current order is a return or exchange
trackingsArray of Tracking models, representing each delivery cycle for the order
detailed_statusThe latest DetailedStatus model related to the Order
serial_numberSerial number related to the product of the order
delivery_errorsArray of freetext delivery errors with their creation date and internal comment
noteThis is a general free-text field that can contain any notes related to an order.
boolanga_commentsAdditional comments made by administrators
bolt_commentsAdditional comments made by bolt

Order IDs and Order References

The Order ID is a market specific identifier, for example 1234. Market specific means that an ecommerce system can have multiple markets running at the same time, and for each, an order with the ID 1234 can be present.

In the context of the API, the order ID is unique and only returns the correct order. For out of context purposes, there are also Order References, which consist of an order prefix or discriminator and the Order ID itself, for example BOLTRESTPT1234.

Use the Order IDs when in the context of the API, but when you have to refer to an order, for the sake of easier communication, please use the Order Reference.