Skip to main content

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_PRODUCT or READ_WRITE_PRODUCT

Query Parameters​

ParameterTypeDescription
pageIntegerPage number to retrieve. Default is 1.
limitIntegerNumber 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​

FieldTypeDescription
idStringUnique identifier of the product zone.
nameStringName of the product zone.
activeBooleanWhether the zone is active. Default is true.
typeStringWhat the zone matches on: country, state or zipcode.
countryObjectThe zone's country, with name and countryCode (for example US).
statesArrayStates in the zone, each with name and stateCode. Used when type is state.
zipcodesArrayZIP codes in the zone, each with zipcode. Used when type is zipcode.
productGroupsObjectThe product groups the zone applies to. See below.
createdAtStringDate and time the zone was created (ISO 8601).
updatedAtStringDate and time the zone was last updated (ISO 8601).

Product Groups Object​

FieldTypeDescription
typeStringinclude to show only these product groups, or exclude to hide them.
productGroupsArrayIDs of the product groups.

Pagination Details​

FieldTypeDescription
pageNumberCurrent page number.
totalNumberTotal number of product zones.
countNumberNumber 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.