Add a Service Zone to a Fulfillment Set
POST
/admin/fulfillment-sets/{id}/service-zones
Fulfillment Sets
Request Request Example
JavaScript
Shell
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/admin/fulfillment-sets//service-zones' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"geo_zones": [
{
"metadata": {},
"country_code": "string",
"type": "country"
}
]
}'
Response Response Example
200 - Example 1
{
"fulfillment_set": {
"location": {
"address": {
"id": "string",
"address_1": "string",
"address_2": "string",
"company": "string",
"country_code": "us",
"city": "string",
"phone": "string",
"postal_code": "string",
"province": "us-ca"
},
"id": "string",
"name": "string",
"address_id": "string",
"sales_channels": [
{
"id": "string",
"name": "string",
"description": "string",
"is_disabled": true,
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
],
"fulfillment_providers": [
{
"id": "string",
"is_enabled": true
}
],
"fulfillment_sets": [
{}
]
},
"id": "string",
"name": "string",
"type": "string",
"service_zones": [
{
"id": "string",
"name": "string",
"fulfillment_set_id": "string",
"fulfillment_set": {},
"geo_zones": [
{
"id": "string",
"country_code": "string",
"city": "string",
"postal_expression": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"type": "country",
"province_code": "us-ca"
}
],
"shipping_options": [
{
"provider": {
"id": "string",
"is_enabled": true
},
"type": {
"id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"label": "string",
"description": "string",
"code": "string",
"shipping_option_id": "string"
},
"shipping_profile": {
"id": "string",
"name": "string",
"type": "string",
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
},
"id": "string",
"name": "string",
"service_zone_id": "string",
"service_zone": {},
"provider_id": "string",
"shipping_option_type_id": "string",
"shipping_profile_id": "string",
"rules": [
{
"id": "string",
"attribute": "is_return",
"value": "string",
"shipping_option_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"operator": "gt"
}
],
"prices": [
{
"price_rules": [
{
"id": "string",
"attribute": "string",
"price_id": "string",
"priority": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"operator": "gt",
"value": "string"
}
],
"rules_count": 0,
"id": "string",
"title": "string",
"currency_code": "usd",
"amount": 0,
"raw_amount": {},
"min_quantity": 0,
"max_quantity": 0,
"price_set_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
],
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"price_type": "calculated",
"data": {}
}
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
],
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
}
Request
Path Params
id
stringÂ
required
Query Params
fields
stringÂ
fields
+
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.Body Params application/json
Responses
Modified at 2025-06-17 04:10:32