Body
Required
-
bandType
string | null Required Band type
Values are
fixed
,weight
,price
, orcarrier
. Default value isprice
. -
countries
array[string] | null Required Countries
Default value is
[]
(empty). -
countriesFilter
string | null Required Countries filter
Values are
all
,domestic
,rest_of_world
,exclude
, orinclude
. Default value isall
. -
customCarriers
string | null Required 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
-
shippingRateId
integer(int32) Required Shipping rate
-
states
array[string] | null Required States
Default value is
[]
(empty). -
statesFilter
string | null Required States filter
Values are
all
,exclude
, orinclude
. Default value isall
. -
useIntegrationFilteringEndpoint
boolean | null Use integration filtering endpoint
-
useServiceFilteringEndpoint
boolean | null Use service filtering endpoint
-
variantScope
string | null Required Variant scope
Values are
all
,select
, orexclude
. Default value isall
. -
zips
array[string] | null Required Zips
Default value is
[]
(empty). -
zipsFilter
string | null Required Zips filter
Values are
all
,exclude
,include
, orstartsWith
. Default value isall
.
POST
/shipping-rate-zones.json
curl \
--request POST 'http://api.example.com/v1/shipping-rate-zones.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"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 examples
{
"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": "2025-05-04T09:42:00Z",
"customCarriers": "all",
"id": 42,
"integrationFilteringEndpoint": "string",
"name": "string",
"serviceFilteringEndpoint": "string",
"shippingRateId": 42,
"states": [],
"statesFilter": "all",
"tags": [],
"tagsFilter": "all",
"updatedAt": "2025-05-04T09:42:00Z",
"useIntegrationFilteringEndpoint": true,
"useServiceFilteringEndpoint": true,
"variantScope": "all",
"zips": [],
"zipsFilter": "all"
}