POST /shipping-rate-zones.json
Body Required
-
Band type
Values are
fixed
,weight
,price
, orcarrier
. Default value isprice
. -
Countries
Default value is
[]
(empty). -
Countries filter
Values are
all
,domestic
,rest_of_world
,exclude
, orinclude
. Default value isall
. -
Custom carriers
Values are
all
orselected
. Default value isall
. -
integrationFilteringEndpoint string | null
Integration filtering endpoint
-
name string | null
Name
-
serviceFilteringEndpoint string | null
Service filtering endpoint
-
Shipping rate
-
States
Default value is
[]
(empty). -
States filter
Values are
all
,exclude
, orinclude
. Default value isall
. -
useIntegrationFilteringEndpoint boolean | null
Use integration filtering endpoint
-
useServiceFilteringEndpoint boolean | null
Use service filtering endpoint
-
Variant scope
Values are
all
,select
, orexclude
. Default value isall
. -
Zips
Default value is
[]
(empty). -
Zips filter
Values are
all
,exclude
,include
, orstartsWith
. Default value isall
.
POST /shipping-rate-zones.json
curl \
-X POST http://api.example.com/v1/shipping-rate-zones.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"bandType":"price","countries":[],"countriesFilter":"all","customCarriers":"all","integrationFilteringEndpoint":"string","name":"string","serviceFilteringEndpoint":"string","shippingRateId":42,"states":[],"statesFilter":"all","tags":[],"tagsFilter":"all","useIntegrationFilteringEndpoint":true,"useServiceFilteringEndpoint":true,"variantScope":"all","zips":[],"zipsFilter":"all"}'
Request example
{
"bandType": "price",
"countries": [],
"countriesFilter": "all",
"customCarriers": "all",
"integrationFilteringEndpoint": "string",
"name": "string",
"serviceFilteringEndpoint": "string",
"shippingRateId": 42,
"states": [],
"statesFilter": "all",
"tags": [],
"tagsFilter": "all",
"useIntegrationFilteringEndpoint": true,
"useServiceFilteringEndpoint": true,
"variantScope": "all",
"zips": [],
"zipsFilter": "all"
}
Response examples (200)
{
"bandType": "price",
"countries": [],
"countriesFilter": "all",
"createdAt": "2024-05-04T09:42:00+00:00",
"customCarriers": "all",
"id": 42,
"integrationFilteringEndpoint": "string",
"name": "string",
"serviceFilteringEndpoint": "string",
"shippingRateId": 42,
"states": [],
"statesFilter": "all",
"tags": [],
"tagsFilter": "all",
"updatedAt": "2024-05-04T09:42:00+00:00",
"useIntegrationFilteringEndpoint": true,
"useServiceFilteringEndpoint": true,
"variantScope": "all",
"zips": [],
"zipsFilter": "all"
}