メインコンテンツへスキップ

Storefront V1 API Specification (1.0.0)

Storefront API Support: [email protected]

Business & Store

Endpoints for retreiving business & store information

Get stores by business

Retreive a list of stores that are currently active on storefront and owned by a busines. Search results will be sorted by store id.

Authorizations:
BearerAuth
path Parameters
business_id
required
string (BusinessId) ^([1-9][0-9]*)$
Example: 123

Business id used for filtering stores

query Parameters
pagination_token
string (PaginationToken)
Example: pagination_token=1111

The pagination token to retrieve the previous/next page of results.

limit
integer (Limit) [ 1 .. 20 ] ^(0|[1-9][0-9]*)$
Default: 10

Specify the maximum number of items that may be returned for a single request.

Responses

Response samples

Content type
application/json
{
  • "stores": [
    ],
  • "prev_token": "239843",
  • "next_token": "239886"
}

Get stores by business group

Retreive a list of stores that are currently active on storefront and owned by a business group. Search results will be sorted by store id.

Authorizations:
BearerAuth
path Parameters
business_group_id
required
string (BusinessGroupId) ^([1-9][0-9]*)$
Example: 123

Business group id used for filtering stores

query Parameters
pagination_token
string (PaginationToken)
Example: pagination_token=1111

The pagination token to retrieve the previous/next page of results.

limit
integer (Limit) [ 1 .. 20 ] ^(0|[1-9][0-9]*)$
Default: 10

Specify the maximum number of items that may be returned for a single request.

Responses

Response samples

Content type
application/json
{
  • "stores": [
    ],
  • "prev_token": "239843",
  • "next_token": "239886"
}

Get store details

Request more details about a single store given store id

Authorizations:
BearerAuth
path Parameters
store_id
required
string (StoreId) ^([1-9][0-9]*)$
Example: 123

Store id

Responses

Response samples

Content type
application/json
{
  • "id": "123",
  • "name": "Example Store",
  • "address": "123 Street Apt123, WA",
  • "phone_number": "1233333456",
  • "time_zone": "US/New York",
  • "status": {
    },
  • "store_hours": {
    },
  • "store_special_hours": {
    },
  • "minimum_order_value": 0,
  • "delivery_fee": 399,
  • "average_delivery_time": 20,
  • "average_pickup_time": 10
}

Get store menus by store id

Authorizations:
BearerAuth
path Parameters
store_id
required
string (StoreId) ^([1-9][0-9]*)$
Example: 123

Store id

Responses

Response samples

Content type
application/json
{
  • "menu": {
    }
}

Search

Endpoints for searching resources

Search nearby stores by business

Search for stores that are currently active on storefront and within a specified area given business id and location. Search results can be refined by providing additional keywords and the result will be sorted by distance.

Authorizations:
BearerAuth
path Parameters
business_id
required
string (BusinessId) ^([1-9][0-9]*)$
Example: 123

Business id used for filtering stores

query Parameters
lat
required
string (Latitude) ^(\+|-)?(?:90(?:(?:\.0{1,7})?)|(?:[0-9]|[1-8]...
Example: lat=-32.1234537

latitude

lon
required
string (Longitude) ^(\+|-)?(?:180(?:(?:\.0{1,7})?)|(?:[0-9]|[1-9...
Example: lon=-156.1234538

longitude

limit
integer (Limit) [ 1 .. 20 ] ^(0|[1-9][0-9]*)$
Default: 10

Specify the maximum number of items that may be returned for a single request.

open_at
string (OpenAt) ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}...
Example: open_at=2018-08-22T17:20:28Z

If specified, only stores that are open for business at the specified time are returned. Possible values is future UTC timestamp in ISO-8601 format within seven days from current time.

is_pickup
boolean (IsPickup)
Default: true

If true, return stores based on store pick up raidus. Otherwise, return stores based on delivery radius. The default value is true.

search_radius
integer (StoreRadius) [ 1 .. 10000 ]
Default: 1000

Define the distance in meters within which to return store results. The default value is 1000. Search radius is only applicable to pick ups.

Responses

Response samples

Content type
application/json
{
  • "stores": [
    ]
}

Search nearby stores by business group

Search for stores that are currently active on storefront and within a specified area given business group id and location. Search results can be refined by providing additional keywords and the result will be sorted by distance.

Authorizations:
BearerAuth
path Parameters
business_group_id
required
string (BusinessGroupId) ^([1-9][0-9]*)$
Example: 123

Business group id used for filtering stores

query Parameters
lat
required
string (Latitude) ^(\+|-)?(?:90(?:(?:\.0{1,7})?)|(?:[0-9]|[1-8]...
Example: lat=-32.1234537

latitude

lon
required
string (Longitude) ^(\+|-)?(?:180(?:(?:\.0{1,7})?)|(?:[0-9]|[1-9...
Example: lon=-156.1234538

longitude

limit
integer (Limit) [ 1 .. 20 ] ^(0|[1-9][0-9]*)$
Default: 10

Specify the maximum number of items that may be returned for a single request.

open_at
string (OpenAt) ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}...
Example: open_at=2018-08-22T17:20:28Z

If specified, only stores that are open for business at the specified time are returned. Possible values is future UTC timestamp in ISO-8601 format within seven days from current time.

is_pickup
boolean (IsPickup)
Default: true

If true, return stores based on store pick up raidus. Otherwise, return stores based on delivery radius. The default value is true.

search_radius
integer (StoreRadius) [ 1 .. 10000 ]
Default: 1000

Define the distance in meters within which to return store results. The default value is 1000. Search radius is only applicable to pick ups.

Responses

Response samples

Content type
application/json
{
  • "stores": [
    ]
}