PlutocracyMercury developer docs

Execute a zone query without an id — the zone is located via ?templateName= (or the store default).

GET /zone/query

GET https://mercury.plutocracy.io/zone/query

Served from Redis in all four regions (Sydney, N. Virginia, N. California, Frankfurt); DNS latency routing picks the nearest.

Execute a zone query without an id — the zone is located via ?templateName= (or the store default).

Auth: Origin+bypass redis strategy.

Authentication

Send the storefront's Origin (browsers do this for you) or ?bypassToken=. A request with neither gets 401. See authentication.

Parameters

NameInTypeDescription
templateNamequerystring

Template used to locate a zone when no :id is given (or the id misses): cart | collection | product | cms | index | wishlist; any other value falls back to the first zone in the store's index.

trackingquerystring

none disables analytics tracking for this request.

userIdquerystring

Client user id used to key the analytics entry.

currencyquerystring

Narrow rendered product prices maps to this currency.

queryquerystring

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?bypassToken=$MERCURY_BYPASS_TOKEN"
Where this comes from
Contract
ZoneQueryRoute in api-types/src/storefront/zone.ts
Route
GET /zone/query on the view app