Get Product Zone
Retrieves the details of a single product zone, including its locations and the product groups it applies to.
HTTP Request
- URL:
/ProductZone/{id} - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_PRODUCTorREAD_WRITE_PRODUCT
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the product zone to retrieve. |
cURL Example
curl --location '<BASE_URL>/ProductZone/6705c1a2b3c4d5e6f7a8b9c0' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The product zone was returned successfully.
- 400 Bad Request: The product zone ID is not valid.
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"
}
}
Response Details
Product Zone Data
The fields are the same as in Get All Product Zones.
Notes
- If no product zone matches the ID,
datais an empty object.