Path parameters
-
id
integer(int64) Required Numeric ID of the instance
Minimum value is
1
.
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
. -
createdAt
string(date-time) Created at
-
customCarriers
string | null Required Custom carriers
Values are
all
orselected
. Default value isall
. -
id
integer(int32) Id
-
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
. -
updatedAt
string(date-time) Updated at
-
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
.
curl \
--request PUT 'http://api.example.com/v1/shipping-rate-zones/{id}.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"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"}'
{
"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"
}