Skip to main content

In-store Pickup API (0)

Download OpenAPI specification:Download

Generate in-store pickup options

Generates a list of in-store pickup options for the given geographic location, taking the in-store pickup config into account.

The returned options are sorted by proximity to the provided geo-location.

Important: The search_radius property is in kilometers.

Note: The validity of a shipping offer token can vary based on the shipping provider and shipping offer.

For in-store pickup orders, a shipping offer token does not expire.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
required
object (Location)

A reference geo-location. For example, the location of the customer.

required
Array of objects (Bag)
object

In-store pickup options request parameters.

Responses

Request samples

Content type
application/json
{
  • "location": {
    },
  • "bag": [
    ],
  • "options": {
    }
}

Response samples

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

Create in-store pickup config

Creates the initial in-store pickup config for all stores in your business. Overrides all existing global and store-specific config values.

Important: The default_search_radius property is in kilometers.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
required
object

Represents a global configuration that applies to all stores.

object

Responses

Request samples

Content type
application/json
{
  • "global": {
    },
  • "stores": {
    }
}

Response samples

Content type
application/json
{
  • "global": {
    },
  • "stores": {
    }
}

Get in-store pickup config

Retrieves the global and store-specific in-store pickup configurations.

Important: The default_search_radius property is in kilometers.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "global": {
    },
  • "stores": {
    }
}

Delete in-store pickup config

Deletes the in-store pickup config set up for your business.

When you delete the config, in-store pickup is disabled across all stores.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "error_code": "string",
  • "message": "string",
  • "request_id": "string"
}

Update in-store pickup config

Updates the global pickup config.

Important: The default_search_radius property is in kilometers.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
display_name
string

User-facing name of the in-store pickup shipping option. This string should help the stock room worker understand that the order is an in-store pickup order.

default_limit
integer >= 0

The default number of fulfillment nodes that should be returned if no limit is provided in the request.

grace_period
number

Time in seconds for the order to stay in grace period.

default_search_radius
number

Default radius in kilometers for searching stores, supporting in-store pickup option.

Responses

Request samples

Content type
application/json
{
  • "display_name": "In store pickup",
  • "grace_period": 0,
  • "default_search_radius": 10
}

Response samples

Content type
application/json
{
  • "display_name": "In store pickup",
  • "grace_period": 0,
  • "default_search_radius": 10
}

Create in-store pickup config for store

Creates a new pickup config for the store.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
= 1 properties
additional property
object (Store config)

Represents a store configuration.

delivery_time
string

Estimated delivery time as a human-readable string if all items are available in the store.

delivery_time_if_not_available
string

Estimated delivery time as a human-readable string if one or more items are unavailable in the store.

object

Responses

Request samples

Content type
application/json
{
  • "US-01": {
    }
}

Response samples

Content type
application/json
{
  • "US-01": {
    }
}

Get in-store pickup config for store

Retrieves the store config.

Authorizations:
newStoreAccessToken
path Parameters
store_id
required
string

The identifier of the store.

Responses

Response samples

Content type
application/json
{
  • "delivery_time": "Available now",
  • "delivery_time_if_not_available": "Pick up in 3-4 days",
  • "cost": {
    }
}

Update in-store pickup config for store

Modifies the existing store config or creates a new one if it does not exist.

Authorizations:
newStoreAccessToken
path Parameters
store_id
required
string

The identifier of the store.

Request Body schema: application/json
delivery_time
string

Estimated delivery time as a human-readable string if all items are available in the store.

delivery_time_if_not_available
string

Estimated delivery time as a human-readable string if one or more items are unavailable in the store.

object

Responses

Request samples

Content type
application/json
{
  • "delivery_time": "Available now",
  • "delivery_time_if_not_available": "Pick up in 3-4 days",
  • "cost": {
    }
}

Response samples

Content type
application/json
{
  • "delivery_time": "Available now",
  • "delivery_time_if_not_available": "Pick up in 3-4 days",
  • "cost": {
    }
}

Delete in-store pickup config for store

Deletes the in-store pickup config for a store.

When you delete the config, in-store pickup is disabled for the store.

Authorizations:
newStoreAccessToken
path Parameters
store_id
required
string

The identifier of the store.

Responses

Response samples

Content type
application/json
{
  • "error_code": "string",
  • "message": "string",
  • "request_id": "string"
}