API

Store

A store: list yours, create one, get its details, update its settings, or update its status.

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}/status create No Content
POST /v1/stores create OK
GET /v1/stores list OK
GET /v1/stores/{storeId} load OK
PATCH /v1/stores/{storeId} 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:

stores, err := client.Store(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(stores)
store, err := client.Store(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(store)
created, err := client.Store(nil).Create(map[string]any{"address": map[string]any{}, "name": "example", "phone_number": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.Store(nil).Update(map[string]any{"id": "example_id", "address": map[string]any{}, "business_phone_number": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

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

local stores, err = client:Store():list()
local store, err = client:Store():load({ id = "example_id" })
local created, err = client:Store():create({ address = {}, name = "example", phone_number = "example" })
local updated, err = client:Store():update({ id = "example_id", address = {}, business_phone_number = "example" })

PHP

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

$stores = $client->Store()->list();
$store = $client->Store()->load(["id" => "example_id"]);
$created = $client->Store()->create(["address" => [], "name" => "example", "phone_number" => "example"]);
$updated = $client->Store()->update(["id" => "example_id", "address" => [], "business_phone_number" => "example"]);

Python

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

stores = client.Store().list()
store = client.Store().load({"id": "example_id"})
created = client.Store().create({ "address": {}, "name": "example", "phone_number": "example" })
updated = client.Store().update({"id": "example_id", "address": {}, "business_phone_number": "example"})

Ruby

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

stores = client.Store.list()
store = client.Store.load({ "id" => "example_id" })
created = client.Store.create({ "address" => {}, "name" => "example", "phone_number" => "example" })
updated = client.Store.update({ "id" => "example_id", "address" => {}, "business_phone_number" => "example" })

TypeScript

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

const stores = await client.Store().list()
const store = await client.Store().load({ id: "example_id" })
const created = await client.Store().create({ address: {}, name: "example", phone_number: "example" })
const updated = await client.Store().update({ id: "example_id", address: {}, business_phone_number: "example" })

Fields

Field Type Required Description
address object Yes The store address
business_phone_number string No Business phone number of the takeaway
card_payment boolean No Enable online payments for the takeaway
carry_bag object No Carry bag charge configuration for the store.
cash_payment boolean No Enable cash payments for the takeaway
description string No A general description of the store
email string No Email address of the takeaway
hero_image_url object No URL of the main image displayed to users when browsing for a store.Only accepts .jpg, .jpeg, .png, and .webp formats.
host string Yes Host
id string No A unique store identifier
item_eligibility_rules array No Defines item quantity limits and restrictions based on tags (for example, "ALCOHOL", "MEDICINE") for store-wide control over product availability.
logo_image_url object No URL of the logo image displayed to users when browsing for a store.Only accepts .jpg, .jpeg, .png, and .webp formats.
menu_url string Yes Menu Url
merchant_id number No Payment Merchant ID for the store
name string No The store name
owner object No Defines owner's details
phone_number string No Registered phone number of the store owner, used for authenticating the application.
sales_agent any No Name of the sales agent.
sales_agent_id string No Sales Agent Identifier.
siteUrl string No The web address of the site.
storeId string Yes Store Identifier
store_open boolean No Is the store needs to be open for business
store_status string No Specifies whether the store site should be live or in temporary status
tax object No Tax configuration for the store.
website_url string No The url for the stores web address

create

POST /v1/stores/{storeId}/status

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

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier

Request body

application/json

Property Type Required Description
paused_until string (date-time) No The date/time until when store is paused
reason string No Stores the Reason why store is paused
status enum: PAUSE, RESUME Yes Indicates Store status

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

Operation ID: POST/v1/stores.

Authentication: oauth2 (AccessToken).

Request body

application/json

Property Type Required Description
address object No Address Details of the takeaway
address.address1 string Yes Street address
address.area string No Area
address.city string Yes City
address.country string No Country <a href='#section/Getting-Started/Country-and-Region'>See Documentation</a>
address.lat number No Latitude
address.long number No Longitude
address.postcode string Yes Address postcode
address.region string No Region <a href='#section/Getting-Started/Country-and-Region'>See Documentation</a>
address.unit_number string No Flat/Building/Unit number
business_phone_number string No Business phone number of the takeaway
card_payment boolean No Enable online payments for the takeaway
carry_bag object No Carry bag charge added to orders. When enabled, the number of bags is the order item quantity divided by items_per_bag, rounded up, and each bag is charged price_per_bag. If omitted, the carry bag charge is disabled for the new store.
carry_bag.enabled boolean No Whether the carry bag charge is applied to orders. Enabling requires items_per_bag and a price_per_bag greater than 0. Defaults to false.
carry_bag.items_per_bag integer No Maximum number of items per bag.
carry_bag.price_per_bag integer No Charge per bag, represented in the lowest currency unit, such as pence, paise, cents, yen, etc. Maximum 99.
cash_payment boolean No Enable cash payment for the takeaway
email string No Email address of the takeaway
hero_image_url object No URL of the main image displayed to users when browsing for a store. Only accepts .jpg, .jpeg, .png, and .webp formats.
item_eligibility_rules array of object No Defines item quantity limits and restrictions based on tags (for example, "ALCOHOL", "MEDICINE") for store-wide control over product availability.
item_eligibility_rules[].label string Yes Display-friendly label
item_eligibility_rules[].name string Yes tag name that the item is associated with
item_eligibility_rules[].type enum: COUNT, VOLUME, WEIGHT Yes Restriction type
item_eligibility_rules[].unit string Yes Unit of measure
item_eligibility_rules[].value string Yes Maximum allowed quantity
logo_image_url object No URL of the logo image displayed to users when browsing for a store.Only accepts .jpg, .jpeg, .png, and .webp formats.
merchant_id number No Payment Merchant ID for the store
name string Yes Name of the takeaway to onboard
owner object No Defines owner's details
owner.address object No Defines owner's address details
owner.address.city string No City
owner.address.postcode string No Address postcode
owner.address.street string No Street
owner.address.town string No Town
owner.address.unit_number string No Flat/Building/Unit number
owner.email string No Email address of the takeaway owner
owner.first_name string No First Name of the takeaway owner
owner.last_name string No Last Name of the takeaway owner
owner.phone_number string No Contact number of the takeaway owner
phone_number string Yes Contact number of the takeaways
sales_agent string or any No Name of the sales agent.
sales_agent_id string or any No Sales Agent Identifier.
store_open boolean No Is the store needs to be open for business
store_status enum: TEST, LIVE No Specifies whether the store site should be live or in temporary status

Responses

200: OK

application/json

Property Type Required Description
siteUrl string No The web address of the site.
storeId string Yes Store 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

Operation ID: GET/v1/stores.

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
skip query string No Number of existing config stores to skip when listing all stores. Defaults to 0. Ignored when store_ids is supplied.
store_ids query string No Comma-separated store ids, for example 101,102,103. Returns only those stores, unpaginated. Responds 403 if any id is not associated with the client. Omit to page through all associated stores.
limit query string No Maximum number of existing config stores returned per page. Defaults to 25, maximum 100. Ignored when store_ids is supplied.

Responses

200: OK

application/json

Property Type Required Description
data array of object No
data[].address object Yes Store Address
data[].address.address1 string Yes
data[].address.area string Yes
data[].address.city string Yes
data[].address.lat string Yes
data[].address.long string Yes
data[].address.postcode string Yes
data[].address.unit_number string Yes
data[].business_phone_number string Yes
data[].card_payment boolean Yes
data[].cash_payment boolean Yes
data[].description string Yes Store Description
data[].email string Yes
data[].host string Yes Store Host
data[].id string Yes Store ID
data[].menu_url string Yes Menu URL
data[].merchant_id number No Merchant ID
data[].name string Yes Store Name
data[].owner object Yes
data[].owner.address object Yes
data[].owner.address.city string Yes
data[].owner.address.postcode string Yes
data[].owner.address.street string Yes
data[].owner.address.town string Yes
data[].owner.address.unit_number string Yes
data[].owner.email string Yes
data[].owner.first_name string Yes
data[].owner.last_name string Yes
data[].owner.phone_number string Yes
data[].phone_number string Yes
data[].sales_agent string or any Yes
data[].sales_agent_id string or any Yes
data[].store_open boolean Yes
data[].store_status enum: TEST, LIVE Yes
data[].website_url string Yes Website URL
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}

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

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier

Responses

200: OK

application/json

Property Type Required Description
data object No Store Entity
data.address object No The store address
data.address.address1 string Yes The first line of the stores address
data.address.area string Yes Address Area
data.address.city string Yes Address City
data.address.country string Yes Country
data.address.country_code string No Country code
data.address.lat string Yes Latitude
data.address.long string Yes Longitude
data.address.postcode string Yes Postcode of the stores address
data.address.region string Yes Region
data.address.unit_number string Yes Flat/Building/Unit number
data.business_phone_number string No Business phone number of the takeaway
data.card_payment boolean No Enable online payments for the takeaway
data.carry_bag object No Carry bag charge configuration for the store. The number of bags is the order item quantity divided by items_per_bag, rounded up, and each bag is charged price_per_bag.
data.carry_bag.enabled boolean No Whether the carry bag charge is applied to orders.
data.carry_bag.items_per_bag integer or any No Maximum number of items per bag. Null when not configured.
data.carry_bag.price_per_bag integer or any No Charge per bag, represented in the lowest currency unit, such as pence, paise, cents, yen, etc. Null when not configured.
data.cash_payment boolean No Enable cash payments for the takeaway
data.description string No A general description of the store
data.email string No Email address of the takeaway
data.hero_image_url object No URL of the main image displayed to users when browsing for a store.Only accepts .jpg, .jpeg, .png, and .webp formats.
data.id string No A unique store identifier
data.item_eligibility_rules array of object No Defines item quantity limits and restrictions based on tags (for example, "ALCOHOL", "MEDICINE") for store-wide control over product availability.
data.item_eligibility_rules[].label string Yes Display-friendly label
data.item_eligibility_rules[].name string Yes tag name that the item is associated with
data.item_eligibility_rules[].type enum: COUNT, VOLUME, WEIGHT Yes Restriction type
data.item_eligibility_rules[].unit string Yes Unit of measure
data.item_eligibility_rules[].value string Yes Maximum allowed quantity
data.logo_image_url object No URL of the logo image displayed to users when browsing for a store.Only accepts .jpg, .jpeg, .png, and .webp formats.
data.merchant_id number No Payment Merchant ID for the store
data.name string No The store name
data.owner object No Defines owner's details
data.owner.address object No Defines owner's address details
data.owner.address.city string No City
data.owner.address.postcode string No Address postcode
data.owner.address.street string No Street
data.owner.address.town string No Town
data.owner.address.unit_number string No Flat/Building/Unit number
data.owner.email string No Email address of the takeaway owner
data.owner.first_name string No First Name of the takeaway owner
data.owner.last_name string No Last Name of the takeaway owner
data.owner.phone_number string No Contact number of the takeaway owner
data.phone_number string No Registered phone number of the store owner, used for authenticating the application.
data.sales_agent string or any No Name of the sales agent.
data.sales_agent_id string or any No Sales Agent Identifier.
data.store_open boolean No Is the store needs to be open for business
data.store_status enum: TEST, LIVE No Specifies whether the store site should be live or in temporary status
data.tax object No Tax configuration for the store. Returned even when sales tax is disabled.
data.tax.is_tax_included boolean No Whether tax is included in the store listed prices
data.tax.rate number No If type is FIXED: fixed tax amount in the smallest currency unit (for example 2). If type is PERCENTAGE: percentage (whole or fractional, for example 20 or 8.25).
data.tax.sales_tax_enabled boolean No No item will have tax when it disabled
data.tax.tax_priority boolean No Apply sales tax at the item level if enabled
data.tax.type enum: FIXED, PERCENTAGE No FIXED: a fixed amount per item (for example $1.50 per item). PERCENTAGE: a percentage of the item price (for example 5%).
data.website_url string No The url for the stores web address
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

update

PATCH /v1/stores/{storeId}

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

Authentication: oauth2 (AccessToken).

Parameters

Parameter In Type Required Description
storeId path string Yes Store Identifier

Request body

application/json

Property Type Required Description
address object No Address Details of the takeaway
address.address1 string No Street address
address.area string No Area
address.city string No City
address.country string No Country <a href='#section/Getting-Started/Country-and-Region'>See Documentation</a>
address.lat number No Latitude
address.long number No Longitude
address.postcode string No Address postcode
address.region string No Region <a href='#section/Getting-Started/Country-and-Region'>See Documentation</a>
address.unit_number string No Flat/Building/Unit number
business_phone_number string No Business phone number of the takeaway
card_payment boolean No Enable online payments for the takeaway
carry_bag object No Carry bag charge added to orders. When enabled, the number of bags is the order item quantity divided by items_per_bag, rounded up, and each bag is charged price_per_bag. Only the fields provided are updated; omitted fields keep their current values.
carry_bag.enabled boolean No Whether the carry bag charge is applied to orders. Enabling requires items_per_bag and a price_per_bag greater than 0, sent in this request or already configured.
carry_bag.items_per_bag integer No Maximum number of items per bag.
carry_bag.price_per_bag integer No Charge per bag, represented in the lowest currency unit, such as pence, paise, cents, yen, etc. Maximum 99.
cash_payment boolean No Enable cash payment for the takeaway
email string No Email address of the takeaway
hero_image_url object No URL of the main image displayed when browsing for a store. Accepts .jpg, .jpeg, .png, and .webp formats.
item_eligibility_rules array of object No Defines item quantity limits and restrictions based on tags (for example, "ALCOHOL", "MEDICINE") for store-wide control over product availability.
item_eligibility_rules[].label string Yes Display-friendly label
item_eligibility_rules[].name string Yes tag name that the item is associated with
item_eligibility_rules[].type enum: COUNT, VOLUME, WEIGHT Yes Restriction type
item_eligibility_rules[].unit string Yes Unit of measure
item_eligibility_rules[].value string Yes Maximum allowed quantity
logo_image_url object No URL of the logo image displayed to users when browsing for a store.Only accepts .jpg, .jpeg, .png, and .webp formats.
name string No Name of the takeaway to onboard
owner object No Defines owner's details
owner.address object No Defines owner's address details
owner.address.city string No City
owner.address.postcode string No Address postcode
owner.address.street string No Street
owner.address.town string No Town
owner.address.unit_number string No Flat/Building/Unit number
owner.email string No Email address of the takeaway owner
owner.first_name string No First Name of the takeaway owner
owner.last_name string No Last Name of the takeaway owner
owner.phone_number string No Contact number of the takeaway owner
phone_number string No Contact number of the takeaways
sales_agent string or any No Name of the sales agent.
sales_agent_id string or any No Sales Agent Identifier.
store_open boolean No Is the store needs to be open for business
store_status enum: TEST, LIVE No Specifies whether the store site should be live or in temporary status

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.
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