PlutocracyMercury developer docs

ZoneRuleGroup

Rule group on the redis zone document. RELATED (NOT merged): admin.ZoneRuleGroup types the stored entity, where default/products/rules are required; the redis document copies observed on the wire may omit them, hence the looser optionality here.

Type: object

FieldTypeDescription
default optionalboolean
products optionalany
productIds optionalany
mode"manual" | "collection" | "recommended" | "empty"
rules optionalZoneRule[]
Example (illustrative)
{
  "default": false,
  "products": null,
  "productIds": null,
  "mode": "manual",
  "rules": [
    {
      "type": "price",
      "value": 1,
      "condition": "productTypeContains"
    }
  ]
}

Used by

Declared in api-types/src/storefront/models.ts.