Get All Product Zones
Retrieves a paginated list of product zones. A product zone is a location rule. For shoppers in a country, a set of states or a set of ZIP codes, it either shows only certain product groups (include) or hides them (exclude).
HTTP Request
- URL:
/ProductZones - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_PRODUCTorREAD_WRITE_PRODUCT
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | Integer | Page number to retrieve. Default is 1. |
limit | Integer | Number of product zones per page. Default is 10. |
cURL Example
curl --location '<BASE_URL>/ProductZones?page=1&limit=10' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The list of product zones was returned successfully.
- 400 Bad Request: The request could not be completed.
Sample JSON Response
{
"success": true,
"data": [
{
"_id": "6705c1a2b3c4d5e6f7a8b9c0",
"id": "6705c1a2b3c4d5e6f7a8b9c0",
"name": "West Coast",
"active": true,
"type": "state",
"country": { "name": "United States", "countryCode": "US" },
"states": [
{ "_id": "6705c1a2b3c4d5e6f7a8b9c1", "name": "California", "stateCode": "CA" },
{ "_id": "6705c1a2b3c4d5e6f7a8b9c2", "name": "Oregon", "stateCode": "OR" }
],
"zipcodes": [],
"productGroups": {
"_id": "6705c1a2b3c4d5e6f7a8b9c3",
"type": "exclude",
"productGroups": ["66f0a9d8c7b6a5f4e3d2c1b0"]
},
"createdAt": "2025-10-09T06:14:58.210Z",
"updatedAt": "2025-10-09T06:14:58.210Z"
}
],
"pagination": {
"page": 1,
"total": 1,
"count": 1
}
}
Response Details
Product Zone Data
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the product zone. |
name | String | Name of the product zone. |
active | Boolean | Whether the zone is active. Default is true. |
type | String | What the zone matches on: country, state or zipcode. |
country | Object | The zone's country, with name and countryCode (for example US). |
states | Array | States in the zone, each with name and stateCode. Used when type is state. |
zipcodes | Array | ZIP codes in the zone, each with zipcode. Used when type is zipcode. |
productGroups | Object | The product groups the zone applies to. See below. |
createdAt | String | Date and time the zone was created (ISO 8601). |
updatedAt | String | Date and time the zone was last updated (ISO 8601). |
Product Groups Object
| Field | Type | Description |
|---|---|---|
type | String | include to show only these product groups, or exclude to hide them. |
productGroups | Array | IDs of the product groups. |
Pagination Details
| Field | Type | Description |
|---|---|---|
page | Number | Current page number. |
total | Number | Total number of product zones. |
count | Number | Number of product zones returned on this page. |
Notes
- Product zones apply when zone-based products are enabled for your store.
- The shopper's location comes from their default shipping address or their IP address, depending on your store settings.
- When several zones match, a ZIP code zone is used first, then a state zone, then a country zone.