API

Order

An order: list, create, get or update one, and amend, cancel, refund or update the status of one.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /v1/stores/{storeId}/orders/{id}/amend create Created
POST /v1/stores/{storeId}/orders/{id}/cancel create No Content
POST /v1/stores/{storeId}/orders/{id}/refund create OK
POST /v1/stores/{storeId}/orders/{id}/status create No Content
POST /v1/stores/{storeId}/orders create OK
GET /v1/stores/{storeId}/orders list OK
GET /v1/stores/{storeId}/orders/{id} load Created
PATCH /v1/stores/{storeId}/orders/{id} update No Content

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

orders, err := client.Order(nil).List(map[string]any{"store_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(orders)
order, err := client.Order(nil).Load(map[string]any{"id": "example_id", "store_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(order)
created, err := client.Order(nil).Create(map[string]any{"store_id": "example", "customer": map[string]any{}, "delivery": map[string]any{}, "external_reference_id": "example", "fulfillment_type": "example", "items": []any{}, "payment": map[string]any{}, "placed_on": "example", "source": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.Order(nil).Update(map[string]any{"id": "example_id", "store_id": "example", "customer": map[string]any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

Construct client as shown in the Lua setup, then call the operations:

local orders, err = client:Order():list({ store_id = "example" })
local order, err = client:Order():load({ id = "example_id", store_id = "example" })
local created, err = client:Order():create({ store_id = "example", customer = {}, delivery = {}, external_reference_id = "example", fulfillment_type = "example", items = {}, payment = {}, placed_on = "example", source = "example" })
local updated, err = client:Order():update({ id = "example_id", store_id = "example", customer = {} })

PHP

Construct client as shown in the PHP setup, then call the operations:

$orders = $client->Order()->list(["store_id" => "example"]);
$order = $client->Order()->load(["id" => "example_id", "store_id" => "example"]);
$created = $client->Order()->create(["store_id" => "example", "customer" => [], "delivery" => [], "external_reference_id" => "example", "fulfillment_type" => "example", "items" => [], "payment" => [], "placed_on" => "example", "source" => "example"]);
$updated = $client->Order()->update(["id" => "example_id", "store_id" => "example", "customer" => []]);

Python

Construct client as shown in the Python setup, then call the operations:

orders = client.Order().list({"store_id": "example"})
order = client.Order().load({"id": "example_id", "store_id": "example"})
created = client.Order().create({ "store_id": "example", "customer": {}, "delivery": {}, "external_reference_id": "example", "fulfillment_type": "example", "items": [], "payment": {}, "placed_on": "example", "source": "example" })
updated = client.Order().update({"id": "example_id", "store_id": "example", "customer": {}})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

orders = client.Order.list({ "store_id" => "example" })
order = client.Order.load({ "id" => "example_id", "store_id" => "example" })
created = client.Order.create({ "store_id" => "example", "customer" => {}, "delivery" => {}, "external_reference_id" => "example", "fulfillment_type" => "example", "items" => [], "payment" => {}, "placed_on" => "example", "source" => "example" })
updated = client.Order.update({ "id" => "example_id", "store_id" => "example", "customer" => {} })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const orders = await client.Order().list({ store_id: "example" })
const order = await client.Order().load({ id: "example_id", store_id: "example" })
const created = await client.Order().create({ store_id: "example", customer: {}, delivery: {}, external_reference_id: "example", fulfillment_type: "example", items: [], payment: {}, placed_on: "example", source: "example" })
const updated = await client.Order().update({ id: "example_id", store_id: "example", customer: {} })

Fields

Field Type Required Description
aggregator_order_id string No This is order id for Aggregators
charges object Yes Charges
customer object Yes Customer
delivery object Yes Delivery
delivery_info object Yes Delivery Info
discounts object Yes Discounts
est_delivery_time string No This is the estimated delivery time required for delivery orders
est_pick_up_time string No This is the estimated pickup time required for collection orders and instore orders
external_reference_id string Yes This is order id for extenal partners
friendly_id string No This is friendly order id for Aggregators
fulfillment_type string Yes Type of Fulfillment required
id string Yes Identifier that uniquely identifies the order
items array Yes List of items on the order
notes string No Any special notes for the order
orderId string No Order Identifier
order_cancellation_reason string No A textual representation of why the order was cancelled
order_number string No The auto incrementing daily order id, such as 10 if this order is the 10th order of the day
payment object Yes Payment
payment_status string No Indicates payment status
payment_type string No Indicates the mode of the payment
placed_on string Yes This is the order placed date time
pre_order_time string No This is the pre order date time
resourceUri string No Resource Path
source string Yes This is the original source of the order
status string No Possible order status codes for any given order
storeId string No Resource Identifier
subtotal number Yes Sub amount, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
total number Yes Total amount, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
total_carry_bags number No Indicates the total carry bags used for this order.
utensils boolean No Informs the store to package utensils with this order

create

POST /v1/stores/{storeId}/orders/{id}/amend

Operation ID: POST/v1/stores/{storeId}/orders/{id}/amend.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier
id path string Yes

Request body

application/json

Property Type Required Description
amendments array of object No Replace or Remove items from the order.
amendments[].amendment_type enum: REMOVE_ITEM, REPLACE_ITEM, UPDATE_ITEM Yes Type of adjustments.
amendments[].item_id string Yes Identifier menu item id.
amendments[].line_item_id string Yes Identifier that uniquely order item id.
amendments[].price number Yes Single quantity price of the item. If amendment type is REMOVE_ITEM, price should be 0.
amendments[].quantity number Yes Quantity of the item to remove.If amendment type is REMOVE_ITEM, quantity should be 0
amendments[].replacement_items array of object No amendment type is REPLACE_ITEM, replacement_item should be provided.
amendments[].replacement_items[].item_id string Yes Identifier that uniquely identifies the item.
amendments[].replacement_items[].price number Yes Single quantity price of the item.
amendments[].replacement_items[].quantity number Yes Quantity of the item to replace.
deal_amendment array of object No Remove deals from the order.
deal_amendment[].amendment_type enum: REMOVE_DEAL Yes Type of deal adjustment.
deal_amendment[].deal_id string Yes Identifier that uniquely identifies the deal.
deal_amendment[].line_item_deal_id string Yes Identifier that uniquely identifies the deal line item (when amending deals).
deal_amendment[].qty number No Quantity of the deal line item to remove.

Responses

201: Created
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

POST /v1/stores/{storeId}/orders/{id}/cancel

Operation ID: POST/v1/stores/{storeId}/orders/{id}/cancel.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier
id path string Yes

Request body

application/json

Property Type Required Description
cancelled_by string No Name of the provider or source that cancelled the order
notes string Yes notes
reason enum: OTHER, DRIVER_UNAVAILABLE, OUT_OF_STOCK, REFUNDED_ORDER, TAKEAWAY_BUSY, SHOP_CLOSED, ... Yes reason

Responses

204: No Content
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

POST /v1/stores/{storeId}/orders/{id}/refund

Operation ID: POST/v1/stores/{storeId}/orders/{id}/refund.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier
id path string Yes

Request body

application/json

Property Type Required Description
reason string Yes reason for refund
refund_amount integer Yes refund amount: (for example: 1000 = £10.00)

Responses

200: OK

application/json

Property Type Required Description
data object No
data.amount_refunded integer No Refunded amount
data.message string No Refund message
data.refund_id integer No Refund Identifier
data.success boolean No Refund status
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

POST /v1/stores/{storeId}/orders/{id}/status

Operation ID: POST/v1/stores/{storeId}/orders/{id}/status.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier
id path string Yes

Request body

application/json

Property Type Required Description
pickup_time string (date-time) No Set order pick up date time.
status enum: ORDER_ACCEPTED, ORDER_PREPARING, ORDER_COOKING_COMPLETED, ORDER_READY, ORDER_FULFILLED Yes Set the new status for this order

Responses

204: No Content
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

POST /v1/stores/{storeId}/orders

Operation ID: POST/v1/stores/{storeId}/orders.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier

Request body

application/json

Property Type Required Description
aggregator_order_id string No This is order id for Aggregators
customer object Yes Customer Entity
customer.email string (email) No Email of the customer
customer.first_name string Yes First name of the customer
customer.last_name string Yes Last name of the customer
customer.phone string No Phone number of the customer
customer.phone_code string No The phone code to access the phone number
delivery object No Order Delivery Information
delivery.address object Yes The address where the order will be delivered
delivery.address.address1 string No Full address
delivery.address.address2 string No Address Line 2
delivery.address.area string No Address Area
delivery.address.city string No City
delivery.address.flat_no string No Flat Number
delivery.address.formatted_address string No The full address as a single-line formatted string
delivery.address.lat number No Latitude
delivery.address.long number No Longitude
delivery.address.postcode string No Address Postcode
delivery.address.state string No Address state
delivery.address.type enum: STREET_ADDRESS Yes Type of the address
delivery.address.unit_number string No House/Building/Unit number
delivery.driver_qr_link string No Driver QR code link
delivery.notes string No Delivery specific notes from the customer
delivery.type enum: DELIVERY_BY_RESTAURANT, DELIVERY_BY_COURIER Yes Delivery type for the order
est_delivery_time string (date-time) No This is the estimated delivery time required for delivery orders
est_pick_up_time string (date-time) No This is the estimated pickup time required for collection orders and instore orders
external_reference_id string Yes This is order id for extenal partners
friendly_id string No This is friendly order id for Aggregators
fulfillment_type enum: COLLECTION, DELIVERY, INSTORE Yes Type of Fulfillment required
items array of object Yes List of items on the order
items[].addons array of object Yes List of addons against the item
items[].addons[].addons array of object No List of nested addons against the item
items[].addons[].addons[].id string Yes Addon identifier
items[].addons[].addons[].modifier_group_name string No The title of the modifier group name
items[].addons[].addons[].name string Yes The title of the Addon
items[].addons[].addons[].price number Yes Price of the Addon
items[].addons[].addons[].quantity number Yes The total quantity requested for this addon
items[].addons[].id string Yes Addon identifier
items[].addons[].modifier_group_name string No The title of the Addon
items[].addons[].name string Yes The title of the Addon
items[].addons[].price number Yes Price of the Addon
items[].addons[].quantity number Yes The total quantity requested for this addon
items[].category_name string No The category name of the item
items[].id string Yes Order Item
items[].name string Yes The title of the item
items[].notes string No Any special notes specifically for the item
items[].price number Yes Price of the item
items[].quantity number Yes The total quantity requested for this item
notes string No Any special notes for the order
payment object Yes Order Payment
payment.charges object Yes Order Charges
payment.charges.carry_bags_charge number No Total charges applied to this order for carry bags
payment.charges.delivery_fee number No Delivery Fee for delivering the order
payment.charges.driver_tips number No Driver tips for delivering the order
payment.charges.other_charge number No Other charge for the order
payment.charges.package_charge number No Package charge Fee for delivering the order
payment.charges.service_fee number No Service fee for processing the order
payment.charges.small_order_charge number No Small order charge for delivering the order
payment.charges.surcharge number No Surcharge Fee for delivering the order
payment.charges.tax number Yes Total tax applied to this order
payment.charges.tip_for_restaurant number No Tip for restaurant for the order
payment.discounts array of object No Order Discounts
payment.discounts[].discount_percentage number No Percentage of the discount applied on the order
payment.discounts[].discount_type enum: FIXED_AMOUNT, PERCENTAGE Yes Type of the discount applied to the order
payment.discounts[].discount_value number Yes Discount applied to the order
payment.discounts[].name string No Customer-facing promotion label, including merchant / DoorDash funding when known, for example "20% off select items, Total $17.30 · Merchant $8.65 · DoorDash $8.65"
payment.payment_status enum: PAID, UNPAID Yes Indicates payment status
payment.payment_type enum: CASH, CARD, ONLINE Yes Indicates the mode of the payment
payment.subtotal number Yes The total excluding charges
payment.total number Yes The total amount for the order
placed_on string (date-time) Yes This is the order placed date time
pre_order_time string (date-time) No This is the pre order date time
source string Yes This is the original source of the order
total_carry_bags number No Indicates the total carry bags used for this order.
utensils boolean No Informs the store to package utensils with this order

Responses

200: OK

application/json

Property Type Required Description
data object No
data.orderId string No Order Identifier
data.resourceUri string No Resource Path
data.storeId string No Resource Identifier
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

list

GET /v1/stores/{storeId}/orders

Operation ID: GET/v1/stores/{storeId}/orders.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
sort_by query string No Sort results by a specified column
sort_direction query string No Possible values: ASC or DESC, for ascending or descending
limit query string No Maximum number of existing config stores returned per page. Defaults to 25, maximum 100. Ignored when store_ids is supplied.
storeId path string Yes Store Identifier
status query string No Filter: by order status
skip query string No Number of existing config stores to skip when listing all stores. Defaults to 0. Ignored when store_ids is supplied.
fulfillment_type query string No Filter: by order fulfillment_type

Responses

200: OK

application/json

Property Type Required Description
data array of object No
data[].charges object Yes
data[].charges.carry_bags number Yes Total charges applied to this order for carry bags
data[].charges.delivery_fee number Yes Delivery Fee for delivering the order
data[].charges.driver_tips number No Driver tips for delivering the order
data[].charges.other_charge number No Other charge for the order
data[].charges.package_charge number No Package charge Fee for delivering the order
data[].charges.service_fee number Yes Service fee for processing the order
data[].charges.small_order_charge number No Small order charge for delivering the order
data[].charges.surcharge number No Surcharge Fee for delivering the order
data[].charges.tax number Yes Total tax applied to this order
data[].charges.tip_for_restaurant number No Tip for restaurant for the order
data[].charges.vat number No Total vat applied to this order
data[].customer object Yes
data[].customer.email string (email) No Email address of the customer
data[].customer.first_name string Yes First name of the customer
data[].customer.id string No Identifier that uniquely identifies the customer(only applicable for Foodhub orders)
data[].customer.last_name string Yes Last name of the customer
data[].customer.phone string Yes Phone number of the customer
data[].customer.phone_pin string No Phone pin of the customer (used with proxy numbers)
data[].delivery_info object No
data[].delivery_info.address object Yes The address where the order will be delivered
data[].delivery_info.address.address1 string No Address Line 1
data[].delivery_info.address.address2 string No Address Line 2
data[].delivery_info.address.area string No Address Area
data[].delivery_info.address.city string No Address City
data[].delivery_info.address.flat_no string No Flat number (if applicable)
data[].delivery_info.address.formatted_address string No The full address as a single-line formatted string
data[].delivery_info.address.house_no string No House number (if applicable)
data[].delivery_info.address.lat string No Latitude
data[].delivery_info.address.lon string No Longitude
data[].delivery_info.address.postcode string No Address Postcode
data[].delivery_info.driver object No
data[].delivery_info.driver.display_name string Yes Drivers display name
data[].delivery_info.driver.id string Yes A unique value that identifies the driver delivering the order
data[].delivery_info.driver.lat string No Drivers Latitude coordinate
data[].delivery_info.driver.lon string No Drivers Longitude coordinate
data[].delivery_info.driver.photo string No A URL to an image of the driver
data[].delivery_info.est_dropoff string No This value will be populated when the order is Delivery
data[].delivery_info.notes string Yes Delivery specific notes from the customer
data[].discounts object Yes
data[].discounts.additional_discounts object No
data[].discounts.additional_discounts.deals array of object No
data[].discounts.additional_discounts.deals[].amendment_details array of object No Amendments applied to this deal (same shape as order line item amendment_details).
data[].discounts.additional_discounts.deals[].buy_item_ids array of object No List of items (item_id and quantity) that the customer needs to purchase to qualify for the deal.
data[].discounts.additional_discounts.deals[].free_item_ids array of object No List of items (item_id and quantity) that the customer will receive for free as part of the deal.
data[].discounts.additional_discounts.deals[].line_item_deal_id string No The ID of the line item deal.(controlled by Foodhub)
data[].discounts.additional_discounts.deals[].name string No This refers to the name of the deal.
data[].discounts.additional_discounts.deals[].ref_id string No Deal ID (controlled by partners)
data[].discounts.additional_discounts.deals[].type string No This refers to the type of deal.
data[].discounts.additional_discounts.deals[].value number No The discount value of the deal applied to the order.
data[].discounts.additonal_discounts object No
data[].discounts.additonal_discounts.deals array of object No
data[].discounts.additonal_discounts.deals[].amendment_details array of object No Amendments applied to this deal (same shape as order line item amendment_details).
data[].discounts.additonal_discounts.deals[].buy_item_ids array of object No List of items (item_id and quantity) that the customer needs to purchase to qualify for the deal.
data[].discounts.additonal_discounts.deals[].free_item_ids array of object No List of items (item_id and quantity) that the customer will receive for free as part of the deal.
data[].discounts.additonal_discounts.deals[].line_item_deal_id string No The ID of the line item deal.(controlled by Foodhub)
data[].discounts.additonal_discounts.deals[].name string No This refers to the name of the deal.
data[].discounts.additonal_discounts.deals[].ref_id string No Deal ID (controlled by partners)
data[].discounts.additonal_discounts.deals[].type string No This refers to the type of deal.
data[].discounts.additonal_discounts.deals[].value number No The discount value of the deal applied to the order.
data[].discounts.cash_discount_value number No Cash Discount Value applied to the order
data[].discounts.collection_discount_value number No Collection Discount Value applied to the order
data[].discounts.coupon_code string No Coupon Code applied to the order
data[].discounts.coupon_type string No Coupon Type applied to the order
data[].discounts.coupon_value number No Coupon Value applied to the order
data[].discounts.discount_code string No Discount Code applied to the order
data[].discounts.discount_percentage number No Discount value applied to the order
data[].discounts.online_discount_value number No Online Discount Value applied to the order
data[].discounts.points_gained number No Loyalty Points gained for the order
data[].discounts.points_remaining number No Total Loyalty Points Remaining
data[].discounts.points_used number No Loyalty Points Used for the order
data[].discounts.redeem_amount number No Amount Redeemed from Loyalty Points for the order
data[].external_reference_id string No This is order id for extenal partners
data[].friendly_id string No This is order id for Aggregators
data[].fulfillment_type enum: COLLECTION, DELIVERY Yes Type of Fulfillment required
data[].id string Yes Identifier that uniquely identifies the order
data[].notes string Yes Any special notes for the order
data[].order_cancellation_reason string No A textual representation of why the order was cancelled
data[].order_number string No The auto incrementing daily order id, such as 10 if this order is the 10th order of the day
data[].payment_status enum: PAID, UNPAID No Indicates payment status
data[].payment_type enum: CASH, CARD, ONLINE No Indicates the mode of the payment
data[].placed_on string (date-time) Yes The date/time when the order was placed
data[].source enum: FOODHUB, JUSTEAT, UBEREATS, DELIVEROO No This is the original source of the order
data[].status enum: ORDER_NEW, ORDER_PLACED, ORDER_ACCEPTED, ORDER_PREPARING, ORDER_READY, ORDER_FULFILLED, ... Yes Possible order status codes for any given order
data[].subtotal number Yes Sub amount, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data[].total number Yes Total amount, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data[].total_carry_bags number No Indicates the total carry bags used for this order.
data[].utensils boolean No Informs the store to package utensils with this order
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

load

GET /v1/stores/{storeId}/orders/{id}

Operation ID: GET/v1/stores/{storeId}/orders/{id}.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier
id path string Yes

Responses

201: Created

application/json

Property Type Required Description
data object No Order Entity
data.charges object and object Yes Order Charges
data.customer object Yes
data.customer.email string (email) No Email address of the customer
data.customer.first_name string Yes First name of the customer
data.customer.id string No Identifier that uniquely identifies the customer(only applicable for Foodhub orders)
data.customer.last_name string Yes Last name of the customer
data.customer.phone string Yes Phone number of the customer
data.customer.phone_pin string No Phone pin of the customer (used with proxy numbers)
data.delivery_info object No
data.delivery_info.address object Yes The address where the order will be delivered
data.delivery_info.address.address1 string No Address Line 1
data.delivery_info.address.address2 string No Address Line 2
data.delivery_info.address.area string No Address Area
data.delivery_info.address.city string No Address City
data.delivery_info.address.flat_no string No Flat number (if applicable)
data.delivery_info.address.formatted_address string No The full address as a single-line formatted string
data.delivery_info.address.house_no string No House number (if applicable)
data.delivery_info.address.lat string No Latitude
data.delivery_info.address.lon string No Longitude
data.delivery_info.address.postcode string No Address Postcode
data.delivery_info.driver object No
data.delivery_info.driver.display_name string Yes Drivers display name
data.delivery_info.driver.id string Yes A unique value that identifies the driver delivering the order
data.delivery_info.driver.lat string No Drivers Latitude coordinate
data.delivery_info.driver.lon string No Drivers Longitude coordinate
data.delivery_info.driver.photo string No A URL to an image of the driver
data.delivery_info.est_dropoff string No This value will be populated when the order is Delivery
data.delivery_info.notes string Yes Delivery specific notes from the customer
data.discounts object Yes
data.discounts.additional_discounts object No
data.discounts.additional_discounts.deals array of object No
data.discounts.additional_discounts.deals[].amendment_details array of object No Amendments applied to this deal (same shape as order line item amendment_details).
data.discounts.additional_discounts.deals[].buy_item_ids array of object No List of items (item_id and quantity) that the customer needs to purchase to qualify for the deal.
data.discounts.additional_discounts.deals[].free_item_ids array of object No List of items (item_id and quantity) that the customer will receive for free as part of the deal.
data.discounts.additional_discounts.deals[].line_item_deal_id string No The ID of the line item deal.(controlled by Foodhub)
data.discounts.additional_discounts.deals[].name string No This refers to the name of the deal.
data.discounts.additional_discounts.deals[].ref_id string No Deal ID (controlled by partners)
data.discounts.additional_discounts.deals[].type string No This refers to the type of deal.
data.discounts.additional_discounts.deals[].value number No The discount value of the deal applied to the order.
data.discounts.additonal_discounts object No
data.discounts.additonal_discounts.deals array of object No
data.discounts.additonal_discounts.deals[].amendment_details array of object No Amendments applied to this deal (same shape as order line item amendment_details).
data.discounts.additonal_discounts.deals[].buy_item_ids array of object No List of items (item_id and quantity) that the customer needs to purchase to qualify for the deal.
data.discounts.additonal_discounts.deals[].free_item_ids array of object No List of items (item_id and quantity) that the customer will receive for free as part of the deal.
data.discounts.additonal_discounts.deals[].line_item_deal_id string No The ID of the line item deal.(controlled by Foodhub)
data.discounts.additonal_discounts.deals[].name string No This refers to the name of the deal.
data.discounts.additonal_discounts.deals[].ref_id string No Deal ID (controlled by partners)
data.discounts.additonal_discounts.deals[].type string No This refers to the type of deal.
data.discounts.additonal_discounts.deals[].value number No The discount value of the deal applied to the order.
data.discounts.cash_discount_value number No Cash Discount Value applied to the order
data.discounts.collection_discount_value number No Collection Discount Value applied to the order
data.discounts.coupon_code string No Coupon Code applied to the order
data.discounts.coupon_type string No Coupon Type applied to the order
data.discounts.coupon_value number No Coupon Value applied to the order
data.discounts.discount_code string No Discount Code applied to the order
data.discounts.discount_percentage number No Discount value applied to the order
data.discounts.online_discount_value number No Online Discount Value applied to the order
data.discounts.points_gained number No Loyalty Points gained for the order
data.discounts.points_remaining number No Total Loyalty Points Remaining
data.discounts.points_used number No Loyalty Points Used for the order
data.discounts.redeem_amount number No Amount Redeemed from Loyalty Points for the order
data.est_pickup string No This value will be populated when the order is Collection or Delivery
data.external_reference_id string No This is order id for extenal partners
data.friendly_id string No This is order id for Aggregators
data.fulfillment_type enum: COLLECTION, DELIVERY Yes Type of Fulfillment required
data.id string Yes Identifier that uniquely identifies the order
data.items array of object Yes List of items on the order
data.items[].addons array of object Yes List of addons against the item
data.items[].addons[].id string Yes Addon identifier
data.items[].addons[].modifier_group_id string No Modifier group id for the addon
data.items[].addons[].modifier_group_name string No modifier group name for the addon
data.items[].addons[].name string Yes The title of the Addon
data.items[].addons[].parent_modifier_group_id string No Parent modifier group id for the addon
data.items[].addons[].parent_modifier_id string No Parent modifier id for the addon
data.items[].addons[].placement enum: LEFT, RIGHT, WHOLE No Defines the placement of a Half_N_Half addon
data.items[].addons[].price number Yes Addon amount, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data.items[].addons[].quantity number Yes The total quantity requested for this addon
data.items[].amendment_details object No List of amendents against the item
data.items[].amendment_details.amendment_type enum: REPLACE_ITEM, REMOVE_ITEM, UPDATE_ITEM No The type of amendment
data.items[].amendment_details.item_id string No The id of the item
data.items[].amendment_details.original_items array of object No List of original items against the item
data.items[].amendment_details.original_items[].item_id string No Order Item
data.items[].amendment_details.original_items[].price number No Item price, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data.items[].amendment_details.original_items[].quantity number No The total quantity requested for this item
data.items[].amendment_details.price number No Item price, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data.items[].amendment_details.quantity number No The total quantity requested for this item
data.items[].amendment_details.replacement_items array of object No List of replacement items against the item
data.items[].amendment_details.replacement_items[].item_id string No Order Item
data.items[].amendment_details.replacement_items[].price number No Item price, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data.items[].amendment_details.replacement_items[].quantity number No The total quantity requested for this item
data.items[].category_id string No The category id of the item
data.items[].category_name string No The category name of the item
data.items[].id string Yes Order Item
data.items[].line_item_id string Yes Order Line Item ID
data.items[].name string No The title of the item
data.items[].notes string Yes Any special notes specifically for the item
data.items[].price number Yes Item price, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data.items[].quantity number Yes The total quantity requested for this item
data.items[].subcat_id string No The subcat id of the item
data.items[].vat_split object No Vat Split Entity
data.items[].vat_split.label string No Label
data.items[].vat_split.value array of object No List of vat values applied.
data.items[].vat_split.value[].amount number No Amount
data.items[].vat_split.value[].label string No Label
data.items[].vat_split.value[].percentage number No Percentage
data.items[].vat_split.value[].value number No Value
data.notes string Yes Any special notes for the order
data.order_cancellation_reason string No A textual representation of why the order was cancelled
data.order_number string No The auto incrementing daily order id, such as 10 if this order is the 10th order of the day
data.payment_status enum: PAID, UNPAID No Indicates payment status
data.payment_type enum: CASH, CARD, ONLINE No Indicates the mode of the payment
data.placed_on string (date-time) Yes The date/time when the order was placed
data.pre_order_time string (date-time) No The date/time when the order was pre-ordered
data.source string Yes This is the original source of the order
data.source_device_type enum: KIOSK, MOBILE, WEB, VOICE, CHAT, POS, ... No This field identifies the order's source platform, aiding in efficient tracking and management based on its origin
data.status enum: ORDER_NEW, ORDER_PLACED, ORDER_ACCEPTED, ORDER_PREPARING, ORDER_READY, ORDER_FULFILLED, ... Yes Possible order status codes for any given order
data.subtotal number Yes Subtotal amount, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data.table_id number No This field represents the selected table id for the dine-in orders
data.table_name string No This field represents the selected table number for the dine-in orders
data.total number Yes Total amount, represented in the lowest currency unit, such as pence, paise, cents, yen, etc.
data.total_carry_bags number No Indicates the total carry bags used for this order.
data.utensils boolean No Informs the store to package utensils with this order
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time

update

PATCH /v1/stores/{storeId}/orders/{id}

Operation ID: PATCH/v1/stores/{storeId}/orders/{id}.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier
id path string Yes

Request body

application/json

Property Type Required Description
customer object No
customer.email string (email) No Email address of the customer
customer.first_name string No First name of the customer
customer.id string No Identifier that uniquely identifies the customer(only applicable for Foodhub orders)
customer.last_name string No Last name of the customer
customer.phone string No Phone number of the customer
customer.phone_pin string No Phone pin of the customer (used with proxy numbers)
delivery object No Order Delivery Information
delivery.address object Yes The address where the order will be delivered
delivery.address.address1 string No Full address
delivery.address.address2 string No Address Line 2
delivery.address.area string No Address Area
delivery.address.city string No City
delivery.address.driver_qr_link string No Driver QR code link
delivery.address.flat_no string No Flat Number
delivery.address.formatted_address string No The full address as a single-line formatted string
delivery.address.lat number No Latitude
delivery.address.long number No Longitude
delivery.address.postcode string No Address Postcode
delivery.address.state string No Address state
delivery.address.type enum: STREET_ADDRESS Yes Type of the address
delivery.address.unit_number string No House/Building/Unit number
delivery.notes string No Delivery specific notes from the customer
delivery.type enum: DELIVERY_BY_RESTAURANT, DELIVERY_BY_COURIER Yes Delivery type for the order
est_delivery_time string (date-time) No This is the estimated delivery time required for delivery orders
est_pick_up_time string (date-time) No This is the estimated pickup time required for collection orders and instore orders
fulfillment_type enum: COLLECTION, DELIVERY No Type of Fulfillment required
items array of object No List of items on the order
items[].addons array of object Yes List of addons against the item
items[].addons[].addons array of object No List of nested addons against the item
items[].addons[].addons[].id string Yes Addon identifier
items[].addons[].addons[].modifier_group_name string No The title of the modifier group name
items[].addons[].addons[].name string Yes The title of the Addon
items[].addons[].addons[].price number Yes Price of the Addon
items[].addons[].addons[].quantity number Yes The total quantity requested for this addon
items[].addons[].id string Yes Addon identifier
items[].addons[].modifier_group_name string No The title of the Addon
items[].addons[].name string Yes The title of the Addon
items[].addons[].price number Yes Price of the Addon
items[].addons[].quantity number Yes The total quantity requested for this addon
items[].category_name string No The category name of the item
items[].id string Yes Order Item
items[].name string Yes The title of the item
items[].notes string No Any special notes specifically for the item
items[].price number Yes Price of the item
items[].quantity number Yes The total quantity requested for this item
notes string No Any special notes for the order
payment object No Order Payment
payment.charges object Yes Order Charges
payment.charges.carry_bags_charge number No Total charges applied to this order for carry bags
payment.charges.delivery_fee number No Delivery Fee for delivering the order
payment.charges.driver_tips number No Driver tips for delivering the order
payment.charges.other_charge number No Other charge for the order
payment.charges.package_charge number No Package charge Fee for delivering the order
payment.charges.service_fee number No Service fee for processing the order
payment.charges.small_order_charge number No Small order charge for delivering the order
payment.charges.surcharge number No Surcharge Fee for delivering the order
payment.charges.tax number Yes Total tax applied to this order
payment.charges.tip_for_restaurant number No Tip for restaurant for the order
payment.discounts array of object No Order Discounts
payment.discounts[].discount_percentage number No Percentage of the discount applied on the order
payment.discounts[].discount_type enum: FIXED_AMOUNT, PERCENTAGE Yes Type of the discount applied to the order
payment.discounts[].discount_value number Yes Discount applied to the order
payment.payment_status enum: PAID, UNPAID Yes Indicates payment status
payment.payment_type enum: CASH, CARD, ONLINE Yes Indicates the mode of the payment
payment.subtotal number Yes The total excluding charges
payment.total number Yes The total amount for the order
placed_on string (date-time) No The date/time when the order was placed
pre_order_time string (date-time) No This is the pre order date time
source string No This is the original source of the order
status enum: ORDER_ACCEPTED, ORDER_PREPARING, ORDER_READY, ORDER_FULFILLED No Possible order status codes for any given order
total_carry_bags number No Indicates the total carry bags used for this order.
utensils boolean No Informs the store to package utensils with this order

Responses

204: No Content
400: Bad Request

application/json

Property Type Required Description
error string Yes 400 Bad Request is the status code that indicates the server cannot or will not process the request due to something that is perceived to be a client error
401: Unauthorized

application/json

Property Type Required Description
error string Yes 401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
403: Forbidden

application/json

Property Type Required Description
error string Yes 403 Forbidden is the status code to return when a client has valid credentials but not enough privileges to perform an action on a resource.
404: Not Found

application/json

Property Type Required Description
error string Yes 404 Not Found is the status code that indicates a server could not find a client-requested webpage
429: Too Many Requests

application/json

Property Type Required Description
error string Yes 429 Too Many Requests is the status code that indicates the client application has surpassed its rate limit, or number of requests they can send in a given period of time