Updates an order draft and returns validation results
Documentation Index
Fetch the complete documentation index at: https://docs.chataigne.ai/llms.txt
Use this file to discover all available pages before exploring further.
ID of the order draft to update
The customer first name
"John"
The customer last name
"Doe"
The customer language
"fr"
A note from the customer about their order
"For all dishes, put the sauce on the side"
Special instructions for delivery
"Ring doorbell twice"
Soon deprecated, use deliveryAddressString/deliveryAddressCoordinates instead
{
"address": "123 Main St",
"city": "Anytown",
"postalCode": "12345",
"country": "US"
}The delivery address as a string. Have priority over deliveryAddress coordinates.
"123 Main St, Anytown, 12345, US"
The delivery address as coordinates.
{ "latitude": 40.7128, "longitude": -74.006 }The requested time in the timezone of the store or "ASAP" if the customer wants to receive their order as soon as possible.
"2021-01-01T00:00:00+01:00"
How the customer wants to receive their order. "collection" is for pick up, "delivery" is for delivery, "eat_in" is for eating in the store.
"collection"
The items and options in the order identified by their internal ID
[
{
"skuInternalId": "sku-123",
"quantity": 1,
"options": [
{
"optionInternalId": "opt-123",
"quantity": 1
}
]
}
]The payment method for the order
"TemporaryCard"
The location ID of the order draft
"123"
The codes for the order. These will be applied to the order.
["CODE123", "CODE456"]The deals/combos to add to the order. Each deal requires selecting one SKU per line.
[
{
"dealInternalId": "deal_combo_123",
"skus": [
{
"skuInternalId": "sku_burger_123",
"quantity": 1
},
{
"skuInternalId": "sku_fries_456",
"quantity": 1
},
{
"skuInternalId": "sku_drink_789",
"quantity": 1
}
]
}
]