Skip to main content

Delivery Options configuration API (v0)

Download OpenAPI specification:Download

Manage provider rate configurations and getting offers from carriers.

Configuration

configuration for delivery options settings

Get customization adapter config

Sets up the base_url, which is a URL prefix of a particular customization adapter (https://...) used to retrieve provider rates in your business.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{}

Set customization adapter config

Sets up the base_url, which is a URL prefix of a particular customization adapter (https://...) used to retrieve provider rates in your business.

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

Configuration needed to use an external adapter to fetch customized shipping options.

base_url
required
string^https://

Base URL of customization adapter.

Responses

Request samples

Content type
application/json

Response samples

Content type
application/json
{
  • "messages": [
    ],
  • "request_id": "string"
}

Get packing timer duration

Retrieves the time for which an order that is packed and ready for pickup is not shipped or picked up from the fulfillment location.

This time allows the store to ensure that the order is ready for pickup when the shipping partner or customer arrives at the location.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "value": 1085,
  • "updated_at": "2021-08-23T12:54:05.174Z"
}

Set packing timer duration

Sets the time for which an order that is packed and ready for pickup is not shipped or picked up from the fulfillment location.

This time allows the store to ensure that the order is ready for pickup when the shipping partner or customer arrives at the location.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
value
required
integer

Time needed to pack an order (seconds).

Responses

Request samples

Content type
application/json
{
  • "value": 1085
}

Response samples

Content type
application/json
{
  • "messages": [
    ],
  • "request_id": "string"
}

Get shipping price config for split orders

Retrieves the configuration to charge the price for split shipment orders.

If set to true, for all split shipment orders in your business, only the shipping price for the most expensive shipment in the order is request is charged to the customer. The rest of the shipment prices are ignored.

For more information, see this business example.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "value": true,
  • "updated_at": "2021-08-23T12:54:06.960Z"
}

Set shipping price config for split orders

Sets the configuration to charge the price for split shipment orders.

If set to true, for all split shipment orders in your business, only the shipping price for the most expensive shipment in the order is request is charged to the customer. The rest of the shipment prices are ignored.

For more information, see this business example.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
value
required
boolean

If true, for fulfillment from multiple locations, only the fulfillment request with the highest shipment price is charged. The rest of the shipment prices are ignored.

Responses

Request samples

Content type
application/json
{
  • "value": true
}

Response samples

Content type
application/json
{
  • "messages": [
    ],
  • "request_id": "string"
}

Get config for customizable provider rates

Retrieves the current configuration to retrieve customizable provider rates from an external customization adapter.

To enable this configuration if it is currently disabled, use the Set config for customizable provider rates method.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "value": true,
  • "updated_at": "2021-08-23T12:54:05.721Z"
}

Set config for customizable provider rates

Sets the configuration to retrieve customizable provider rates from an external customization adapter.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
value
required
boolean

Toggle to use external adapter to fetch provider rates.

Responses

Request samples

Content type
application/json
{
  • "value": true
}

Response samples

Content type
application/json
{
  • "messages": [
    ],
  • "request_id": "string"
}

Get priority of provider rates

Retrieves the current configuration for priority of provider rates.

If set to true, provider rates are selected based on what has been configured in the fulfillment configuration for your business.

If set to false, provider rates are selected based on what has been configured in the routes property in the fulfillment configuration for your business.

For more information, see this guide.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
{
  • "value": true,
  • "updated_at": "2021-08-23T12:54:05.858Z"
}

Set priority of provider rates

Sets the priority of priority of provider rates in your business.

If set to true, provider rates are selected based on what has been configured in the provider_rates_priority property in the fulfillment configuration for your business.

If set to false, provider rates are selected based on what has been configured in the routes property in the fulfillment configuration for your business.

For more information, see this guide.

Authorizations:
newStoreAccessToken
Request Body schema: application/json
value
required
boolean

If true, delivery provider rates will be taken from provider_rates_priority section of the fulfilment config, otherwise from routes section.

Responses

Request samples

Content type
application/json
{
  • "value": true
}

Response samples

Content type
application/json
{
  • "messages": [
    ],
  • "request_id": "string"
}