Execute a zone query by zone id.
GET /zone/query/{id}
GET https://mercury.plutocracy.io/zone/query/{id}
Served from Redis in all four regions (Sydney, N. Virginia, N. California, Frankfurt); DNS latency routing picks the nearest.
Execute a zone query by zone id.
Auth: Origin+bypass redis strategy.
Response: the rendered zone (zone document + products). When zone
resolution fails in ANY way the FALLBACK payload { title: '', products }
is returned with 200; when the matched rule group is empty the body is
EMPTY (handler returns undefined).
Authentication
Send the storefront's Origin (browsers do this for you) or ?bypassToken=. A request with neither gets 401. See authentication.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string | |
templateName | query | string | Template used to locate a zone when no |
tracking | query | string |
|
userId | query | string | Client user id used to key the analytics entry. |
currency | query | string | Narrow rendered product |
query | query | string | JSON-stringified filter operator array applied to the zone query. |
Responses
200 OK application/json
Type: ZoneResponse
Zone endpoint wire response: a rendered zone, the fallback shape, or an
EMPTY body (the handler returns undefined when the matched rule group is
empty).
Example response (illustrative)
{
"deletedDate": "2026-11-01T00:00:00.000Z",
"storeId": "7712345678901",
"id": "7712345678901",
"title": "Linen shirt",
"subtitle": "Linen shirt",
"shortcode": "string",
"default": false,
"area": "cart",
"mode": "manual",
"submode": "collection",
"conditions": {},
"config": {
"allowDiscountedProducts": false,
"allowOutOfStock": false,
"implode": false
},
"appearance": "grid",
"products": [
{
"id": "7712345678901",
"title": "Linen shirt",
"implode": 1,
"handle": "linen-shirt",
"vendor": "Mercury Apparel",
"type": "Shirts",
"on_sale": false,
"total_stock": 12,
"variants": [
{
"title": "Linen shirt",
"id": 7712345678901,
"inventory": 12,
"price": "89.00",
"compare_at_price": "89.00"
}
],
"prices": {
"AUD": {
"price": 89
}
},
"created_date": "2026-11-01T00:00:00.000Z",
"tags": [
"summer"
]
}
]
}401 No valid credential. application/json
Type: ApiErrorResponse
default An error, in the standard envelope. application/json
Type: ApiErrorResponse
Errors use the standard envelope; see errors and status codes.
Example request
curl "https://mercury.plutocracy.io/zone/query/7712345678901?bypassToken=$MERCURY_BYPASS_TOKEN"
Where this comes from
- Contract
ZoneQueryByIdRouteinapi-types/src/storefront/zone.ts- Route
GET /zone/query/:idon the view app