Fulfillment Configuration API (0.1)
Download OpenAPI specification:Download
Represents a shipping strategy. A fulfillment configuration contains shipping and routing details such as provider rates, service levels, service-level priorities, fulfillment locations and routes, to configure order routing.
Use this resource to create, update, and retrieve fulfillment configurations.
For more information about routing and the terminology, see:
Add or update fulfillment configuration
Adds or updates the fulfillment_config
, or fulfillment configuration, used for order routing.
Notice the fulfillment_node_id
property in the schema. This property value is set during the first
stock import. For a complete example, see
Tutorial: Setting up a fulfillment configuration.
Note: Ensure that you specify the correct number of decimal places for monetary values of prices,
according to the specified currency. For example, if the currency is specified as USD
and the price has more than 2 decimal places, it is considered as
invalid by the platform. For more information, see
pricing dependencies on currency.
Use the routes
property to create shipping zones
and specify fulfillment locations that can fulfill orders for your business in these zones.
The first shipping zone in the list has the highest priority, and the last one in the list
has the lowest priority.
Important: Ensure that shipping zones with specific zip codes have higher priority than
shipping zones with a wide range of zip codes. For example, if you are fulfilling orders
in USA, a shipping zone that fulfills orders to zip codes starting with 10
(10*
) must
be higher in the list of routes
than a shipping zone that fulfills orders to all zip codes in the US (*
).
Use the provider_rates_priority
property to specify the priority in which the provider rates are used to
route orders in your business.
To set up and enable stores for in-store pickup orders, see In-store pickup configuration.
Authorizations:
Request Body schema: application/json
required | object (Post fulfillment config.) Schema for adding or updating fulfillment_config which is used for zip code based hard and soft routing. | ||||||||||
|
Responses
Request samples
- Payload
In this example, the priority of the provider rates to route same day delivery orders in your business has been defined in the following way:
- In the US, for all fulfillment locations except
DC01
, the provider rateFEDEX_SAME_DAY_RATE
has higher priority overUPS_SAME_DAY_RATE
. - For the warehouse
DC01
in the US, the provider rateUPS_SAME_DAY_RATE
has higher priority overFEDEX_SAME_DAY_RATE
. - In all other countries, for all fulfillment locations,
UPS_SAME_DAY_RATE
has higher priority overFEDEX_SAME_DAY_RATE
.
The priority of the provider rates to route traditional orders in your business has been defined in the following way:
- In the US, for all fulfillment locations except
DC01
, the priority of provider rates is as follows:FEDEX_TRADITIONAL_RATE
>UPS_TRADITIONAL_RATE
>USPS_TRADITIONAL_RATE
. - For the warehouse
DC01
in the US, the priority of provider rates is as follows:USPS_TRADITIONAL_RATE
>UPS_TRADITIONAL_RATE
>FEDEX_TRADITIONAL_RATE
. - In all other countries, for all fulfillment locations, the priority of provider rates
is as follows:
UPS_TRADITIONAL_RATE
>FEDEX_TRADITIONAL_RATE
>UPS_TRADITIONAL_RATE
.
{- "fulfillment_config": {
- "routes": [
- {
- "fulfilled_by": {
- "SAME_DAY_DELIVERY": [
- {
- "provider_rate": "UPS_SAME_DAY_RATE",
- "fulfillment_node_id": "store1_NYC"
}
]
}, - "destination_region": {
- "countries": [
- "US"
], - "zip_codes": [
- "10*"
]
}
}, - {
- "fulfilled_by": {
- "TRADITIONAL": [
- {
- "provider_rate": "UPS_TRADITIONAL_RATE",
- "fulfillment_node_id": "DC01"
}
]
}, - "destination_region": {
- "countries": [
- "US"
], - "zip_codes": [
- "*"
]
}
}
], - "provider_rates": {
- "UPS_SAME_DAY_RATE": {
- "service_level": "SAME_DAY_DELIVERY",
- "shipping_type": "same_day_delivery",
- "return_provider_rate": "",
- "shipping_carrier_name": "UPS",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "ExpressPlus"
}, - "FEDEX_SAME_DAY_RATE": {
- "service_level": "SAME_DAY_DELIVERY",
- "shipping_type": "same_day_delivery",
- "return_provider_rate": "",
- "shipping_carrier_name": "FedEx",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "PriorityService"
}, - "UPS_TRADITIONAL_RATE": {
- "service_level": "TRADITIONAL",
- "shipping_type": "same_day_delivery",
- "return_provider_rate": "",
- "shipping_carrier_name": "UPS",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "Ground"
}, - "FEDEX_TRADITIONAL_RATE": {
- "service_level": "TRADITIONAL",
- "shipping_type": "same_day_delivery",
- "return_provider_rate": "",
- "shipping_carrier_name": "FEDEX",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "FEDEX_GROUND"
}, - "USPS_TRADITIONAL_RATE": {
- "service_level": "TRADITIONAL",
- "shipping_type": "same_day_delivery",
- "return_provider_rate": "",
- "shipping_carrier_name": "USPS",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "First"
}
}, - "service_levels": {
- "SAME_DAY_DELIVERY": {
- "price": 15,
- "tax_code": "",
- "display_name": "Same day delivery",
- "currency_code": "USD",
- "delivery_time": "Today, if order is placed by 2 pm.",
- "remorse_period": 120,
- "delivery_time_after_cutoff_hour": "Tomorrow"
}, - "TRADITIONAL": {
- "price": 0,
- "tax_code": "",
- "display_name": "Traditional delivery",
- "currency_code": "USD",
- "delivery_time": "3-7 business days",
- "delivery_time_after_cutoff_hour": "4-8 business days"
}
}, - "sl_levels_priority": [
- "SAME_DAY_DELIVERY",
- "TRADITIONAL"
], - "provider_rates_priority": {
- "*": {
- "*": {
- "SAME_DAY_DELIVERY": [
- "UPS_SAME_DAY_RATE",
- "FEDEX_SAME_DAY_RATE"
], - "TRADITIONAL": [
- "UPS_TRADITIONAL_RATE",
- "FEDEX_TRADITIONAL_RATE",
- "USPS_TRADITIONAL_RATE"
]
}
}, - "US": {
- "*": {
- "SAME_DAY_DELIVERY": [
- "FEDEX_SAME_DAY_RATE",
- "UPS_SAME_DAY_RATE"
], - "TRADITIONAL": [
- "FEDEX_TRADITIONAL_RATE",
- "UPS_TRADITIONAL_RATE",
- "USPS_TRADITIONAL_RATE"
]
}, - "DC01": {
- "SAME_DAY_DELIVERY": [
- "UPS_SAME_DAY_RATE",
- "FEDEX_SAME_DAY_RATE"
], - "TRADITIONAL": [
- "USPS_TRADITIONAL_RATE",
- "UPS_TRADITIONAL_RATE",
- "FEDEX_TRADITIONAL_RATE"
]
}
}
}
}
}
Response samples
- 200
- 400
{- "fulfillment_config": {
- "provider_rates": {
- "ACME_2_DAY_EXPRESS": {
- "return_provider_rate": "",
- "service_level": "2_DAY",
- "shipping_carrier_name": "ACME",
- "shipping_type": "same_day_delivery",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "ACME_2_DAY_EXPRESS"
}, - "FEDEX_2_DAY_DELIVERY": {
- "return_provider_rate": "",
- "service_level": "2_DAY",
- "shipping_carrier_name": "FedEx",
- "shipping_type": "same_day_delivery",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "FEDEX_2_DAY"
}, - "ACME_5_DAY_NO_HURRY": {
- "return_provider_rate": "",
- "service_level": "GROUND",
- "shipping_carrier_name": "ACME",
- "shipping_type": "same_day_delivery",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "ACME_5_DAY_NO_HURRY"
}, - "FEDEX_GROUND_DELIVERY": {
- "return_provider_rate": "",
- "service_level": "GROUND",
- "shipping_carrier_name": "FedEx",
- "shipping_type": "same_day_delivery",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "FEDEX_GROUND"
}, - "ACME_ON_DEMAND_2_HOURS": {
- "return_provider_rate": "",
- "service_level": "SAME_DAY_DELIVERY",
- "shipping_carrier_name": "ACME_SAME_DAY",
- "shipping_type": "same_day_delivery",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "ACME_ON_DEMAND_2_HOURS"
}, - "CITY_SAME_DAY": {
- "return_provider_rate": "",
- "service_level": "SAME_DAY_DELIVERY",
- "shipping_carrier_name": "Deliv",
- "shipping_type": "same_day_delivery",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "Scheduled"
}, - "IN_STORE_PICKUP_US01": {
- "return_provider_rate": "",
- "service_level": "IN_STORE_PICKUP_US01",
- "shipping_carrier_name": "IN_STORE_PICKUP",
- "shipping_type": "in_store_pick_up",
- "use_as_customer_facing_cost": false,
- "carrier_defined_service_level": "IN_STORE_PICKUP"
}
}, - "routes": [
- {
- "destination_region": {
- "countries": [
- "US"
], - "zip_codes": [
- "10123",
- "10124",
- "10125",
- "10126",
- "10128",
- "10130",
- "10131",
- "10138",
- "10152",
- "10154",
- "10155",
- "10157"
]
}, - "fulfilled_by": {
- "IN_STORE_PICKUP_US01": [
- {
- "fulfillment_node_id": "US01",
- "provider_rate": "IN_STORE_PICKUP_US01"
}
]
}
}, - {
- "destination_region": {
- "countries": [
- "US"
], - "zip_codes": [
- "*"
]
}, - "fulfilled_by": {
- "2_DAY": [
- {
- "fulfillment_node_id": "US01",
- "provider_rate": "ACME_2_DAY_EXPRESS"
}, - {
- "fulfillment_node_id": "US02",
- "provider_rate": "ACME_2_DAY_EXPRESS"
}
], - "GROUND": [
- {
- "fulfillment_node_id": "US01",
- "provider_rate": "ACME_5_DAY_NO_HURRY"
}, - {
- "fulfillment_node_id": "US02",
- "provider_rate": "ACME_5_DAY_NO_HURRY"
}
], - "SAME_DAY_DELIVERY": [
- {
- "fulfillment_node_id": "US01",
- "provider_rate": "ACME_ON_DEMAND_2_HOURS"
}, - {
- "fulfillment_node_id": "US02",
- "provider_rate": "ACME_ON_DEMAND_2_HOURS"
}
]
}
}
], - "service_levels": {
- "2_DAY": {
- "currency_code": "USD",
- "delivery_time": "2-3 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Standard",
- "price": 0,
- "remorse_period": 0,
- "tax_code": ""
}, - "GROUND": {
- "currency_code": "USD",
- "delivery_time": "3-7 business days",
- "delivery_time_after_cutoff_hour": "",
- "display_name": "Ground",
- "price": 0,
- "remorse_period": 0,
- "tax_code": ""
}, - "IN_STORE_PICKUP_US01": {
- "currency_code": "USD",
- "delivery_time": "Collect your item at our store on 611 5th Avenue, New York",
- "delivery_time_after_cutoff_hour": "Collect your item at our store",
- "display_name": "Collect in Store",
- "price": 0,
- "remorse_period": 0,
- "tax_code": "FR"
}, - "SAME_DAY_DELIVERY": {
- "currency_code": "USD",
- "delivery_time": "Place order by 2pm",
- "delivery_time_after_cutoff_hour": "Place order by 2pm",
- "display_name": "Same Day",
- "price": 15,
- "remorse_period": 0,
- "tax_code": ""
}
}, - "sl_levels_priority": [
- "IN_STORE_PICKUP_US01",
- "2_DAY",
- "GROUND",
- "SAME_DAY_DELIVERY"
], - "provider_rates_priority": {
- "*": {
- "*": {
- "SAME_DAY_DELIVERY": [
- "ACME_ON_DEMAND_2_HOURS"
], - "GROUND": [
- "ACME_5_DAY_NO_HURRY"
], - "2_DAY": [
- "ACME_2_DAY_EXPRESS"
]
}
}, - "US": {
- "*": {
- "SAME_DAY_DELIVERY": [
- "ACME_ON_DEMAND_2_HOURS",
- "CITY_SAME_DAY"
], - "GROUND": [
- "ACME_5_DAY_NO_HURRY",
- "FEDEX_GROUND_DELIVERY"
], - "2_DAY": [
- "ACME_2_DAY_EXPRESS",
- "FEDEX_2_DAY_DELIVERY"
]
}, - "US01": {
- "SAME_DAY_DELIVERY": [
- "CITY_SAME_DAY",
- "ACME_ON_DEMAND_2_HOURS"
], - "GROUND": [
- "FEDEX_GROUND_DELIVERY",
- "ACME_5_DAY_NO_HURRY"
], - "2_DAY": [
- "FEDEX_2_DAY_DELIVERY",
- "ACME_2_DAY_EXPRESS"
]
}
}
}
}, - "revision": 3,
- "updated_at": "2018-07-16T09:05:42.138869546Z",
- "updated_by": "22IB3UROr1S3Je9hDaRh7f"
}
Get fulfillment config
Retrieves the latest version of the fulfillment configuration set up for your business.
Authorizations:
Responses
Response samples
- 200
{- "revision": 0,
- "fulfillment_config": {
- "provider_rates": {
- "property1": {
- "shipping_carrier_name": "string",
- "service_level": "string",
- "shipping_type": "string",
- "use_as_customer_facing_cost": true,
- "return_provider_rate": "string",
- "carrier_defined_service_level": "string"
}, - "property2": {
- "shipping_carrier_name": "string",
- "service_level": "string",
- "shipping_type": "string",
- "use_as_customer_facing_cost": true,
- "return_provider_rate": "string",
- "carrier_defined_service_level": "string"
}
}, - "service_levels": {
- "property1": {
- "display_name": "string",
- "delivery_time": "string",
- "delivery_time_after_cutoff_hour": "string",
- "price": 0,
- "currency_code": "string",
- "tax_code": "string",
- "remorse_period": 0
}, - "property2": {
- "display_name": "string",
- "delivery_time": "string",
- "delivery_time_after_cutoff_hour": "string",
- "price": 0,
- "currency_code": "string",
- "tax_code": "string",
- "remorse_period": 0
}
}, - "routes": [
- {
- "destination_region": {
- "countries": [
- "st"
], - "zip_codes": [
- "string"
]
}, - "fulfilled_by": {
- "property1": [
- {
- "fulfillment_node_id": "string",
- "provider_rate": "string"
}
], - "property2": [
- {
- "fulfillment_node_id": "string",
- "provider_rate": "string"
}
]
}
}
], - "sl_levels_priority": [
- "string"
], - "provider_rates_priority": {
- "property1": {
- "property1": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "property2": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}, - "property2": {
- "property1": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "property2": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
}
}, - "updated_by": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}