curl --request POST \
--url 'https://api.stateset.com/api/v1/shipping-zones' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"countries": [
"string"
],
"name": "string",
"postal_codes": null,
"priority": null,
"regions": null
}'
{
"countries": [
"string"
],
"created_at": "string",
"id": "string",
"is_active": true,
"name": "string",
"priority": 1
}
Create a zone
Create a zone
POST
/
api
/
v1
/
shipping-zones
curl --request POST \
--url 'https://api.stateset.com/api/v1/shipping-zones' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"countries": [
"string"
],
"name": "string",
"postal_codes": null,
"priority": null,
"regions": null
}'
{
"countries": [
"string"
],
"created_at": "string",
"id": "string",
"is_active": true,
"name": "string",
"priority": 1
}
Request body
CreateShippingZoneRequest
string[]
required
string
required
array,null
integer,null (int32)
array,null
Responses
ShippingZoneResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/shipping-zones' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"countries": [
"string"
],
"name": "string",
"postal_codes": null,
"priority": null,
"regions": null
}'
{
"countries": [
"string"
],
"created_at": "string",
"id": "string",
"is_active": true,
"name": "string",
"priority": 1
}
⌘I