{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://storedeputy.ai/contracts/module/operations.schema.json",
  "title": "Store Deputy Module Protocol — operations (accepted)",
  "description": "Status accepted (accepted 2026-10-11, updated 2026-11-20). Generated from contracts/module/operations.json and the envelope and neutral model of contracts/module/protocol.yaml by contracts/scripts/bundle-operations.mjs; do not edit by hand. Validate a request's params with #/$defs/<operation>.params, a result with #/$defs/<operation>.result, envelopes with #/$defs/Request, ResponseOk and ResponseError; the manifest of store.describe with #/$defs/Manifest.",
  "x-status": "accepted",
  "x-accepted": "2026-10-11",
  "x-protocol": "1.0",
  "x-decision": "docs/decisions/004-operation-shape.md",
  "x-verbs": [
    "search",
    "get",
    "list",
    "query",
    "apply",
    "create"
  ],
  "x-resources": {
    "product": {
      "schema": "module#/$defs/Product",
      "verbs": [
        "search",
        "get",
        "list",
        "query",
        "apply",
        "create"
      ],
      "search_by": [
        "id",
        "code",
        "sku",
        "gtin",
        "mpn"
      ],
      "writable": [
        "price",
        "status",
        "stock",
        "storefrontIds",
        "texts",
        "code",
        "sku",
        "mpn",
        "gtin",
        "manufacturerId",
        "categoryIds",
        "weight",
        "dimensions",
        "taxClassId",
        "minQuantity",
        "availableAt",
        "seoKeywords",
        "specials",
        "discounts",
        "sortOrder",
        "image",
        "images"
      ],
      "replaces": [
        "catalog.search",
        "catalog.get",
        "catalog.list",
        "price.apply"
      ]
    },
    "variant": {
      "schema": "module#/$defs/Variant",
      "verbs": [
        "search",
        "get",
        "apply"
      ],
      "search_by": [
        "id",
        "code",
        "sku",
        "gtin",
        "mpn"
      ],
      "writable": [
        "price",
        "status",
        "stock"
      ],
      "replaces": [
        "price.apply with variantId"
      ]
    },
    "optionValue": {
      "schema": "module#/$defs/OptionValue",
      "verbs": [
        "search",
        "get",
        "apply"
      ],
      "search_by": [
        "id",
        "label",
        "parentId"
      ],
      "writable": [
        "stock",
        "tracked"
      ]
    },
    "category": {
      "schema": "#/$defs/Category",
      "verbs": [
        "search",
        "get",
        "list",
        "query",
        "apply",
        "create"
      ],
      "search_by": [
        "id",
        "name"
      ],
      "writable": [
        "parentId",
        "status",
        "texts",
        "seoKeywords",
        "sortOrder",
        "image"
      ]
    },
    "manufacturer": {
      "schema": "#/$defs/Manufacturer",
      "verbs": [
        "search",
        "get",
        "list",
        "query",
        "apply",
        "create"
      ],
      "search_by": [
        "id",
        "name"
      ],
      "writable": [
        "name",
        "seoKeywords",
        "sortOrder"
      ]
    },
    "order": {
      "schema": "#/$defs/Order",
      "verbs": [
        "search",
        "get",
        "list",
        "query",
        "apply"
      ],
      "search_by": [
        "id",
        "number",
        "customerEmail"
      ],
      "writable": [
        "status",
        "history"
      ]
    },
    "orderStatus": {
      "schema": "#/$defs/OrderStatusEntry",
      "verbs": [
        "search",
        "get",
        "list",
        "query"
      ],
      "search_by": [
        "id",
        "name"
      ],
      "writable": []
    },
    "orderPaymentAddress": {
      "schema": "#/$defs/OrderAddress",
      "verbs": [
        "get"
      ],
      "writable": []
    },
    "orderShippingAddress": {
      "schema": "#/$defs/OrderAddress",
      "verbs": [
        "get"
      ],
      "writable": []
    },
    "customer": {
      "schema": "#/$defs/Customer",
      "verbs": [
        "search",
        "get",
        "list",
        "query",
        "apply"
      ],
      "search_by": [
        "id",
        "email",
        "telephone"
      ],
      "writable": [
        "status",
        "customerGroupId",
        "firstName",
        "lastName",
        "telephone",
        "email"
      ]
    },
    "customerGroup": {
      "schema": "#/$defs/CustomerGroup",
      "verbs": [
        "search",
        "get",
        "list",
        "query"
      ],
      "search_by": [
        "id",
        "name"
      ],
      "writable": []
    },
    "customerAddress": {
      "schema": "#/$defs/CustomerAddress",
      "verbs": [
        "get"
      ],
      "writable": []
    },
    "coupon": {
      "schema": "#/$defs/Coupon",
      "verbs": [
        "search",
        "get",
        "list",
        "query",
        "apply",
        "create"
      ],
      "search_by": [
        "id",
        "code"
      ],
      "writable": [
        "status",
        "code",
        "name",
        "discount",
        "usage",
        "startsAt",
        "endsAt",
        "productIds",
        "categoryIds",
        "loggedInOnly"
      ]
    },
    "review": {
      "schema": "#/$defs/Review",
      "verbs": [
        "get",
        "list",
        "query",
        "apply"
      ],
      "writable": [
        "status"
      ]
    },
    "returnRequest": {
      "schema": "#/$defs/ReturnRequest",
      "verbs": [
        "get",
        "list",
        "query"
      ],
      "writable": []
    },
    "returnStatus": {
      "schema": "#/$defs/ReturnReference",
      "verbs": [
        "search",
        "get",
        "list",
        "query"
      ],
      "search_by": [
        "id",
        "name"
      ],
      "writable": []
    },
    "returnReason": {
      "schema": "#/$defs/ReturnReference",
      "verbs": [
        "search",
        "get",
        "list",
        "query"
      ],
      "search_by": [
        "id",
        "name"
      ],
      "writable": []
    }
  },
  "x-capabilities": {
    "product.read": {
      "covers": [
        "product.search",
        "product.get"
      ]
    },
    "product.list": {
      "covers": [
        "product.list"
      ]
    },
    "product.query": {
      "covers": [
        "product.query"
      ]
    },
    "product.write.price": {
      "covers": [
        "product.apply on price"
      ],
      "conditional": true
    },
    "product.write.status": {
      "covers": [
        "product.apply on status"
      ],
      "conditional": true
    },
    "product.write.stock": {
      "covers": [
        "product.apply on stock"
      ],
      "conditional": true
    },
    "product.write.storefrontIds": {
      "covers": [
        "product.apply on storefrontIds"
      ],
      "conditional": true
    },
    "variant.read": {
      "covers": [
        "variant.search",
        "variant.get",
        "variants in product.get and product.list with include"
      ]
    },
    "variant.write.price": {
      "covers": [
        "variant.apply on price"
      ],
      "conditional": true
    },
    "variant.write.status": {
      "covers": [
        "variant.apply on status"
      ],
      "conditional": true
    },
    "variant.write.stock": {
      "covers": [
        "variant.apply on stock"
      ],
      "conditional": true
    },
    "optionValue.read": {
      "covers": [
        "optionValue.search",
        "optionValue.get",
        "optionValues in product.get, product.list and product.query with include options"
      ]
    },
    "optionValue.write.stock": {
      "covers": [
        "optionValue.apply on stock"
      ],
      "conditional": true
    },
    "optionValue.write.tracked": {
      "covers": [
        "optionValue.apply on tracked"
      ],
      "conditional": true
    },
    "category.read": {
      "covers": [
        "category.search",
        "category.get"
      ]
    },
    "category.list": {
      "covers": [
        "category.list"
      ]
    },
    "category.query": {
      "covers": [
        "category.query"
      ]
    },
    "category.write.parentId": {
      "covers": [
        "category.apply on parentId"
      ],
      "conditional": true
    },
    "category.write.status": {
      "covers": [
        "category.apply on status"
      ],
      "conditional": true
    },
    "manufacturer.read": {
      "covers": [
        "manufacturer.search",
        "manufacturer.get"
      ]
    },
    "manufacturer.list": {
      "covers": [
        "manufacturer.list"
      ]
    },
    "manufacturer.query": {
      "covers": [
        "manufacturer.query"
      ]
    },
    "order.read": {
      "covers": [
        "order.search",
        "order.get"
      ]
    },
    "order.list": {
      "covers": [
        "order.list"
      ]
    },
    "order.query": {
      "covers": [
        "order.query"
      ]
    },
    "order.write.status": {
      "covers": [
        "order.apply on status"
      ],
      "conditional": true
    },
    "orderStatus.read": {
      "covers": [
        "orderStatus.search",
        "orderStatus.get"
      ]
    },
    "orderStatus.list": {
      "covers": [
        "orderStatus.list"
      ]
    },
    "orderStatus.query": {
      "covers": [
        "orderStatus.query"
      ]
    },
    "orderPaymentAddress.read": {
      "covers": [
        "orderPaymentAddress.get"
      ]
    },
    "orderShippingAddress.read": {
      "covers": [
        "orderShippingAddress.get"
      ]
    },
    "customer.read": {
      "covers": [
        "customer.search",
        "customer.get"
      ]
    },
    "customer.list": {
      "covers": [
        "customer.list"
      ]
    },
    "customer.query": {
      "covers": [
        "customer.query"
      ]
    },
    "customerGroup.read": {
      "covers": [
        "customerGroup.search",
        "customerGroup.get"
      ]
    },
    "customerGroup.list": {
      "covers": [
        "customerGroup.list"
      ]
    },
    "customerGroup.query": {
      "covers": [
        "customerGroup.query"
      ]
    },
    "customerAddress.read": {
      "covers": [
        "customerAddress.get"
      ]
    },
    "coupon.read": {
      "covers": [
        "coupon.search",
        "coupon.get"
      ]
    },
    "coupon.list": {
      "covers": [
        "coupon.list"
      ]
    },
    "coupon.query": {
      "covers": [
        "coupon.query"
      ]
    },
    "coupon.write.status": {
      "covers": [
        "coupon.apply on status"
      ],
      "conditional": true
    },
    "product.write.texts": {
      "covers": [
        "product.apply on texts"
      ],
      "conditional": true
    },
    "product.create": {
      "covers": [
        "product.create"
      ],
      "idempotent": true
    },
    "category.create": {
      "covers": [
        "category.create"
      ],
      "idempotent": true
    },
    "manufacturer.create": {
      "covers": [
        "manufacturer.create"
      ],
      "idempotent": true
    },
    "coupon.create": {
      "covers": [
        "coupon.create"
      ],
      "idempotent": true
    },
    "product.write.code": {
      "covers": [
        "product.apply on code"
      ],
      "conditional": true
    },
    "product.write.sku": {
      "covers": [
        "product.apply on sku"
      ],
      "conditional": true
    },
    "product.write.mpn": {
      "covers": [
        "product.apply on mpn"
      ],
      "conditional": true
    },
    "product.write.gtin": {
      "covers": [
        "product.apply on gtin"
      ],
      "conditional": true
    },
    "product.write.manufacturerId": {
      "covers": [
        "product.apply on manufacturerId"
      ],
      "conditional": true
    },
    "product.write.categoryIds": {
      "covers": [
        "product.apply on categoryIds"
      ],
      "conditional": true
    },
    "product.write.weight": {
      "covers": [
        "product.apply on weight"
      ],
      "conditional": true
    },
    "product.write.dimensions": {
      "covers": [
        "product.apply on dimensions"
      ],
      "conditional": true
    },
    "product.write.taxClassId": {
      "covers": [
        "product.apply on taxClassId"
      ],
      "conditional": true
    },
    "product.write.minQuantity": {
      "covers": [
        "product.apply on minQuantity"
      ],
      "conditional": true
    },
    "product.write.sortOrder": {
      "covers": [
        "product.apply on sortOrder"
      ],
      "conditional": true,
      "description": "Proposed 14 November 2026 (STOR-124); not accepted."
    },
    "product.write.availableAt": {
      "covers": [
        "product.apply on availableAt"
      ],
      "conditional": true
    },
    "product.write.seoKeywords": {
      "covers": [
        "product.apply on seoKeywords"
      ],
      "conditional": true
    },
    "product.write.specials": {
      "covers": [
        "product.apply on specials"
      ],
      "conditional": true
    },
    "product.write.discounts": {
      "covers": [
        "product.apply on discounts"
      ],
      "conditional": true
    },
    "category.write.texts": {
      "covers": [
        "category.apply on texts"
      ],
      "conditional": true
    },
    "category.write.seoKeywords": {
      "covers": [
        "category.apply on seoKeywords"
      ],
      "conditional": true
    },
    "category.write.sortOrder": {
      "covers": [
        "category.apply on sortOrder"
      ],
      "conditional": true
    },
    "manufacturer.write.name": {
      "covers": [
        "manufacturer.apply on name"
      ],
      "conditional": true
    },
    "manufacturer.write.seoKeywords": {
      "covers": [
        "manufacturer.apply on seoKeywords"
      ],
      "conditional": true
    },
    "manufacturer.write.sortOrder": {
      "covers": [
        "manufacturer.apply on sortOrder"
      ],
      "conditional": true
    },
    "coupon.write.code": {
      "covers": [
        "coupon.apply on code"
      ],
      "conditional": true
    },
    "coupon.write.name": {
      "covers": [
        "coupon.apply on name"
      ],
      "conditional": true
    },
    "coupon.write.discount": {
      "covers": [
        "coupon.apply on discount"
      ],
      "conditional": true
    },
    "coupon.write.usage": {
      "covers": [
        "coupon.apply on usage"
      ],
      "conditional": true
    },
    "coupon.write.startsAt": {
      "covers": [
        "coupon.apply on startsAt"
      ],
      "conditional": true
    },
    "coupon.write.endsAt": {
      "covers": [
        "coupon.apply on endsAt"
      ],
      "conditional": true
    },
    "coupon.write.productIds": {
      "covers": [
        "coupon.apply on productIds"
      ],
      "conditional": true
    },
    "coupon.write.categoryIds": {
      "covers": [
        "coupon.apply on categoryIds"
      ],
      "conditional": true
    },
    "coupon.write.loggedInOnly": {
      "covers": [
        "coupon.apply on loggedInOnly"
      ],
      "conditional": true
    },
    "customer.write.status": {
      "covers": [
        "customer.apply on status"
      ],
      "conditional": true
    },
    "customer.write.customerGroupId": {
      "covers": [
        "customer.apply on customerGroupId"
      ],
      "conditional": true
    },
    "customer.write.firstName": {
      "covers": [
        "customer.apply on firstName"
      ],
      "conditional": true
    },
    "customer.write.lastName": {
      "covers": [
        "customer.apply on lastName"
      ],
      "conditional": true
    },
    "customer.write.telephone": {
      "covers": [
        "customer.apply on telephone"
      ],
      "conditional": true
    },
    "customer.write.email": {
      "covers": [
        "customer.apply on email"
      ],
      "conditional": true
    },
    "order.write.history": {
      "covers": [
        "order.apply on history"
      ],
      "conditional": true
    },
    "review.read": {
      "covers": [
        "review.get"
      ]
    },
    "review.list": {
      "covers": [
        "review.list"
      ]
    },
    "review.query": {
      "covers": [
        "review.query"
      ]
    },
    "review.write.status": {
      "covers": [
        "review.apply on status"
      ],
      "conditional": true
    },
    "returnRequest.read": {
      "covers": [
        "returnRequest.get",
        "returnRequest.get with include history"
      ]
    },
    "returnRequest.list": {
      "covers": [
        "returnRequest.list"
      ]
    },
    "returnRequest.query": {
      "covers": [
        "returnRequest.query"
      ]
    },
    "returnStatus.read": {
      "covers": [
        "returnStatus.search",
        "returnStatus.get"
      ]
    },
    "returnStatus.list": {
      "covers": [
        "returnStatus.list"
      ]
    },
    "returnStatus.query": {
      "covers": [
        "returnStatus.query"
      ]
    },
    "returnReason.read": {
      "covers": [
        "returnReason.search",
        "returnReason.get"
      ]
    },
    "returnReason.list": {
      "covers": [
        "returnReason.list"
      ]
    },
    "returnReason.query": {
      "covers": [
        "returnReason.query"
      ]
    },
    "product.write.image": {
      "covers": [
        "product.apply on image"
      ],
      "conditional": true,
      "note": "Promoted 20 November 2026. The main image: one column in OpenCart; the OpenCart modules declare it emulated (compared, then written, then read back)."
    },
    "product.write.images": {
      "covers": [
        "product.apply on images"
      ],
      "conditional": true,
      "note": "Promoted 20 November 2026. The whole list of additional images, written like specials: rows replaced, in the order given."
    },
    "category.write.image": {
      "covers": [
        "category.apply on image"
      ],
      "conditional": true,
      "note": "Promoted 20 November 2026. The category's image."
    }
  },
  "x-rules": {
    "about": "Binding for every module and every driver, whatever the platform. Taken from the Module JSON 1.0 proposal (docs/protocol/json.md, docs/protocol/module-guide.md) on 9 October 2026; they change no operation shape. Prose: docs/protocol/operations.md#rules.",
    "envelope": {
      "maxBodyBytes": 262144,
      "checkedBeforeDispatch": true,
      "oversizedBody": "limit_exceeded",
      "duplicateJsonKeys": "invalid_params",
      "unknownEnvelopeFields": "invalid_params",
      "unknownParams": "invalid_params",
      "note": "The module reads at most maxBodyBytes of the request and answers limit_exceeded, signed, without parsing the rest. A JSON object with a duplicated key, a field in the envelope other than protocol, id, op and params, or a field in params that the operation's schema does not name, is refused with invalid_params before dispatch; nothing is dropped silently. Every schema in this file carries additionalProperties: false for that reason."
    },
    "limits": {
      "note": "store.describe's manifest.limits (protocol.yaml $defs.Limits) carries five limits: maxIdsPerRead, maxItemsPerWrite, timeBudgetMs, and since 11 October 2026 maxBodyBytes and maxPageSize. timeBudgetMs is what the proposal called maxExecutionMs: when a read cannot finish within it, the module answers limit_exceeded, never a truncated result presented as complete.",
      "example": {
        "maxIdsPerRead": 50,
        "maxItemsPerWrite": 50,
        "timeBudgetMs": 10000,
        "maxBodyBytes": 262144,
        "maxPageSize": 500
      }
    },
    "conditional": {
      "atomic": "Declared for <resource>.write.<field> only when every table the conditional write touches uses a transactional engine (InnoDB on MySQL and MariaDB) and the write is one statement or one transaction, so that compare and set cannot interleave with another writer.",
      "emulated": "Declared otherwise: the module reads, compares and writes without a lock, reports conflict when the read differs from expected, and the API verifies by reading back. A module must never convert or alter the merchant's tables to reach atomic.",
      "checkedAt": [
        "install",
        "store.describe"
      ],
      "note": "OpenCart 3 installations commonly keep MyISAM tables; a module that finds one under oc_product or oc_product_to_store declares emulated for every product write. The capability example 'a PHP module on nontransactional tables' shows the declaration."
    },
    "matching": {
      "identifiers": {
        "normalize": [
          "trim surrounding whitespace",
          "Unicode case fold"
        ],
        "literal": [
          "%",
          "_",
          "*"
        ],
        "note": "code, sku and mpn compare equal after both sides are trimmed and case-folded; gtin after the normalization protocol.yaml defines; id exactly. The comparison is implemented explicitly in the adapter (for example LOWER(TRIM(column)) = LOWER(TRIM(?))) and never inherited from the column's collation, so two platforms answer the same. Wildcard characters are literal: searching for MUG_1 does not match MUG01. search returns every match and never picks one. telephone compares digits only, both sides stripped of everything else (+49 (30) 1234-567 equals 49301234567); a leading country code or trunk 0 is not added or removed."
      },
      "text": "Contains-in-name and every other free-text query is not a driver operation: the API scans product.list live and filters in memory (decision 007). A driver offers identifiers only."
    },
    "query": {
      "status": "Proposed 16–17 October 2026 (category.query, product.query, manufacturer.query, order.query, orderStatus.query, customer.query, customerGroup.query; coupon.query on 23 October); not accepted. The OpenCart 3 module answers them since 20 October 2026 (coupon.query since 23 October); since STOR-85 the API sends <resource>.query from its MCP tools (catalog_query_products still scans product.list). Both checked only on the local test shops.",
      "filters": "filters is a list of {type, value}, like search identifiers. Filters of different types combine with AND; several of the same type combine with OR (storefrontId 0 and storefrontId 1: shown on either; two createdAt ranges: created in either period). name matches word by word: the value is split at whitespace and the name must contain every word, in any order, case-insensitively, with % _ and * literal (an adapter on SQL LIKE escapes them, e.g. LIKE '%mug%' ESCAPE '|' after replacing | % _ with |& |% |_). parentId null means top-level only; a type left out never narrows. createdAt and updatedAt take a range {from, to}, both ends inclusive (from <= value <= to), either end optional but not both; times are UTC, so a module converts the shop's stored times before comparing. A filter type outside the list, a value of the wrong kind, a range with neither end, or from after to answers invalid_params. Number ranges (product quantity and price) take {min, max} the same way, both ends inclusive; a product whose value is null never matches a range. code, sku and mpn compare whole values like search identifiers (trimmed, case-folded), name word by word. A value that is null (a category without createdAt or updatedAt on a platform that keeps none) never matches a range; a module whose platform keeps no such dates does not declare those filters or sorts.",
      "order": "sort names one field, order asc or desc; ties are broken by id in the same direction, so two requests with the same parameters on an unchanged store return the same pages. Without sort the order is by id ascending.",
      "paging": "page from 1 and limit up to limits.maxPageSize; the answer carries itemCount, page and pageCount = ceil(itemCount / limit). A page past pageCount is an empty items list, not an error. A read (the page and its count) that cannot finish within timeBudgetMs answers limit_exceeded, never a short page presented as complete.",
      "not_a_walk": "query pages by position. A change between two requests can skip or repeat an item, so EV-LIST-01 and EV-LIST-03 do not apply; a complete pass uses <resource>.list.",
      "declaration": "A module that declares <resource>.query lists in store.describe the sort values (sorts) and filter types (filters) it supports, each a subset of what the operation names. The API sends only declared ones. A value the contract names but the module did not declare answers capability_unavailable with details { capability, sort } or { capability, filter }; a value the contract does not name answers invalid_params. Optional Product fields (rating, reviewCount, minQuantity, availableAt) are present only from modules whose platform keeps them; rating sorts like any value that can be null.",
      "abandoned_orders": "Only order.query hides abandoned orders (checkouts the buyer never completed; OpenCart: order_status_id 0), because it is a screen for people: without an orderStatusId filter they are left out, an orderStatusId filter with the value \"0\" (the string, not null) returns them, and with other statuses beside it, either. order.get, order.search and order.list return them like any other order, marked status.kind abandoned: a request by identifier and a complete walk never hide anything, and the API decides what to show."
    },
    "addresses": {
      "status": "Proposed 17 October 2026, pending the founder's and Yevhen Kariakin's agreement; not implemented by any module or the API.",
      "customer": "A customer carries telephone and the ids of its addresses (addressIds, defaultAddressId), never the addresses: they are personal data beyond what identifies the customer.",
      "owner": "Addresses are read only with the store team's permission, in Store Deputy: the module always declares customerAddress.read and the order address capabilities (see orders) and has no setting of its own for them (25 October 2026), and the API offers customerAddress.get only while an owner or admin has turned on the agent's addresses.read permission on the store page, and only to the team's owners and admins. A module that does not declare the capability (an older one) answers capability_unavailable.",
      "reach": "There is no search or list of any address: an address is reached through its customer's addressIds. Passwords, payment data, tokens and IP addresses never cross this interface.",
      "downstream": "Whatever the module returns passes through the Store Deputy API and Agentfy to the language model that answers the agent; that is why addresses sit behind the agent's addresses.read permission, off by default.",
      "orders": "An order's payment and shipping addresses are personal data too: an order carries neither, and they come only from orderPaymentAddress.get and orderShippingAddress.get, by the order's id. The module declares customerAddress.read, orderPaymentAddress.read and orderShippingAddress.read together, always; the agent's addresses.read permission in Store Deputy opens all three, and the API still offers each only to the team's owners and admins.",
      "checkout": "The shopper's checkout (operations.json storefront, storefront.checkout.*, 27 October 2026) carries the shopper's contact and addresses, and for a signed-in customer the platform puts an address book entry there by itself (OpenCart: on sign-in). The module always declares the checkout capabilities; the shopper agent's checkout.write permission requires its addresses.read, which requires account.read (storefront.permissions, 28 October 2026), so turning the checkout on turns them on."
    },
    "evidence": [
      {
        "id": "EV-ENV-01",
        "case": "request body larger than maxBodyBytes",
        "expect": "limit_exceeded, signed, before parsing the rest"
      },
      {
        "id": "EV-ENV-02",
        "case": "JSON object with a duplicated key in params",
        "expect": "invalid_params"
      },
      {
        "id": "EV-ENV-03",
        "case": "a field in params the operation does not name",
        "expect": "invalid_params; nothing applied"
      },
      {
        "id": "EV-ENV-04",
        "case": "a field in the envelope other than protocol, id, op, params",
        "expect": "invalid_params"
      },
      {
        "id": "EV-SEARCH-01",
        "case": "identifier containing %, _ or *",
        "expect": "literal match only"
      },
      {
        "id": "EV-SEARCH-02",
        "case": "identifier differing in case and surrounding whitespace from the stored value",
        "expect": "a match"
      },
      {
        "id": "EV-SEARCH-03",
        "case": "one SKU on two products",
        "expect": "both returned, none picked"
      },
      {
        "id": "EV-LIST-01",
        "case": "cursor altered by one character",
        "expect": "invalid_params, not an empty page"
      },
      {
        "id": "EV-LIST-02",
        "case": "limit above maxPageSize",
        "expect": "limit_exceeded with the limit in details"
      },
      {
        "id": "EV-LIST-03",
        "case": "a product changed between two pages",
        "expect": "no product is skipped; a duplicate is allowed"
      },
      {
        "id": "EV-STORE-01",
        "case": "one product offered on two storefronts",
        "expect": "get returns the complete storefrontIds; apply on price changes the shared base price once and fires one event"
      },
      {
        "id": "EV-APPLY-01",
        "case": "expected differs from the stored value",
        "expect": "conflict with current; nothing written"
      },
      {
        "id": "EV-APPLY-02",
        "case": "nontransactional table under the written resource",
        "expect": "the manifest declares conditional: emulated for that write"
      },
      {
        "id": "EV-PAUSE-01",
        "case": "owner's Pause on",
        "expect": "paused for every operation except store.describe"
      },
      {
        "id": "EV-QUERY-01",
        "case": "category.query with filters status, parentId and a name fragment in another case and with surrounding spaces; and a name filter of two words in reverse order",
        "expect": "only categories matching all three; the fragment matches regardless of case and spaces; itemCount counts exactly those; the two words match names containing both, in any order"
      },
      {
        "id": "EV-QUERY-02",
        "case": "category.query with sort name, order desc, limit 2, every page in turn on an unchanged store",
        "expect": "each page ordered by name from largest to smallest, ties by id descending; the pages together hold itemCount categories once each; pageCount = ceil(itemCount / 2); a page past pageCount is empty"
      },
      {
        "id": "EV-QUERY-03",
        "case": "category.query with sort or order outside its list, page 0, a filter type outside its list, a status value outside enabled/disabled, a createdAt range with from after to, or an empty range",
        "expect": "invalid_params"
      },
      {
        "id": "EV-QUERY-04",
        "case": "category.query with filter parentId null; with name containing % or _; with two storefrontId filters; with two createdAt ranges; with a range whose from equals a category's createdAt",
        "expect": "top-level categories only; % and _ match only themselves; categories on either storefront; categories created in either range; both ends of a range are inclusive"
      },
      {
        "id": "EV-QUERY-05",
        "case": "product.query with sku in another case and with surrounding spaces, its quantity as {min, max} equal to it, its price as {min, max} equal to it, and its category",
        "expect": "exactly the products matching all four; range ends are inclusive; products with a null quantity or price are left out of those ranges"
      },
      {
        "id": "EV-QUERY-06",
        "case": "product.query with sort price, order desc, limit 3, every page in turn on an unchanged store",
        "expect": "each page ordered by price from highest to lowest, ties by id descending; the pages together hold itemCount products once each; a page past pageCount is empty"
      },
      {
        "id": "EV-QUERY-07",
        "case": "product.query with sort gtin, a quantity range {}, a price range with min above max, a negative price, a fractional quantity or a filter type outside its list",
        "expect": "invalid_params"
      },
      {
        "id": "EV-QUERY-08",
        "case": "store.describe of a module with a query capability, and a query with a sort the contract names that the module did not declare",
        "expect": "the declaration carries sorts and filters, each a subset of the operation's own lists; the undeclared sort answers capability_unavailable naming the sort"
      },
      {
        "id": "EV-QUERY-09",
        "case": "manufacturer.query with a name filter of a word in another case, and sort name desc in pages of 2",
        "expect": "exactly the manufacturers whose name holds the word; each page ordered by name from largest to smallest, ties by id descending; the pages together hold itemCount manufacturers once each"
      },
      {
        "id": "EV-QUERY-10",
        "case": "customerGroup.query with a name filter of a word in another case, and sort name desc in pages of 2",
        "expect": "exactly the customer groups whose name holds the word; each page ordered by name from largest to smallest, ties by id descending; the pages together hold itemCount groups once each"
      },
      {
        "id": "EV-QUERY-11",
        "case": "customer.query with a name of the last and first name in reverse order and another case, an email fragment in another case, a telephone fragment written with spaces, and a customer group; then sort customerGroup desc in pages of 2",
        "expect": "exactly the customers matching all four, the name matched word by word across first and last name; customers ordered by their group's name from largest to smallest (no group last), ties by id descending, every customer once"
      },
      {
        "id": "EV-QUERY-12",
        "case": "orderStatus.query with a name filter of a word in another case, and sort name desc in pages of 2",
        "expect": "exactly the order statuses whose name holds the word; each page ordered by name from largest to smallest, ties by id descending; the pages together hold itemCount statuses once each"
      },
      {
        "id": "EV-QUERY-13",
        "case": "order.query with a customerName of the last and first name in reverse order, a customerEmail fragment in another case, a customerTelephone fragment with spaces, an orderStatusId and a total range equal to one order's total; then sort orderStatus desc in pages of 2",
        "expect": "exactly the orders matching all five, the total range inclusive; orders ordered by their status's name from largest to smallest, ties by id descending, every order once"
      },
      {
        "id": "EV-QUERY-14",
        "case": "order.query without an orderStatusId filter, with orderStatusId \"0\", and with \"0\" beside another status",
        "expect": "without the filter no order has status.id \"0\"; with \"0\" only abandoned orders, status.kind abandoned; with \"0\" and another status both kinds; null as a status value answers invalid_params"
      }
    ],
    "texts": {
      "status": "Proposed 3 November 2026 by Yevhen Kariakin (STOR-98, unblocks STOR-99); accepted 11 November 2026 by Yevhen Kariakin after review against the module code; implemented by the OpenCart 3 and 4 modules and, for the product texts, by the API's MCP tools (STOR-99), checked only on the local test shops.",
      "languages": "Languages are BCP 47 tags (module#/$defs/LanguageCode), listed in the manifest's store.languages (every enabled language, exactly one default). The module maps its own ids and codes (OpenCart language_id, en-gb) to the tags; ids never cross the wire. store.languages is optional; a module that declares product.write.texts must carry it, and without it include [\"texts\"] is capability_unavailable.",
      "read": "product.get with include [\"texts\"] adds Product.texts: an object keyed by language code, one key per manifest language, each a ProductText or null (the product has no row for that language). Not on list or query. Covered by product.read.",
      "write": "One capability, product.write.texts, covers every text field (name, description, metaTitle, metaDescription, metaKeywords), declared atomic or emulated like the other writes. Tags are not included (taxonomy terms on other platforms; decided separately).",
      "encoding": "On the wire a text is what the storefront would render from the source: HTML entities decoded in every field. The module encodes on write as the platform stores it (OpenCart: htmlspecialchars) and decodes on read.",
      "length": "A value longer than the platform stores (OpenCart 3: 255 characters for name, metaTitle, metaDescription and metaKeywords, text of 65,535 bytes for description) is rejected with reason invalid_item, never truncated.",
      "htmlSafety": "The API's duty, not the module's: before the owner's approval card the API refuses a proposal whose description contains a script, iframe, object, embed or style element, an on* attribute, or a javascript: or data: URL. The module stores what it is given and need not sanitize.",
      "size": "A request is at most maxBodyBytes (262144). Descriptions are large, so the API splits a batch of text changes by bytes, not only by maxItemsPerWrite; a single item that cannot fit is the API's to refuse.",
      "names": "Texts of customer groups and names of order statuses per language (accepted 11 November 2026 (STOR-98, with the product texts; implemented by the OpenCart 3 and 4 modules)): customerGroup.get and orderStatus.get take include [\"texts\"] and add texts, keyed by the manifest's language codes: for a customer group { name, description } (#/$defs/CustomerGroupTexts), for an order status { name } (#/$defs/NameTexts), or null. Read only. (Categories carry all their texts per language under decision 008, Category.texts.) Every entity's own name, like Product.name, is in the manifest's default language, the language of the shop's admin panel, which is also the language a name filter or search matches (as the admin panel's own lists do): an agent searches by name in that language."
    },
    "create": {
      "idempotency": {
        "key": "Every create item carries `idempotencyKey` (defs.IdempotencyKey). The module keeps, per resource, the key, a SHA-256 of the canonical `set`, and the id of the record it made, in its own table.",
        "sameKeySameContent": "Answers created with replayed true and the record read back now; never makes a second record. This is also how the API recovers from an unclear answer: it sends the same item again.",
        "sameKeyOtherContent": "rejected / idempotency_key_reused; nothing is created and nothing changes.",
        "retention": "A key is kept for 30 days from its first use (proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted; Yevhen Kariakin to confirm against the API's retry horizon). The API never resends a key older than half the retention. A key past retention is a new key: that is why the API's limit exists.",
        "raceAndCrash": "The module writes the key row first, then the record, then the id into the key row. On a store with transactional tables this is one transaction. Without one (MyISAM), a crash between the steps leaves a key without an id: a retry answers failed / database_error and creates nothing; the API reconciles by searching, and the owner decides."
      },
      "draft": "A created product, category and coupon is disabled whatever `set` says (there is no status in a create set). Publishing is product.write.status, category.write.status, coupon.write.status: a second step with its own approval, because creating changes nothing a buyer sees and enabling does.",
      "readBack": "After created, the API reads the record with <resource>.get and compares it with `set`; a difference is a receipt that says so. `after` is the module's own read-back, not an echo.",
      "references": "Ids in categoryIds, manufacturerId, taxClassId, customerGroupId, productIds and units are checked by the module before anything is written: rejected / unknown_reference, nothing created.",
      "capabilities": "<resource>.create gates the verb. Each field of `set` also needs the module's <resource>.write.<field> capability (so a module may offer create with a subset of fields), else rejected / field_not_writable.",
      "batch": "Items are independent and the batch is not atomic, up to maxItemsPerWrite; one result per item, in order. A create is never allowed while paused.",
      "storefronts": "storefrontIds defaults to every storefront of the shop, so that enabling the draft later is one step.",
      "duplicateNames": "proposed 14 November 2026 by Artem Belikov (STOR-124); not accepted: a category whose name in the default language equals one under the same parent, and a manufacturer whose name equals another's, both compared trimmed and case-insensitively, are rejected / duplicate with conflictingId, nothing created. The platform allows them; an agent that creates the same brand twice under two keys splits the shop's filter and brand page. A product is not compared: products of the same name are ordinary.",
      "event": "As apply: the module triggers the platform's own 'added' notification where it can reach it. OpenCart 3's storefront-side endpoint cannot reach the admin listeners: the platform's own model methods that fire events are used where they exist; otherwise the manifest warns, as for apply. There is no event field in a create result; a module that cannot reach the platform's listeners for added records warns with product_add_listener (category_add_listener, manufacturer_add_listener, coupon_add_listener for those resources, 14 November 2026, STOR-124) in store.describe (proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted).",
      "texts": "proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted: a create copies the texts of the default language to every language that set.texts leaves out, as the platform itself does when a language is added (OpenCart: addLanguage copies product_description), and metaTitle defaults to name.",
      "defaults": "proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted: what set leaves out takes the platform admin form's defaults for a new record, except status (always disabled) and stock (quantity 0 when set has no stock). OpenCart: stock_status_id is the first status of the admin form's list."
    },
    "history": "order.write.history is an append guarded by { lastEntryId }. If it is still the newest entry the module adds the new one and answers applied with before { lastEntryId: N } and after { lastEntryId: M, comment, notify }; any other newest entry is a conflict with current { lastEntryId }. A retry after an unclear answer is therefore safe without a key: the API reads the order's history and sees whether its entry is there. Cost: any entry added meanwhile by anyone is a conflict, and the API reads again and asks again.",
    "optionValues": {
      "status": "accepted 11 November 2026 by Yevhen Kariakin (STOR-138); implemented by the OpenCart 3 and 4 modules 1.6.0 (STOR-139, 21 November 2026) except productStock, which was questioned on 12 November 2026 and is open: the modules keep the product's own stock",
      "what": "Where a platform keeps stock on the value of a product's option (OpenCart 3: product_option_value.quantity and subtract; OpenCart 4 on a product without variants), the module declares optionValue.read and the option values are the unit of stock, a separate resource beside variant, not a field of the product.",
      "model": "A flat Product.optionValues list with include options: id (opaque, unique in the shop), parentId (the product), label (built by the module, in the shop's default language, e.g. \"Size: L\"), stock { quantity, tracked } (tracked is OpenCart's subtract) and priceDelta (the signed surcharge as a Price, included only where the module reads it). The option-and-value taxonomy of the platform is not part of the neutral model.",
      "productStock": "When a product's stock lives on option values (variantPricing is options and the product has option values with stock.tracked true), Product.stock.quantity is the SUM of the quantities of its tracked option values. The module computes it, so a read is one fact however the platform stores it. product.apply on stock of such a product is rejected with reason field_not_writable; the stock is changed per option value with optionValue.apply.",
      "write": "optionValue.apply writes stock.quantity (optionValue.write.stock) and tracked (optionValue.write.tracked), compare-and-set as product.apply, per item; the product's updatedAt moves with it (Product.updatedAt). Writing priceDelta is a later proposal (optionValue.write.price is not declared).",
      "agent": "variantPricing options (or option values with stock.tracked true) is the neutral switch that tells the API which stock tool applies: option_stock_change_propose, not the product or variant tools."
    },
    "variants": {
      "status": "proposed 22 November 2026 by Artem Belikov (STOR-118), answering the questions of 11 November 2026; implemented by the OpenCart 4 module 1.7.0 on the admin and the storefront endpoint, proven on the local test shops, the conformance suite and the module's storefront test only; Yevhen Kariakin has not confirmed it",
      "listing": "A variant is read only as a variant: variant.get, variant.search, a product's variants with include variants, and a variant match of product.search. product.list and product.query never return a variant as a product and do not count it in itemCount; product.get answers a variant's id in missing and product.apply answers it not_found. Where the platform keeps a variant as a product of its own (OpenCart 4: a product with a master_id; Magento: a child of a configurable product), the module leaves such rows out.",
      "parentPrice": "product.apply on price of a product with variantPricing variants is rejected with variant_required only when the product has no price of its own (Product.price is null: WooCommerce variable products, Shopify). Where the parent has its own price and is bought itself (OpenCart 4: the master product), product.apply writes it as for any product and does not touch the variants' prices.",
      "inheritance": "Where saving the parent in the platform's admin copies the parent's fields into its variants, except the fields a variant keeps as its own (OpenCart 4: the variant's per-field switch, kept in its override column), variant.apply marks each field it writes as the variant's own, as that switch does, so the next save of the parent does not overwrite the change. From then on a change to that field of the parent no longer reaches the variant. A field the platform never copies (OpenCart 4: the quantity) is not marked.",
      "updatedAt": "A write to a variant moves the variant's updatedAt and its product's: Product.updatedAt is never earlier than the updatedAt of any of its variants, so product.list with updatedSince finds a product whose variant changed.",
      "storefront": "The storefront endpoint follows the same rule for the shopper: storefront.product.get, .list, .query and .search never return a variant as a product; storefront.variant.get, storefront.variant.search and include variants read it as this shopper sees it, only while the storefront shows the variant and its parent. A cart line or an order line of a variant names the parent in productId and the variant in variantId. storefront.cart.add with variantId puts the variant itself into the cart, at its own price, with the values of the parent's options that make it the variant fixed (another value given for such an option is option_invalid); OpenCart 4's own cart page does so from 4.1.0.4 and put the master into the cart before."
    },
    "seoKeywords": {
      "status": "proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted",
      "pattern": "The keyword pattern of $defs.SeoKeywords (^[a-z0-9]+(-[a-z0-9]+)*$) applies to set only; expected takes the keyword as read, whatever its characters (a shop may hold Cyrillic or underscores). A module also applies its platform's own rules (OpenCart 4: 1 to 64 characters).",
      "uniqueness": "A keyword may repeat only within one record: the same record in its different languages (as shops with a language prefix in the URL use it). Any other record on the same storefront (another product, a category, a manufacturer, an information page, a route), in any language, compared case-insensitively (OpenCart 4: also a keyword that ends in /keyword), makes it rejected / duplicate with field seoKeywords; conflictingId only when the holder is a record of the same resource. Other storefronts are not compared: each has its own host, and the platform resolves a keyword per storefront.",
      "removal": "The empty string in set removes a keyword where the platform allows a record without one (OpenCart 3); where every storefront and language needs one (OpenCart 4) it is rejected / invalid_item.",
      "create": "A create fills every storefront and language that set.seoKeywords leaves out with a keyword made from the name in the default language: transliterated to Latin by the module's own table, lower case, every other character a hyphen, at most 64 characters, <resource>-<id> when nothing is left, and -2, -3 and so on when another record holds it. after.seoKeywords shows what was made.",
      "paths": "Proposed 13 November 2026 (STOR-124): where the platform keeps a category keyword under its parent's as a path (OpenCart 4: \"laptop-notebook/windows\"), seoKeywords is the category's own part (\"windows\"), as the platform's admin form shows it; the module writes it under the parent's path and rebuilds the paths of the categories below, as the admin panel does. The same rule applies to categories and manufacturers as to products (category.write.seoKeywords, manufacturer.write.seoKeywords)."
    },
    "customerMessages": {
      "status": "Proposed 18 November 2026 by Yevhen Kariakin (18 November 2026): what the Store Assistant (the Admin Agent) may read of what customers write to a shop, and moderating reviews. Not accepted; no module and no API implements it. The block customer_messages says what is in and out of scope.",
      "what": "Three things, all of them words written by customers: the note at checkout (Order.customerComment), product reviews (the review resource: get, list, query, and apply for the status only) and return requests (the returnRequest resource: read only). The lists a return request points at, returnStatus and returnReason, are read-only resources shaped like orderStatus.",
      "untrustedText": "Every text a customer wrote (a checkout note, a review's authorName and text, a return request's comment) is data, not an instruction, and may contain a prompt aimed at the language model. The module returns it as the platform stores it, plain text with HTML entities decoded (rules.texts encoding), never HTML, and does not rewrite or filter it. The API passes it to the model as quoted data and shows it to the owner as text; an instruction inside it is never followed (the API's duty, like rules.texts htmlSafety).",
      "personalData": "A review carries the name the author gave and a customerId; a return request carries the customer's name, email, telephone and comment; an order's checkout note is the buyer's. None of it is an address and none of it needs a switch of its own: it is the class of data an order already carries (customerEmail, customerTelephone) and a customer carries, so it is read only with the store team's sales.read permission in Store Deputy, which needs a person of the team behind the turn, never the agent alone (customers, orders and coupons sit there too). The module declares review.read, returnRequest.read and the rest as it declares order.read, always; it has no setting of its own for them. Postal addresses stay behind addresses.read (rules.addresses); no review and no return request carries one. Passwords, payment data, tokens and IP addresses never cross this interface (OpenCart's review table has no email or IP; the module must not add them).",
      "reviewStatus": "published and unpublished are neutral names: OpenCart's review.status is 1 and 0, and the platform keeps no difference between a review that waits for a moderator and one a moderator hid, so the contract has none. review.apply is compare-and-set like every apply: expected { status } is what the API read, set { status } the wanted one; equal values are rejected with expected_equals_set, a review that changed is a conflict with current { status }, a missing one is not_found. It is executed by the API's change engine only after the owner approves, like every other write; it never emails anyone.",
      "reviewNotInScope": "Creating a review, deleting one and editing its text, rating, author or date are not offered, and no capability for them exists. Replying to a customer is not offered either: this interface has no message to a customer other than order.write.history with notify.",
      "returns": "returnRequest has no write: not a status change, not an action, not a history note. Answering a return, refunding it and changing its stock are the owner's, in the shop's admin, until a later proposal.",
      "contactForm": "Not offered, deliberately: OpenCart's Contact Us form does not store what the visitor wrote, it only emails it to the shop's address (catalog/controller/information/contact), so there is nothing for a module to read, in OpenCart 3 or 4. A module that wants to offer it would need a store of its own, which is a different proposal.",
      "ids": "Review ids, return ids and history ids are strings, unique within their resource in the shop.",
      "productRating": "Moderating a review changes the rating and review count the platform computes for the product (Product.rating and reviewCount, where the module reads them). Product.updatedAt does not move for it (open question 4 of customer_messages)."
    },
    "images": {
      "status": "promoted",
      "about": "Promoted 20 November 2026 from the proposal of decision 009 (STOR-127, STOR-128) by Yevhen Kariakin for implementation; founder acceptance still pending. What every module follows for image, images and a category's image.",
      "order_of_work": "The module (1) compares expected with the current paths and answers conflict without downloading; (2) refuses what it can refuse without the file (a path twice, a path the product does not hold, an unknown field); (3) downloads and verifies every upload; (4) saves the files; (5) writes the assignment; (6) reads back. A conflict at the write leaves a saved file: content-addressed, harmless, never deleted.",
      "download": {
        "origin": "Only {api_url} of the module's build values (protocol.yaml connect.build_values), read only from the package, never from settings: a changed setting cannot send the module elsewhere. The url must be exactly {api_url}/module/images/<token>; any other origin, path, query or fragment refuses the WHOLE request with invalid_params and details.field \"url\" (the API never sends one). HTTPS with the certificate verified; plain HTTP only in a development build. No redirects are followed.",
        "token": "At least 32 random bytes, base64url; only its hash is stored by the API. Bound to one connection, one image (its SHA-256) and one change item.",
        "lifetime": "PROPOSED, not measured: 10 minutes from issue, at most 3 downloads. Links are issued when the change is sent to the module, never at proposal time (a proposal lives 24 hours). A resend of the item gets new links; because stored files are content-addressed a second download makes no second file.",
        "checks": "Stop reading at size bytes (a longer body is image_download_failed); the byte count equals size; the SHA-256 equals sha256 (constant-time) else image_checksum_mismatch; the type by the first bytes AND a successful read of the header (getimagesizefromstring or equal), equal to mediaType and to a type the module offers, else image_type_invalid; the header's dimensions at most 10000 pixels a side and 25 megapixels (proposed) else image_too_large; time out on connect and on the whole read. A module may also refuse content that carries a PHP opening tag (the OpenCart modules do: image_type_invalid).",
        "answer_headers": "The API answers 200 with Content-Type from mediaType, Content-Length, Cache-Control: no-store, X-Content-Type-Options: nosniff. The module does not take them as proof."
      },
      "storage": "image/catalog/storedeputy/<first 32 hex of the SHA-256>.<ext>, ext from the detected type (jpg, png, gif, webp): the path is catalog/storedeputy/<name>. The name is made by the module from the verified content; nothing from the request (no file name, no path, no extension) reaches the file system. A file already there is reused when its bytes equal; with other content it is failed / database_error. The file is written under a temporary name in the same folder and renamed, mode 0644 (never executable). The folder gets an empty index.html and, where the server reads them, an .htaccess that turns script handlers off (best effort).",
      "allowed_types": "jpeg, png, gif, webp; never svg, never anything with an executable extension. webp is offered only by a module whose platform makes thumbnails of it: the default list is jpeg, png, gif. The module declares what it offers in manifest.limits.imageMediaTypes and limits.maxImageBytes (optional; defaults the three types and 3145728).",
      "existing_paths": "A { path } source must resolve (symlinks resolved) to a regular file inside the shop's image folder, with an extension of an allowed type and, by its content, an allowed image type; otherwise rejected / unknown_reference with field. A path the record already holds is kept without a look at the disk, so reordering is never blocked by an old broken file.",
      "never_deletes": "No operation removes a file. Removing an image, replacing it and a conflict leave files where they are; other products, themes and banners may use them.",
      "idempotency": "Decision 008 gives every apply an expected, so apply has no key. A retry after a success finds the paths changed: the API reads the record and, because it can compute the path (it knows the SHA-256 and type), recognises its own result as applied. A retry before the write finds expected and sends the same item; the content-addressed file is reused.",
      "paused": "Not allowed while Store Deputy is paused, like every write.",
      "v1_limits": "The API sends at most one upload per item and one item with an upload per request; a module may take more, but downloads inside timeBudgetMs (the OpenCart modules give all downloads of one request 16 seconds and each at most 8)."
    },
    "category_subtree": "Accepted 23 November 2026 (decision 012, Yevhen Kariakin; the founder's acceptance is not recorded). product.query and storefront.product.query take the filter categorySubtreeId: the products of the category and of every category under it, at any depth, each product once. On the admin side every category under it counts whatever its status; on the storefront only the categories the storefront shows, and a hidden category hides what is under it. categoryId keeps its meaning (the category itself). The filter is optional: a module declares it in the query capability's filters only when it answers it in one query in the shop's database (OpenCart: category_path; WooCommerce: a product_cat tax_query with include_children; PrestaShop: the nested set nleft/nright; Magento: the category's path, never the category's own is_anchor setting). Store Deputy sends it only to a module that declared it; for any other it finds the subcategories itself or says that they were not included."
  },
  "x-operations": {
    "product.search": {
      "kind": "read",
      "resource": "product",
      "verb": "search",
      "capability": "product.read",
      "allowedWhilePaused": false,
      "summary": "Products (and, with variant.read, variants) by identifier. Returns every match and never picks one; resolving a duplicate is the owner's decision.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "product.get": {
      "kind": "read",
      "resource": "product",
      "verb": "get",
      "capability": "product.read",
      "allowedWhilePaused": false,
      "summary": "Products by id, in the neutral shape of protocol.yaml. Ids with no product are listed in missing. Also how the API reads back after an apply it is unsure about.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "product.list": {
      "kind": "read",
      "resource": "product",
      "verb": "list",
      "capability": "product.list",
      "allowedWhilePaused": false,
      "summary": "Pages through every product in the adapter's stable order, so the API can match a supplier file or answer catalog questions. The cursor is opaque to the API.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "product.query": {
      "kind": "read",
      "resource": "product",
      "verb": "query",
      "capability": "product.query",
      "allowedWhilePaused": false,
      "summary": "Products that match every given filter (AND), sorted, one numbered page at a time, with the total count, in the same shape as product.get and product.list. Proposed 16 October 2026, not accepted. A page is a position, not a bookmark: a product added, removed or changed between two requests (a sale changes its quantity) can move to another page, so a full walk uses product.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "product.apply": {
      "kind": "write",
      "resource": "product",
      "verb": "apply",
      "capability": "product.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Conditional compare-and-set per item over the product's writable fields (price, status, stock, storefrontIds and, since the acceptance of 11 November 2026, texts per language). A field changes only if it still equals expected; otherwise conflict with current and nothing written. The capability product.write.<field> is needed for every field in set. Items are independent, the batch is not atomic. No idempotency key, approval reference or context: those are the API's. A request is at most maxBodyBytes: texts are large, so the API splits a batch by bytes as well as by maxItemsPerWrite.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "variant.search": {
      "kind": "read",
      "resource": "variant",
      "verb": "search",
      "capability": "variant.read",
      "allowedWhilePaused": false,
      "summary": "Variants by identifier; every match, with the parent product.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "variant.get": {
      "kind": "read",
      "resource": "variant",
      "verb": "get",
      "capability": "variant.read",
      "allowedWhilePaused": false,
      "summary": "Variants by id.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "variant.apply": {
      "kind": "write",
      "resource": "variant",
      "verb": "apply",
      "capability": "variant.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Conditional compare-and-set per variant over price, status and stock. Same rules as product.apply.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "optionValue.search": {
      "kind": "read",
      "resource": "optionValue",
      "verb": "search",
      "capability": "optionValue.read",
      "allowedWhilePaused": false,
      "summary": "Option values (accepted 11 November 2026, STOR-138) by id, by exact label (whole value, ignoring case and surrounding whitespace) or by parentId (every option value of one product); every match, with the parent product.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "optionValue.get": {
      "kind": "read",
      "resource": "optionValue",
      "verb": "get",
      "capability": "optionValue.read",
      "allowedWhilePaused": false,
      "summary": "Option values by id (accepted 11 November 2026, STOR-138).",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "optionValue.apply": {
      "kind": "write",
      "resource": "optionValue",
      "verb": "apply",
      "capability": "optionValue.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Conditional compare-and-set per option value over stock and tracked (accepted 11 November 2026, STOR-138). Same rules as variant.apply and product.apply; an id the shop does not have is not_found.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "category.search": {
      "kind": "read",
      "resource": "category",
      "verb": "search",
      "capability": "category.read",
      "allowedWhilePaused": false,
      "summary": "Categories by id or exact name (whole value, ignoring case and surrounding whitespace); every match.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "category.get": {
      "kind": "read",
      "resource": "category",
      "verb": "get",
      "capability": "category.read",
      "allowedWhilePaused": false,
      "summary": "Categories by id.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "category.list": {
      "kind": "read",
      "resource": "category",
      "verb": "list",
      "capability": "category.list",
      "allowedWhilePaused": false,
      "summary": "Pages through every category.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "category.query": {
      "kind": "read",
      "resource": "category",
      "verb": "query",
      "capability": "category.query",
      "allowedWhilePaused": false,
      "summary": "Categories that match every given filter (AND), sorted, one numbered page at a time, with the total count. Proposed 16 October 2026, not accepted. A page is a position, not a bookmark: a category added, removed or changed between two requests can move to another page, so a full walk uses category.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "category.apply": {
      "kind": "write",
      "resource": "category",
      "verb": "apply",
      "capability": "category.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Move a category (parentId) or enable/disable it, conditionally. A move under itself or a descendant is rejected/invalid_item. Since 20 November 2026 (decision 009, STOR-128) also the category's image: { path } or an upload to download, or null to remove (the file stays).",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "manufacturer.search": {
      "kind": "read",
      "resource": "manufacturer",
      "verb": "search",
      "capability": "manufacturer.read",
      "allowedWhilePaused": false,
      "summary": "Manufacturers (brands) by id or exact name.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "manufacturer.get": {
      "kind": "read",
      "resource": "manufacturer",
      "verb": "get",
      "capability": "manufacturer.read",
      "allowedWhilePaused": false,
      "summary": "Manufacturers by id.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "manufacturer.list": {
      "kind": "read",
      "resource": "manufacturer",
      "verb": "list",
      "capability": "manufacturer.list",
      "allowedWhilePaused": false,
      "summary": "Pages through every manufacturer.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "manufacturer.query": {
      "kind": "read",
      "resource": "manufacturer",
      "verb": "query",
      "capability": "manufacturer.query",
      "allowedWhilePaused": false,
      "summary": "Manufacturers whose name matches, sorted, one numbered page at a time, with the total count, in the shape of manufacturer.get. Proposed 16 October 2026, not accepted. A full walk uses manufacturer.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "order.search": {
      "kind": "read",
      "resource": "order",
      "verb": "search",
      "capability": "order.read",
      "allowedWhilePaused": false,
      "summary": "Orders by id, by the number the shop shows, or by the buyer's email (every order of that buyer). Every match, abandoned orders included (status.kind abandoned): only order.query leaves them out by default.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "order.get": {
      "kind": "read",
      "resource": "order",
      "verb": "get",
      "capability": "order.read",
      "allowedWhilePaused": false,
      "summary": "Orders by id, with lines and totals as the platform computed them. Store Deputy never recomputes a total. Abandoned orders (status.kind abandoned; OpenCart: order_status_id 0) are returned like any other: only order.query leaves them out by default.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "order.list": {
      "kind": "read",
      "resource": "order",
      "verb": "list",
      "capability": "order.list",
      "allowedWhilePaused": false,
      "summary": "Pages through orders, newest last in the adapter's stable order; updatedSince narrows to recently changed ones. A complete walk: abandoned orders (status.kind abandoned; OpenCart: order_status_id 0) are included; only order.query leaves them out by default.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "order.query": {
      "kind": "read",
      "resource": "order",
      "verb": "query",
      "capability": "order.query",
      "allowedWhilePaused": false,
      "summary": "Orders that match every given filter (AND), sorted, one numbered page at a time, with the total count, in the shape of order.get (addresses only through orderPaymentAddress.get and orderShippingAddress.get). Proposed 17 October 2026. Without an orderStatusId filter, abandoned orders (checkouts the buyer never completed; OpenCart: order_status_id 0, the missing orders) are left out. An orderStatusId filter with the value \"0\" (the string, not null) returns them; with other statuses beside it, either. A full walk uses order.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "order.apply": {
      "kind": "write",
      "resource": "order",
      "verb": "apply",
      "capability": "order.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Change an order's status conditionally, through the platform's own status change so its notifications and history fire. No refund, capture or shipment is implied.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "orderStatus.search": {
      "kind": "read",
      "resource": "orderStatus",
      "verb": "search",
      "capability": "orderStatus.read",
      "allowedWhilePaused": false,
      "summary": "Order statuses by id or exact name (whole value, ignoring case and surrounding whitespace); every match. Proposed 17 October 2026. Order.status.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "orderStatus.get": {
      "kind": "read",
      "resource": "orderStatus",
      "verb": "get",
      "capability": "orderStatus.read",
      "allowedWhilePaused": false,
      "summary": "Order statuses by id. Proposed 17 October 2026. Order.status.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "orderStatus.list": {
      "kind": "read",
      "resource": "orderStatus",
      "verb": "list",
      "capability": "orderStatus.list",
      "allowedWhilePaused": false,
      "summary": "Pages through every order status. Proposed 17 October 2026. Order.status.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "orderStatus.query": {
      "kind": "read",
      "resource": "orderStatus",
      "verb": "query",
      "capability": "orderStatus.query",
      "allowedWhilePaused": false,
      "summary": "Order statuses whose name matches, sorted, one numbered page at a time, with the total count, in the shape of orderStatus.get. Proposed 17 October 2026. Order.status.id names one of these. A full walk uses orderStatus.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "orderPaymentAddress.get": {
      "kind": "read",
      "resource": "orderPaymentAddress",
      "verb": "get",
      "capability": "orderPaymentAddress.read",
      "allowedWhilePaused": false,
      "summary": "The payment address of each order, by the order's id, as the order recorded it. Offered only when the shop owner allowed address access: the module declares orderPaymentAddress.read only after the owner enabled it in the module's settings, and the API offers it only to team members the owner allowed (rules.addresses). An order with no such address, or no such order, is listed in missing. Proposed 17 October 2026.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "orderShippingAddress.get": {
      "kind": "read",
      "resource": "orderShippingAddress",
      "verb": "get",
      "capability": "orderShippingAddress.read",
      "allowedWhilePaused": false,
      "summary": "The shipping address of each order, by the order's id, as the order recorded it. Offered only when the shop owner allowed address access: the module declares orderShippingAddress.read only after the owner enabled it in the module's settings, and the API offers it only to team members the owner allowed (rules.addresses). An order with no such address, or no such order, is listed in missing. Proposed 17 October 2026.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customer.search": {
      "kind": "read",
      "resource": "customer",
      "verb": "search",
      "capability": "customer.read",
      "allowedWhilePaused": false,
      "summary": "Customers by id, exact email or telephone (digits only); every match.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customer.get": {
      "kind": "read",
      "resource": "customer",
      "verb": "get",
      "capability": "customer.read",
      "allowedWhilePaused": false,
      "summary": "Customers by id: name, email, telephone, status and the ids of their addresses. The addresses themselves come from customerAddress.get; passwords, payment data, tokens and IP addresses never cross this interface.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customer.list": {
      "kind": "read",
      "resource": "customer",
      "verb": "list",
      "capability": "customer.list",
      "allowedWhilePaused": false,
      "summary": "Pages through customers.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customer.query": {
      "kind": "read",
      "resource": "customer",
      "verb": "query",
      "capability": "customer.query",
      "allowedWhilePaused": false,
      "summary": "Customers that match every given filter (AND), sorted, one numbered page at a time, with the total count, in the shape of customer.get (addresses as ids only). Proposed 17 October 2026. A full walk uses customer.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customerAddress.get": {
      "kind": "read",
      "resource": "customerAddress",
      "verb": "get",
      "capability": "customerAddress.read",
      "allowedWhilePaused": false,
      "summary": "Addresses by id, as Customer.addressIds names them. Offered only when the shop owner allowed it: the module declares customerAddress.read only after the owner enabled it in the module's settings, and the API offers it only to team members the owner allowed (rules.addresses). There is no customerAddress.search or customerAddress.list: an address is reached through its customer. Proposed 17 October 2026.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customerGroup.search": {
      "kind": "read",
      "resource": "customerGroup",
      "verb": "search",
      "capability": "customerGroup.read",
      "allowedWhilePaused": false,
      "summary": "Customer groups by id or exact name (whole value, ignoring case and surrounding whitespace); every match. Proposed 17 October 2026.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customerGroup.get": {
      "kind": "read",
      "resource": "customerGroup",
      "verb": "get",
      "capability": "customerGroup.read",
      "allowedWhilePaused": false,
      "summary": "Customer groups by id. Proposed 17 October 2026.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customerGroup.list": {
      "kind": "read",
      "resource": "customerGroup",
      "verb": "list",
      "capability": "customerGroup.list",
      "allowedWhilePaused": false,
      "summary": "Pages through every customer group. Proposed 17 October 2026.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customerGroup.query": {
      "kind": "read",
      "resource": "customerGroup",
      "verb": "query",
      "capability": "customerGroup.query",
      "allowedWhilePaused": false,
      "summary": "Customer groups whose name matches, sorted, one numbered page at a time, with the total count, in the shape of customerGroup.get. Proposed 17 October 2026. A full walk uses customerGroup.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "coupon.search": {
      "kind": "read",
      "resource": "coupon",
      "verb": "search",
      "capability": "coupon.read",
      "allowedWhilePaused": false,
      "summary": "Coupons by id or exact code.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "coupon.get": {
      "kind": "read",
      "resource": "coupon",
      "verb": "get",
      "capability": "coupon.read",
      "allowedWhilePaused": false,
      "summary": "Coupons by id. The discount rule itself stays platform data in extensions until the neutral model has a shape for it.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "coupon.list": {
      "kind": "read",
      "resource": "coupon",
      "verb": "list",
      "capability": "coupon.list",
      "allowedWhilePaused": false,
      "summary": "Pages through coupons.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "coupon.query": {
      "kind": "read",
      "resource": "coupon",
      "verb": "query",
      "capability": "coupon.query",
      "allowedWhilePaused": false,
      "summary": "Coupons that match every given filter (AND), sorted, one numbered page at a time, with the total count, in the shape of coupon.get. Proposed 23 October 2026, not accepted. A full walk uses coupon.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "coupon.apply": {
      "kind": "write",
      "resource": "coupon",
      "verb": "apply",
      "capability": "coupon.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Change a coupon's fields conditionally (before 14 November 2026 the OpenCart 3 and 4 modules wrote only status; since then every CouponFields field, emulated, STOR-124). expected names every field set changes and, for discount and usage, every part; the parts left out stay as they are. productIds and categoryIds replace the whole list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "product.create": {
      "kind": "write",
      "resource": "product",
      "verb": "create",
      "capability": "product.create",
      "allowedWhilePaused": false,
      "summary": "Create a draft product: always disabled, never enabled by this call. The same idempotencyKey returns the same product and never makes a second; the same key with other content is rejected / idempotency_key_reused.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "category.create": {
      "kind": "write",
      "resource": "category",
      "verb": "create",
      "capability": "category.create",
      "allowedWhilePaused": false,
      "summary": "Create a category, disabled. Idempotent by key, as product.create.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "manufacturer.create": {
      "kind": "write",
      "resource": "manufacturer",
      "verb": "create",
      "capability": "manufacturer.create",
      "allowedWhilePaused": false,
      "summary": "Create a manufacturer. Idempotent by key, as product.create.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "coupon.create": {
      "kind": "write",
      "resource": "coupon",
      "verb": "create",
      "capability": "coupon.create",
      "allowedWhilePaused": false,
      "summary": "Create a coupon, disabled. A code another coupon holds is rejected / duplicate.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "manufacturer.apply": {
      "kind": "write",
      "resource": "manufacturer",
      "verb": "apply",
      "capability": "manufacturer.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Rename a manufacturer, set its sort order or its SEO keywords, conditionally (accepted 9 November 2026, decision 008). Same rules as every apply: compare-and-set per field, items independent.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "customer.apply": {
      "kind": "write",
      "resource": "customer",
      "verb": "apply",
      "capability": "customer.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Change a customer's status, group, name, telephone or email, conditionally (accepted 9 November 2026, decision 008). An email another customer holds is rejected / duplicate. The email is the customer's sign-in name, so it is its own capability.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "review.get": {
      "kind": "read",
      "resource": "review",
      "verb": "get",
      "capability": "review.read",
      "allowedWhilePaused": false,
      "summary": "Reviews by id, in any status, with the text the shopper wrote (untrusted: rules.customerMessages). Proposed 18 November 2026 by Yevhen Kariakin, not accepted. An id with no review is listed in missing.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "review.list": {
      "kind": "read",
      "resource": "review",
      "verb": "list",
      "capability": "review.list",
      "allowedWhilePaused": false,
      "summary": "Pages through reviews of every status in the adapter's stable order; updatedSince narrows to recently changed ones (OpenCart: date_modified). A complete walk, as the other list operations. Proposed 18 November 2026 by Yevhen Kariakin, not accepted.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "review.query": {
      "kind": "read",
      "resource": "review",
      "verb": "query",
      "capability": "review.query",
      "allowedWhilePaused": false,
      "summary": "Reviews that match every given filter (AND), sorted, one numbered page at a time, with the total count, in the shape of review.get. Proposed 18 November 2026 by Yevhen Kariakin, not accepted. A full walk uses review.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "review.apply": {
      "kind": "write",
      "resource": "review",
      "verb": "apply",
      "capability": "review.write.<field>",
      "allowedWhilePaused": false,
      "summary": "Publish or unpublish a review conditionally: expected carries the status the API read, set the status wanted. Proposed 18 November 2026 by Yevhen Kariakin, not accepted. Only status is written; the module keeps the review's text, rating, author, product and dates as they are (OpenCart: the admin save rewrites the whole row, so the module reads the row and writes it back unchanged but for status and date_modified). The platform's own handling follows (OpenCart: the review caches are cleared and a product's rating and reviewCount change as the platform computes them; Product.updatedAt does not move). Nothing is emailed. No review is created, deleted or edited here. The API sends it only after the owner approves.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnRequest.get": {
      "kind": "read",
      "resource": "returnRequest",
      "verb": "get",
      "capability": "returnRequest.read",
      "allowedWhilePaused": false,
      "summary": "Return requests by id, as the request recorded the product, the reason, the action and the status, with the customer's name, email, telephone and comment (personal data and untrusted text: rules.customerMessages). Proposed 18 November 2026 by Yevhen Kariakin, not accepted. An id with no request is listed in missing.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnRequest.list": {
      "kind": "read",
      "resource": "returnRequest",
      "verb": "list",
      "capability": "returnRequest.list",
      "allowedWhilePaused": false,
      "summary": "Pages through return requests in the adapter's stable order; updatedSince narrows to recently changed ones. A complete walk. Proposed 18 November 2026 by Yevhen Kariakin, not accepted.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnRequest.query": {
      "kind": "read",
      "resource": "returnRequest",
      "verb": "query",
      "capability": "returnRequest.query",
      "allowedWhilePaused": false,
      "summary": "Return requests that match every given filter (AND), sorted, one numbered page at a time, with the total count, in the shape of returnRequest.get without history. Proposed 18 November 2026 by Yevhen Kariakin, not accepted. A full walk uses returnRequest.list.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnStatus.search": {
      "kind": "read",
      "resource": "returnStatus",
      "verb": "search",
      "capability": "returnStatus.read",
      "allowedWhilePaused": false,
      "summary": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The return statuss the shop defines (OpenCart: return_status), names in the shop's default admin language, by id or exact name (whole value, ignoring case and surrounding whitespace); every match. ReturnRequest.status.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnStatus.get": {
      "kind": "read",
      "resource": "returnStatus",
      "verb": "get",
      "capability": "returnStatus.read",
      "allowedWhilePaused": false,
      "summary": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The return statuss the shop defines (OpenCart: return_status), names in the shop's default admin language, by id. ReturnRequest.status.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnStatus.list": {
      "kind": "read",
      "resource": "returnStatus",
      "verb": "list",
      "capability": "returnStatus.list",
      "allowedWhilePaused": false,
      "summary": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The return statuss the shop defines (OpenCart: return_status), names in the shop's default admin language, paged, a complete walk. ReturnRequest.status.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnStatus.query": {
      "kind": "read",
      "resource": "returnStatus",
      "verb": "query",
      "capability": "returnStatus.query",
      "allowedWhilePaused": false,
      "summary": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The return statuss the shop defines (OpenCart: return_status), names in the shop's default admin language, filtered by name, sorted, one numbered page at a time, with the total count. ReturnRequest.status.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnReason.search": {
      "kind": "read",
      "resource": "returnReason",
      "verb": "search",
      "capability": "returnReason.read",
      "allowedWhilePaused": false,
      "summary": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The return reasons the shop defines (OpenCart: return_reason), names in the shop's default admin language, by id or exact name (whole value, ignoring case and surrounding whitespace); every match. ReturnRequest.reason.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnReason.get": {
      "kind": "read",
      "resource": "returnReason",
      "verb": "get",
      "capability": "returnReason.read",
      "allowedWhilePaused": false,
      "summary": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The return reasons the shop defines (OpenCart: return_reason), names in the shop's default admin language, by id. ReturnRequest.reason.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnReason.list": {
      "kind": "read",
      "resource": "returnReason",
      "verb": "list",
      "capability": "returnReason.list",
      "allowedWhilePaused": false,
      "summary": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The return reasons the shop defines (OpenCart: return_reason), names in the shop's default admin language, paged, a complete walk. ReturnRequest.reason.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    },
    "returnReason.query": {
      "kind": "read",
      "resource": "returnReason",
      "verb": "query",
      "capability": "returnReason.query",
      "allowedWhilePaused": false,
      "summary": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The return reasons the shop defines (OpenCart: return_reason), names in the shop's default admin language, filtered by name, sorted, one numbered page at a time, with the total count. ReturnRequest.reason.id names one of these.",
      "errors": [
        "invalid_params",
        "limit_exceeded",
        "capability_unavailable",
        "paused",
        "signature_invalid",
        "timestamp_skew",
        "not_paired",
        "insecure_transport",
        "unsupported_protocol",
        "unknown_op",
        "internal"
      ]
    }
  },
  "$defs": {
    "CapabilityDeclaration": {
      "type": "object",
      "required": [
        "name",
        "version"
      ],
      "additionalProperties": false,
      "description": "One capability the module offers, named as operations.json declares them: <resource>.read, <resource>.list, <resource>.query, <resource>.create (accepted 9 November 2026, decision 008) or <resource>.write.<field>. The names are in operations.json `capabilities`; this file does not list them. A query capability also lists the sort fields and filter types the module supports (sorts, filters); a filter or sort the contract names but the module does not declare is refused with capability_unavailable (operations.json rules.query).",
      "allOf": [
        {
          "if": {
            "properties": {
              "name": {
                "pattern": "\\.query$"
              }
            }
          },
          "then": {
            "required": [
              "sorts",
              "filters"
            ]
          },
          "else": {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "sorts"
                  ]
                },
                {
                  "required": [
                    "filters"
                  ]
                }
              ]
            }
          }
        }
      ],
      "properties": {
        "name": {
          "type": "string",
          "pattern": "^[a-z][a-zA-Z]*\\.(read|list|query|create|write\\.[a-zA-Z]+)$"
        },
        "version": {
          "type": "integer",
          "minimum": 1
        },
        "sorts": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          },
          "description": "query capabilities only: the values of the operation's sort the module supports, a subset of its enum."
        },
        "filters": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          },
          "description": "query capabilities only: the filter types the module supports, a subset of the operation's filter types."
        },
        "conditional": {
          "type": "string",
          "enum": [
            "atomic",
            "emulated"
          ],
          "description": "Writes only. atomic: one conditional statement on the platform; emulated: read, compare, write — the API reads back and tells the owner. How a module decides is operations.json rules.conditional."
        }
      }
    },
    "Currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 code."
    },
    "Dimensions": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "length",
        "width",
        "height",
        "unit"
      ],
      "properties": {
        "length": {
          "type": "string",
          "pattern": "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,4})?$"
        },
        "width": {
          "type": "string",
          "pattern": "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,4})?$"
        },
        "height": {
          "type": "string",
          "pattern": "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,4})?$"
        },
        "unit": {
          "type": "string",
          "enum": [
            "cm",
            "mm",
            "in"
          ]
        }
      },
      "description": "As Weight, against the shop's length classes (OpenCart: length_class_id). Compared and written as a whole: a partial object is invalid_params."
    },
    "Discount": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "customerGroupId",
        "minQuantity",
        "priority",
        "price",
        "startsAt",
        "endsAt"
      ],
      "properties": {
        "customerGroupId": {
          "$ref": "#/$defs/Id"
        },
        "minQuantity": {
          "type": "integer",
          "minimum": 1
        },
        "priority": {
          "type": "integer",
          "minimum": 0
        },
        "price": {
          "$ref": "#/$defs/MoneyInput"
        },
        "startsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "endsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        }
      },
      "description": "One quantity discount (OpenCart: a product_discount row; its `quantity` is minQuantity here, as in PriceRule)."
    },
    "Error": {
      "type": "object",
      "required": [
        "code",
        "message",
        "retryable",
        "details"
      ],
      "properties": {
        "code": {
          "$ref": "#/$defs/ErrorCode"
        },
        "message": {
          "type": "string",
          "description": "For logs and people; never SQL, paths or secrets. Clients branch on code."
        },
        "retryable": {
          "type": "boolean",
          "description": "True only for internal today."
        },
        "details": {
          "type": "object"
        }
      }
    },
    "ErrorCode": {
      "type": "string",
      "enum": [
        "invalid_params",
        "unsupported_protocol",
        "unknown_op",
        "capability_unavailable",
        "limit_exceeded",
        "paused",
        "customer_required",
        "pass_invalid",
        "session_ended",
        "not_paired",
        "signature_invalid",
        "timestamp_skew",
        "replayed",
        "insecure_transport",
        "internal"
      ]
    },
    "Extensions": {
      "type": "object",
      "description": "Platform-only data, one object per platform name (opencart, woocommerce, …). The API stores and shows it at most, never branches on it. A field the API needs is promoted into the neutral model in a minor version instead.",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*$"
      },
      "additionalProperties": {
        "type": "object"
      }
    },
    "Gtin": {
      "type": "string",
      "pattern": "^([0-9]{8}|[0-9]{12}|[0-9]{13}|[0-9]{14})$",
      "description": "A barcode normalized as the prose page says (#gtin) — digits only, 8, 12, 13 or 14 of them. Two GTINs are the same when they are equal after left-padding both with zeros to 14 digits."
    },
    "Id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,63}$",
      "description": "An id as text, whatever the platform stores (OpenCart's integer 42 is \"42\"). Underscores are allowed since 17 October 2026, for string codes such as Magento's order status pending_payment. Compared as an exact string; \"042\" is not \"42\"."
    },
    "Identifier": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 128,
      "description": "A product code as the shop stores it, trimmed. Null when empty — never an empty string."
    },
    "Image": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "path",
        "url"
      ],
      "description": "A picture of a product or a category (promoted 20 November 2026, decision 009, STOR-128; founder acceptance pending). It has no id of its own: the path identifies it, and a path is never listed twice in one gallery.",
      "properties": {
        "path": {
          "type": "string",
          "maxLength": 255,
          "description": "The stable value: the file's path relative to the shop's image folder, forward slashes, no leading slash, no dot segments (OpenCart: catalog/demo/kettle.jpg). It is what expected and set compare."
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "An absolute URL the owner's browser can display, built by the module from the default storefront's URL of store.describe plus the image folder and the path; null when the platform has no public URL for the file or the stored path is not one the module would serve."
        }
      }
    },
    "LanguageCode": {
      "type": "string",
      "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
      "maxLength": 35,
      "description": "A language as a BCP 47 tag in its canonical casing (\"en-GB\", \"uk-UA\", \"de-DE\"; language lowercase, region uppercase), accepted 11 November 2026 (STOR-98). Compared as an exact string. Platform language ids never cross the wire: the module maps its own (OpenCart's language_id and its code \"en-gb\") to this tag and back. Where a platform keeps only a language without a region, the tag is that language (\"de\")."
    },
    "Limits": {
      "type": "object",
      "required": [
        "maxIdsPerRead",
        "maxItemsPerWrite",
        "timeBudgetMs",
        "maxBodyBytes",
        "maxPageSize"
      ],
      "additionalProperties": false,
      "properties": {
        "maxIdsPerRead": {
          "type": "integer",
          "minimum": 1,
          "description": "Ids per get or search; items per apply are maxItemsPerWrite."
        },
        "maxItemsPerWrite": {
          "type": "integer",
          "minimum": 1
        },
        "timeBudgetMs": {
          "type": "integer",
          "minimum": 1,
          "description": "A read that cannot finish within it answers limit_exceeded, never a truncated result."
        },
        "maxBodyBytes": {
          "type": "integer",
          "minimum": 1024,
          "description": "Request bodies above it answer limit_exceeded before parsing; 262144 in the first version."
        },
        "maxPageSize": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "description": "The largest limit list accepts."
        },
        "imageMediaTypes": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "image/jpeg",
              "image/png",
              "image/gif",
              "image/webp"
            ]
          },
          "description": "Optional (promoted 20 November 2026, decision 009, STOR-128). The picture types an upload may be; absent means image/jpeg, image/png, image/gif. image/webp only where the platform makes thumbnails of it. Declared by a module that offers product.write.image, product.write.images or category.write.image."
        },
        "maxImageBytes": {
          "type": "integer",
          "minimum": 1,
          "maximum": 3145728,
          "description": "Optional (promoted 20 November 2026, decision 009, STOR-128). The most bytes of one uploaded picture; absent means 3145728 (the chat's limit)."
        }
      }
    },
    "Manifest": {
      "type": "object",
      "required": [
        "protocols",
        "platform",
        "store",
        "limits",
        "capabilities",
        "warnings",
        "paused"
      ],
      "properties": {
        "protocols": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Protocol versions the module speaks."
        },
        "platform": {
          "type": "object",
          "required": [
            "name",
            "version",
            "adapter"
          ],
          "description": "Informational. The API shows it and logs it, and never branches on it; capabilities say what the shop can do.",
          "properties": {
            "name": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9]*$",
              "description": "One of `platforms`: opencart, woocommerce, prestashop, magento."
            },
            "version": {
              "type": "string",
              "description": "The platform version as the platform reports it."
            },
            "adapter": {
              "type": "object",
              "required": [
                "name",
                "version"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The module package, e.g. storedeputy-opencart3."
                },
                "version": {
                  "type": "string"
                }
              }
            }
          }
        },
        "store": {
          "type": "object",
          "required": [
            "name",
            "storefronts",
            "currency",
            "pricesIncludeTax",
            "timezone"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "storefronts": {
              "type": "array",
              "minItems": 1,
              "description": "Every storefront the shop serves. The first is the default.",
              "items": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "url"
                ],
                "properties": {
                  "id": {
                    "$ref": "#/$defs/Id"
                  },
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "endpoint": {
                    "type": "string",
                    "description": "The storefront-side entry point of this storefront (section `storefront`, reserved; STOR-68, 16 October 2026): the address the API sends storefront-kind operations to, with the shopper pass, as an opaque URL like the admin-side endpoint named at Connect. Present only when that address answers the protocol envelope (signature, error codes); absent means this storefront has no storefront side. Never null or empty. Same scheme, host and port as `url`, because the host is what puts the shop into this storefront's context (tax, currency, language, customer group) and the manifest must not point the API at another host; HTTPS; no credentials in it. What is served there is said by capabilities, never by the presence of the address. The pass route and the widget are the browser's business and are not here."
                  }
                }
              }
            },
            "currency": {
              "$ref": "#/$defs/Currency",
              "description": "The currency base prices are kept in."
            },
            "pricesIncludeTax": {
              "type": "boolean",
              "description": "Whether prices are entered and stored with tax included. Every price the module reads or writes is in this mode."
            },
            "timezone": {
              "type": "string",
              "description": "The shop's IANA timezone (Europe/Kyiv), for display only: every time on the wire is UTC."
            },
            "languages": {
              "type": "array",
              "minItems": 1,
              "description": "Accepted 11 November 2026 (STOR-98; implemented by the OpenCart 3 and 4 modules and the API). The languages the shop serves its product texts in: every language that is enabled in the shop, one entry each, none twice. Exactly one entry has `default: true` (JSON Schema cannot say so portably; the contract check and the conformance suite do), the language the shop's admin works in (OpenCart: config_admin_language), the one `Product.name` is read in. A language that is disabled in the shop is not listed: buyers cannot see its texts, so the agent does not fill them, and a write to it is `rejected` with reason `unknown_language`. OPTIONAL in the schema, so that a module written before this proposal stays valid; absent means the module serves no product texts: `include: [\"texts\"]` is `capability_unavailable` and `product.write.texts` must not be declared. A module that declares `product.write.texts` must carry this list (checked at store.describe, like `conditional`). OpenCart mapping: `language.code` \"en-gb\" becomes \"en-GB\", \"uk-ua\" becomes \"uk-UA\", \"de-de\" \"de-DE\"; `language.name` is the name; the module keeps the code-to-language_id map to itself.",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "code",
                  "name",
                  "default"
                ],
                "properties": {
                  "code": {
                    "$ref": "#/$defs/LanguageCode"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The language as the shop names it (OpenCart: language.name), for display."
                  },
                  "default": {
                    "type": "boolean"
                  }
                }
              }
            },
            "taxClasses": {
              "type": "array",
              "description": "Optional (accepted 9 November 2026, decision 008): the shop's tax classes, one entry each, as `languages` lists languages. Needed for product.write.taxClassId and for taxClassId in a product create: a module that declares either must carry this list (checked at store.describe). Absent means the module offers no tax class to choose. OpenCart: tax_class (tax_class_id, title).",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "id",
                  "name"
                ],
                "properties": {
                  "id": {
                    "$ref": "#/$defs/Id"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          }
        },
        "limits": {
          "$ref": "#/$defs/Limits"
        },
        "capabilities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CapabilityDeclaration"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Neutral code, e.g. product_edit_listener: another extension listens to product saves; product_add_listener (proposed 13 November 2026, STOR-121): another extension listens to added products, which a module's create does not reach; category_add_listener, manufacturer_add_listener and coupon_add_listener (proposed 14 November 2026, STOR-124): the same for categories, manufacturers and coupons."
              },
              "message": {
                "type": "string"
              },
              "extensions": {
                "$ref": "#/$defs/Extensions"
              }
            }
          }
        },
        "paused": {
          "type": "boolean"
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "Money": {
      "type": "string",
      "pattern": "^-?(0|[1-9][0-9]{0,10})\\.[0-9]{4}$",
      "description": "Decimal string with exactly 4 places. Never a JSON number. The currency is given beside it."
    },
    "MoneyInput": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,10})(\\.[0-9]{1,4})?$",
      "description": "Non-negative decimal string, 1 to 4 places. The API sends 4."
    },
    "NullableId": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,63}$"
    },
    "NullableMoney": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^-?(0|[1-9][0-9]{0,10})\\.[0-9]{4}$"
    },
    "NullableUtcDateTime": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
    },
    "OptionValue": {
      "type": "object",
      "required": [
        "id",
        "parentId",
        "label",
        "stock"
      ],
      "additionalProperties": false,
      "description": "Accepted 11 November 2026 (STOR-138; implemented by the OpenCart 3 and 4 modules 1.6.0, STOR-139). The stock-carrying value of a product's option, as the owner sees it (\"T-shirt, red, L: 3 pcs\"; OpenCart 3 product_option_value, OpenCart 4 on a product without variants). Only with the optionValue.read capability. The option and value taxonomy of the platform does not leak: the id is opaque and the label is built by the module.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "Unique within the shop."
        },
        "parentId": {
          "$ref": "#/$defs/Id",
          "description": "The product."
        },
        "label": {
          "type": "string",
          "description": "What the owner calls it, in the shop's default language: \"Size: L\", \"Colour: Red / Size: L\" when the module can name more than one option."
        },
        "stock": {
          "$ref": "#/$defs/Stock",
          "description": "quantity is the value's own quantity; tracked is whether orders reduce it (OpenCart: subtract)."
        },
        "priceDelta": {
          "$ref": "#/$defs/Price",
          "description": "Optional: the signed surcharge this value adds to the product price (price and price_prefix of OpenCart); omitted where the module does not read it. Read only; not writable yet."
        }
      }
    },
    "Price": {
      "type": "object",
      "required": [
        "amount",
        "currency",
        "includesTax"
      ],
      "properties": {
        "amount": {
          "$ref": "#/$defs/Money"
        },
        "currency": {
          "$ref": "#/$defs/Currency"
        },
        "includesTax": {
          "type": "boolean",
          "description": "Equals the manifest's store.pricesIncludeTax."
        }
      }
    },
    "PriceRule": {
      "type": "object",
      "required": [
        "kind",
        "price",
        "startsAt",
        "endsAt",
        "audience",
        "active"
      ],
      "description": "A price that replaces the base price for some buyers or quantities. Read-only in Protocol 1. Listed when it is in effect now or starts later; expired rules are left out. In the product's currency and tax mode.",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "sale",
            "special",
            "tier",
            "other"
          ],
          "description": "sale — a plain reduced price for everyone; special — a reduced price for a segment or period; tier — a price from a minimum quantity; other — anything the adapter cannot place."
        },
        "price": {
          "$ref": "#/$defs/Money"
        },
        "startsAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "Null — no start limit."
        },
        "endsAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "Null — no end limit. The rule stops applying at this moment."
        },
        "audience": {
          "type": "string",
          "enum": [
            "all",
            "segment"
          ],
          "description": "segment — only some customers (a customer group, role or list); which one is platform data in extensions."
        },
        "minQuantity": {
          "type": "integer",
          "minimum": 1,
          "description": "Required for kind tier."
        },
        "active": {
          "type": "boolean",
          "description": "In effect at the moment of reading."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      },
      "if": {
        "properties": {
          "kind": {
            "const": "tier"
          }
        }
      },
      "then": {
        "required": [
          "minQuantity"
        ]
      }
    },
    "Product": {
      "type": "object",
      "required": [
        "id",
        "code",
        "sku",
        "gtin",
        "gtins",
        "mpn",
        "name",
        "status",
        "stock",
        "price",
        "priceRules",
        "variantPricing",
        "storefrontIds",
        "categoryIds",
        "manufacturerId",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "code": {
          "$ref": "#/$defs/Identifier",
          "description": "The platform's own product code: OpenCart's model. Null when the platform has none."
        },
        "sku": {
          "$ref": "#/$defs/Identifier"
        },
        "gtin": {
          "oneOf": [
            {
              "$ref": "#/$defs/Gtin"
            },
            {
              "type": "null"
            }
          ],
          "description": "The primary barcode: the first of gtins. Null when there is none."
        },
        "gtins": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Gtin"
          },
          "description": "Every distinct normalized barcode of the product, primary first. Empty when none."
        },
        "mpn": {
          "$ref": "#/$defs/Identifier"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the shop's default admin language, HTML entities decoded; null when the product has no name in that language."
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "stock": {
          "$ref": "#/$defs/Stock"
        },
        "price": {
          "description": "The base price. Null only when variantPricing is variants and the parent has no price of its own.",
          "oneOf": [
            {
              "$ref": "#/$defs/Price"
            },
            {
              "type": "null"
            }
          ]
        },
        "priceRules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PriceRule"
          }
        },
        "variantPricing": {
          "type": "string",
          "enum": [
            "none",
            "options",
            "variants"
          ],
          "description": "none — one price; options — options add to or subtract from the base price (OpenCart option prices), there is no per-variant base price and price.apply changes the base price only; variants — each variant has its own price (WooCommerce variable products, OpenCart 4 masters), read with variant.read and written per variant; product.apply on price writes the parent's own price where it has one and is variant_required where it has none (operations.json rules.variants)."
        },
        "storefrontIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Storefronts the product is offered on."
        },
        "categoryIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Every category the product is in, as the platform stores it; empty when none. Read-only: the API filters by it."
        },
        "manufacturerId": {
          "$ref": "#/$defs/NullableId",
          "description": "The product's manufacturer or brand; null when none. Read-only (decision 006)."
        },
        "rating": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[0-5](\\.[0-9]{1,2})?$",
          "description": "Optional: only from a module whose platform keeps product reviews. The average rating of approved reviews on a 0–5 scale, a decimal string with at most two places (OpenCart: AVG(review.rating) of reviews with status 1); null when the product has no approved review."
        },
        "reviewCount": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "description": "Optional, beside rating: how many approved reviews the product has (OpenCart: COUNT of reviews with status 1)."
        },
        "minQuantity": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "description": "Optional: the smallest quantity a customer may order (OpenCart: minimum); null when the platform sets none for the product."
        },
        "availableAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "Optional: from when the product can be bought (OpenCart: date_available, a date, taken at 00:00 shop time and converted to UTC); null when none."
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "When the product was created (OpenCart: date_added), converted to UTC. Null when the platform keeps no creation time for products."
        },
        "updatedAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "The latest change to the product or anything it carries: its fields, price, price rules, stock and every variant, including stock a sale took. The module guarantees it: where the platform does not move its own modification time for such a change (OpenCart 3 on an order or an option edit), the module does. list with updatedSince filters by it. Null when the platform keeps no modification time for products; such a product is never returned by list with updatedSince, and only a full pass without updatedSince finds its changes."
        },
        "variants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Variant"
          },
          "description": "Present only when the request asked for include: [\"variants\"] and the module declares variant.read."
        },
        "optionValues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OptionValue"
          },
          "description": "Present only when the request asked for include: [\"options\"] and the module declares optionValue.read. When the product's stock lives on option values, stock.quantity above is the sum of their tracked quantities (operations.json rules.optionValues)."
        },
        "texts": {
          "type": "object",
          "propertyNames": {
            "$ref": "#/$defs/LanguageCode"
          },
          "additionalProperties": {
            "oneOf": [
              {
                "$ref": "#/$defs/ProductText"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": "Accepted 11 November 2026 (STOR-98). The product's texts per language, keyed by the manifest's language codes. Present only when the request asked for include: [\"texts\"] and the manifest carries `languages`; never on list or query items (descriptions are large). Every manifest language is a key. A language the product has no row for is null (the whole entry), not an object of nulls: the difference matters to a write, which must create the row (operations.json, product.apply). Read with product.read; there is no separate read capability."
        },
        "weight": {
          "oneOf": [
            {
              "$ref": "#/$defs/Weight"
            },
            {
              "type": "null"
            }
          ],
          "description": "Present only when the request asked for include: [\"details\"] (accepted 9 November 2026, decision 008). Null when the product has no weight."
        },
        "dimensions": {
          "oneOf": [
            {
              "$ref": "#/$defs/Dimensions"
            },
            {
              "type": "null"
            }
          ],
          "description": "As weight."
        },
        "taxClassId": {
          "$ref": "#/$defs/NullableId",
          "description": "As weight: one of the manifest's taxClasses, null for none."
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords",
          "description": "As weight."
        },
        "sortOrder": {
          "type": "integer",
          "description": "The product's position in the platform's lists (OpenCart: sort_order). As weight: only with include: [\"details\"] (proposed 14 November 2026, STOR-124; not accepted)."
        },
        "specials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Special"
          },
          "description": "As weight: the full list, expired rows included (priceRules lists only rows in effect or upcoming)."
        },
        "discounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Discount"
          },
          "description": "As specials."
        },
        "image": {
          "oneOf": [
            {
              "$ref": "#/$defs/Image"
            },
            {
              "type": "null"
            }
          ],
          "description": "Promoted 20 November 2026 (decision 009, STOR-128; founder acceptance pending). Present only when the request asked for include: [\"images\"]: the main image, or null."
        },
        "images": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Image"
          },
          "description": "As image: the additional images in display order (OpenCart: product_image ordered by sort_order, then id). The array order is the order; sort_order values are the module's detail. A path appears at most once."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "ProductText": {
      "type": "object",
      "required": [
        "name",
        "description",
        "metaTitle",
        "metaDescription",
        "metaKeywords"
      ],
      "additionalProperties": false,
      "description": "Accepted 11 November 2026 (STOR-98; implemented by the OpenCart 3 and 4 modules and the API). The texts of one product in one language. Every field is a string or null: null — the platform keeps no such field (WooCommerce has no meta keywords of its own); an empty text is the empty string \"\", never null. Read as the storefront would render the source: HTML entities decoded (OpenCart stores these columns encoded with htmlspecialchars, and the module decodes them on read and encodes them on write). Tags are not here (decision of 3 November 2026: on other platforms they are taxonomy terms). Limits, OpenCart 3 as the platform's schema defines them (from the platform's documentation and source, not measured in this repository): name, metaTitle, metaDescription and metaKeywords are varchar(255), description is text (65,535 bytes). A value longer than the platform stores is never truncated: the write is `rejected` with reason `invalid_item`.",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The product name in this language, as plain text."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The long description as HTML. The API refuses unsafe HTML before the owner's approval card (operations.json rules.texts); the module stores what it is given."
        },
        "metaTitle": {
          "type": [
            "string",
            "null"
          ],
          "description": "The page title for search engines (OpenCart: meta_title)."
        },
        "metaDescription": {
          "type": [
            "string",
            "null"
          ],
          "description": "The page description for search engines (OpenCart: meta_description)."
        },
        "metaKeywords": {
          "type": [
            "string",
            "null"
          ],
          "description": "The keywords, as one string (OpenCart: meta_keyword)."
        }
      }
    },
    "Request": {
      "type": "object",
      "required": [
        "protocol",
        "id",
        "op",
        "params"
      ],
      "properties": {
        "protocol": {
          "type": "string",
          "pattern": "^1\\.[0-9]+$",
          "description": "The module accepts any 1.x; the API sends \"1.0\"."
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "description": "Chosen by the API per request (a UUID today); echoed back."
        },
        "op": {
          "type": "string",
          "pattern": "^[a-z][a-zA-Z]*(\\.[a-z_]+)+$"
        },
        "params": {
          "type": "object"
        },
        "shopperPass": {
          "type": "string",
          "description": "Storefront endpoint only (store.storefronts[].endpoint): the ShopperPass of contracts/embedded/passes.yaml that the storefront operation acts for, as the module issued it. The module checks its signature (sd-shopper-pass-v1), audience, connection and storefront, and turns its cartRef back into the shopper's session itself; the session id never crosses the wire. The admin-side endpoint refuses the field as unknown (invalid_params). The pass's expiresAt does not apply here: it is accepted as long as the module's row for its cartRef lives (7 days from the last pass the browser received, the longest chat session an owner can choose for the shopper agent; a login or logout ends it); see contracts/embedded/passes.yaml rules. A missing or bad pass answers pass_invalid, a pass whose row has ended answers session_ended (17 November 2026, proposed). Proposed 26 October 2026 with the OpenCart 3 storefront startup; no API sends it yet."
        }
      }
    },
    "ResponseError": {
      "type": "object",
      "required": [
        "protocol",
        "id",
        "ok",
        "error"
      ],
      "properties": {
        "protocol": {
          "const": "1.0"
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Null when the request body could not be read or the failure came from the platform's own error handler."
        },
        "ok": {
          "const": false
        },
        "error": {
          "$ref": "#/$defs/Error"
        }
      }
    },
    "ResponseOk": {
      "type": "object",
      "required": [
        "protocol",
        "id",
        "ok",
        "result"
      ],
      "properties": {
        "protocol": {
          "const": "1.0"
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "ok": {
          "const": true
        },
        "result": {
          "type": "object"
        }
      }
    },
    "SeoKeywords": {
      "type": "object",
      "minProperties": 1,
      "propertyNames": {
        "$ref": "#/$defs/Id"
      },
      "additionalProperties": {
        "type": "object",
        "minProperties": 1,
        "propertyNames": {
          "$ref": "#/$defs/LanguageCode"
        },
        "additionalProperties": {
          "type": [
            "string",
            "null"
          ],
          "description": "The URL keyword of the record in that storefront and language. In `set`, the empty string removes it where the platform allows that, and a keyword matches ^[a-z0-9]+(-[a-z0-9]+)*$; `expected` takes the keyword as read; null only in `expected` (no keyword). Proposed 13 November 2026 (STOR-121): the pattern applies to set only (operations.json rules.seoKeywords)."
        }
      },
      "description": "Keyed by storefront id, then language code (manifest store.storefronts and store.languages). Compare and set run per storefront, language and field. A keyword another record already holds on the same storefront, in any language, is rejected / duplicate with field seoKeywords; the same record may hold one keyword in several languages (proposed 13 November 2026, STOR-121: operations.json rules.seoKeywords; accepted on 9 November as same storefront and language)."
    },
    "Special": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "customerGroupId",
        "priority",
        "price",
        "startsAt",
        "endsAt"
      ],
      "properties": {
        "customerGroupId": {
          "$ref": "#/$defs/Id"
        },
        "priority": {
          "type": "integer",
          "minimum": 0
        },
        "price": {
          "$ref": "#/$defs/MoneyInput"
        },
        "startsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "endsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        }
      },
      "description": "One special price (OpenCart: a product_special row). No id of its own on the wire: the list is the unit."
    },
    "Stock": {
      "type": "object",
      "required": [
        "quantity",
        "tracked"
      ],
      "properties": {
        "quantity": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Null when the platform keeps no quantity for this item."
        },
        "tracked": {
          "type": "boolean",
          "description": "Whether orders reduce the quantity."
        }
      }
    },
    "UtcDateTime": {
      "type": "string",
      "format": "date-time",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$",
      "description": "UTC, ISO 8601, to the second, with Z. The module converts from the shop's own time."
    },
    "Variant": {
      "type": "object",
      "required": [
        "id",
        "parentId",
        "code",
        "sku",
        "gtin",
        "gtins",
        "mpn",
        "attributes",
        "price",
        "priceRules",
        "stock",
        "status",
        "createdAt",
        "updatedAt"
      ],
      "description": "A sellable variation with its own price (a WooCommerce variation, an OpenCart 4 variant product). Only with the variant.read capability; never a product of product.list or product.query (operations.json rules.variants).",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "Unique within the shop."
        },
        "parentId": {
          "$ref": "#/$defs/Id"
        },
        "code": {
          "$ref": "#/$defs/Identifier"
        },
        "sku": {
          "$ref": "#/$defs/Identifier"
        },
        "gtin": {
          "oneOf": [
            {
              "$ref": "#/$defs/Gtin"
            },
            {
              "type": "null"
            }
          ]
        },
        "gtins": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Gtin"
          }
        },
        "mpn": {
          "$ref": "#/$defs/Identifier"
        },
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "What makes it a variant, by attribute name: { \"Colour\": \"Red\", \"Size\": \"L\" }. In the shop's default language."
        },
        "price": {
          "$ref": "#/$defs/Price"
        },
        "priceRules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PriceRule"
          }
        },
        "stock": {
          "$ref": "#/$defs/Stock"
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "When the variant was created, in UTC (OpenCart 4: date_added of the variant product; WooCommerce: date_created). Null when the platform keeps no creation time for variants (PrestaShop combinations)."
        },
        "updatedAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "The latest change to this variant, its price, price rules or stock, in UTC. Its product's updatedAt is never earlier. Null when the platform keeps no modification time for variants (PrestaShop combinations); the product's updatedAt still covers the variant."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "Weight": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value",
        "unit"
      ],
      "properties": {
        "value": {
          "type": "string",
          "pattern": "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,4})?$"
        },
        "unit": {
          "type": "string",
          "enum": [
            "kg",
            "g",
            "lb",
            "oz"
          ]
        }
      },
      "description": "The module maps the unit to the shop's own weight class (OpenCart: weight_class_id). A unit the shop has no class for is rejected / unknown_reference with field weight."
    },
    "Resource": {
      "type": "string",
      "enum": [
        "product",
        "variant",
        "optionValue",
        "category",
        "manufacturer",
        "order",
        "orderStatus",
        "orderPaymentAddress",
        "orderShippingAddress",
        "customer",
        "customerGroup",
        "customerAddress",
        "coupon",
        "review",
        "returnRequest",
        "returnStatus",
        "returnReason"
      ]
    },
    "SearchMatch": {
      "type": "object",
      "required": [
        "resource",
        "id"
      ],
      "additionalProperties": false,
      "properties": {
        "resource": {
          "$ref": "#/$defs/Resource"
        },
        "id": {
          "$ref": "#/$defs/Id"
        }
      },
      "description": "A match of category, manufacturer, order, customer or coupon search: the resource and its id. Only product.search and variant.search carry parentId (ProductSearchMatch)."
    },
    "SearchResult": {
      "type": "object",
      "required": [
        "input",
        "matches"
      ],
      "additionalProperties": false,
      "properties": {
        "input": {
          "type": "object",
          "required": [
            "type",
            "value"
          ],
          "properties": {
            "type": {
              "type": "string"
            },
            "value": {
              "type": "string"
            }
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SearchMatch"
          },
          "description": "Every match, in the adapter's stable id order. Never one picked out of several."
        }
      }
    },
    "ProductSearchMatch": {
      "type": "object",
      "required": [
        "resource",
        "id",
        "parentId"
      ],
      "additionalProperties": false,
      "properties": {
        "resource": {
          "$ref": "#/$defs/Resource"
        },
        "id": {
          "$ref": "#/$defs/Id"
        },
        "parentId": {
          "$ref": "#/$defs/NullableId",
          "description": "The product of a variant match (Variant.parentId); null when the match is a product."
        }
      },
      "description": "A match of product.search, variant.search or optionValue.search: parentId is the product of a variant or option value match and null for a product match."
    },
    "ProductSearchResult": {
      "type": "object",
      "required": [
        "input",
        "matches"
      ],
      "additionalProperties": false,
      "properties": {
        "input": {
          "type": "object",
          "required": [
            "type",
            "value"
          ],
          "properties": {
            "type": {
              "type": "string"
            },
            "value": {
              "type": "string"
            }
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductSearchMatch"
          },
          "description": "Every match, in the adapter's stable id order. Never one picked out of several."
        }
      }
    },
    "ListParams": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "description": "Opaque; the nextCursor of the previous page. Omit for the first page."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        },
        "updatedSince": {
          "$ref": "#/$defs/UtcDateTime",
          "description": "Only items with updatedAt >= this. A product's updatedAt covers its variants and stock too, sales included (Product.updatedAt). A change written past the platform and the module, such as another extension's direct SQL, is caught only by a full pass without updatedSince, the reliable rebuild."
        }
      },
      "description": "Paging of every <resource>.list. product.list adds include (ProductListParams); any other list refuses include as an unknown field (invalid_params, rules.envelope)."
    },
    "UndatedListParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "ListParams without updatedSince, for resources that carry no updatedAt: manufacturer.list, customerGroup.list and orderStatus.list.",
      "properties": {
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "description": "Opaque; the nextCursor of the previous page. Omit for the first page."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "ProductListParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "ListParams plus include: product.list only.",
      "properties": {
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "description": "Opaque; the nextCursor of the previous page. Omit for the first page."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        },
        "updatedSince": {
          "$ref": "#/$defs/UtcDateTime",
          "description": "Only items with updatedAt >= this. A product's updatedAt covers its variants and stock too, sales included (Product.updatedAt). A change written past the platform and the module, such as another extension's direct SQL, is caught only by a full pass without updatedSince, the reliable rebuild."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "variants",
              "options"
            ]
          },
          "description": "Needs variant.read; otherwise capability_unavailable. options (accepted 11 November 2026, STOR-138) adds Product.optionValues and needs optionValue.read; otherwise capability_unavailable."
        }
      }
    },
    "CategoryQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR (two storefrontId filters: shown on either). Left out: every category.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "The value is split into words at whitespace (empty words dropped); a category matches when its name contains every word, in any order, case-insensitively. % _ and * are literal (rules.matching): a module that builds SQL LIKE escapes them.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Enabled or disabled.",
                "properties": {
                  "type": {
                    "const": "status"
                  },
                  "value": {
                    "type": "string",
                    "enum": [
                      "enabled",
                      "disabled"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Direct children of this category; null for top-level categories only.",
                "properties": {
                  "type": {
                    "const": "parentId"
                  },
                  "value": {
                    "$ref": "#/$defs/NullableId"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Shown on this storefront.",
                "properties": {
                  "type": {
                    "const": "storefrontId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "createdAt within the range, both ends inclusive: from <= createdAt <= to. Either end may be left out, not both. Two createdAt filters match either range.",
                "properties": {
                  "type": {
                    "const": "createdAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "updatedAt within the range, both ends inclusive: from <= updatedAt <= to. Either end may be left out, not both. Two updatedAt filters match either range.",
                "properties": {
                  "type": {
                    "const": "updatedAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name",
            "status",
            "createdAt",
            "updatedAt"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are always broken by id in the same direction, so the order is total. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts); another value of this list answers capability_unavailable."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest. name orders by the store database's ordering of text in the shop's default admin language, a missing name first in asc; status orders disabled before enabled."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Categories per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "ProductQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR (two categoryId filters: in either category). Left out: every product.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "code equals this, both sides trimmed and case-folded (rules.matching identifiers); % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "code"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "sku equals this, both sides trimmed and case-folded; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "sku"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "mpn equals this, both sides trimmed and case-folded; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "mpn"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Enabled or disabled.",
                "properties": {
                  "type": {
                    "const": "status"
                  },
                  "value": {
                    "type": "string",
                    "enum": [
                      "enabled",
                      "disabled"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "stock.quantity within the range, both ends inclusive: min <= quantity <= max; either end may be left out, not both. A product whose quantity is null never matches.",
                "properties": {
                  "type": {
                    "const": "quantity"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "min": {
                        "type": "integer"
                      },
                      "max": {
                        "type": "integer"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "The base price.amount within the range, both ends inclusive, in the store currency; either end may be left out, not both. Price rules are not applied. A product whose price is null never matches.",
                "properties": {
                  "type": {
                    "const": "price"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "min": {
                        "$ref": "#/$defs/MoneyInput"
                      },
                      "max": {
                        "$ref": "#/$defs/MoneyInput"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Offered on this storefront.",
                "properties": {
                  "type": {
                    "const": "storefrontId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "In this category, as the platform stores it (categoryIds); products of its subcategories are not included.",
                "properties": {
                  "type": {
                    "const": "categoryId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "In this category or any category under it, at any depth, whatever their status (accepted 23 November 2026, Yevhen Kariakin). A product in several of them counts once in items and itemCount. A module declares it in the query capability's filters only when it can answer it in one query in the shop's database (OpenCart: category_path); otherwise Store Deputy finds the subcategories itself.",
                "properties": {
                  "type": {
                    "const": "categorySubtreeId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Of this manufacturer; null for products without one.",
                "properties": {
                  "type": {
                    "const": "manufacturerId"
                  },
                  "value": {
                    "$ref": "#/$defs/NullableId"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "createdAt within the range, both ends inclusive: from <= createdAt <= to; either end may be left out, not both.",
                "properties": {
                  "type": {
                    "const": "createdAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "updatedAt within the range, both ends inclusive: from <= updatedAt <= to; either end may be left out, not both.",
                "properties": {
                  "type": {
                    "const": "updatedAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "code",
            "sku",
            "mpn",
            "name",
            "status",
            "quantity",
            "price",
            "rating",
            "popularity",
            "manufacturer",
            "createdAt",
            "updatedAt"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are always broken by id in the same direction, so the order is total. quantity is stock.quantity, price the base price.amount, rating the optional Product.rating, manufacturer the manufacturer's name (not its id; OpenCart: manufacturer.name), products without a manufacturer first in asc and last in desc. popularity: the most popular first in desc, as the platform measures it (OpenCart 3: product.viewed, how many times the product page was opened); no value of it is in the result, and a module whose platform keeps no such measure does not declare this sort. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts); another value of this list answers capability_unavailable."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest. A null value (no code, no quantity, no manufacturer…) comes first in asc and last in desc. Text orders by the store database's ordering of text; status orders disabled before enabled."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Products per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "variants",
              "options"
            ]
          },
          "description": "Needs variant.read; otherwise capability_unavailable. options (accepted 11 November 2026, STOR-138) adds Product.optionValues and needs optionValue.read; otherwise capability_unavailable."
        }
      }
    },
    "ManufacturerQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Several name filters combine with OR. Left out: every manufacturer.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are broken by id in the same direction. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; name orders by the store database's ordering of text."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Manufacturers per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "CustomerGroupQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Several name filters combine with OR. Left out: every customer group.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are broken by id in the same direction. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; name orders by the store database's ordering of text."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Customer groups per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "OrderStatusQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Several name filters combine with OR. Left out: every order status.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are broken by id in the same direction. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; name orders by the store database's ordering of text."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Order statuses per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "CustomerQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR. Left out: every customer.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word in the full name, firstName and lastName joined by a space (OpenCart: CONCAT(firstname, ' ', lastname)): it contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "email contains this text, case-insensitively (a fragment such as @example.com); % _ and * literal. For one exact address use customer.search.",
                "properties": {
                  "type": {
                    "const": "email"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 254
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Digits only on both sides: the telephone's digits contain the value's digits (1234567 matches +49 30 1234567). A value without digits answers invalid_params. A customer without a telephone never matches.",
                "properties": {
                  "type": {
                    "const": "telephone"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "In this customer group; null for customers without one.",
                "properties": {
                  "type": {
                    "const": "customerGroupId"
                  },
                  "value": {
                    "$ref": "#/$defs/NullableId"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Enabled or disabled.",
                "properties": {
                  "type": {
                    "const": "status"
                  },
                  "value": {
                    "type": "string",
                    "enum": [
                      "enabled",
                      "disabled"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "createdAt within the range, both ends inclusive; either end may be left out, not both. A null createdAt never matches.",
                "properties": {
                  "type": {
                    "const": "createdAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "updatedAt within the range, both ends inclusive; either end may be left out, not both. A null updatedAt never matches; a module whose platform keeps no customer modification time (OpenCart) does not declare it.",
                "properties": {
                  "type": {
                    "const": "updatedAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name",
            "email",
            "telephone",
            "customerGroup",
            "status",
            "createdAt",
            "updatedAt"
          ],
          "description": "Left out: by id, ascending. Ties are broken by id in the same direction. name sorts by the full name (firstName, a space, lastName); customerGroup by the group's name in the shop's default admin language, not by its id (OpenCart: customer_group_description.name for config_language_id); telephone as the shop stores it. A null value comes first in asc and last in desc. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; text orders by the store database's ordering of text; status orders disabled before enabled."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Customers per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "OrderQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page. Without an orderStatusId filter, abandoned orders (checkouts the buyer never completed; OpenCart: order_status_id 0, the missing orders) are left out. An orderStatusId filter with the value \"0\" (the string, not null) returns them; with other statuses beside it, either.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR (two orderStatusId filters: in either status). Left out: every order.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word in the buyer's full name as the order stores it, customerFirstName and customerLastName joined by a space (OpenCart: CONCAT(o.firstname, ' ', o.lastname)): it contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "customerName"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "customerEmail contains this text, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "customerEmail"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 254
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Digits only on both sides: the order's telephone digits contain the value's digits. A value without digits answers invalid_params; an order without a telephone never matches.",
                "properties": {
                  "type": {
                    "const": "customerTelephone"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "In this order status (Order.status.id, orderStatus.id). \"0\" means abandoned orders, which are left out unless asked for this way; it is a string, never null.",
                "properties": {
                  "type": {
                    "const": "orderStatusId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "total as the order stores it, unconverted (the same value Order.total carries, not × currencyRate), both ends inclusive; either end may be left out, not both.",
                "properties": {
                  "type": {
                    "const": "total"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "min": {
                        "$ref": "#/$defs/MoneyInput"
                      },
                      "max": {
                        "$ref": "#/$defs/MoneyInput"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "createdAt within the range, both ends inclusive; either end may be left out, not both.",
                "properties": {
                  "type": {
                    "const": "createdAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "updatedAt within the range, both ends inclusive; either end may be left out, not both.",
                "properties": {
                  "type": {
                    "const": "updatedAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "id",
            "number",
            "customerName",
            "orderStatus",
            "total",
            "createdAt",
            "updatedAt"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are broken by id in the same direction. number sorts as the platform's numbers (OpenCart: equal to id); customerName by the full name as the order stores it; orderStatus by the status's name in the shop's default admin language, not by its id; total by the stored, unconverted value. A null value comes first in asc and last in desc. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Orders per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "CouponQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR. Left out: every coupon.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "code equals this, both sides trimmed and case-folded (rules.matching identifiers); % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "code"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Enabled or disabled.",
                "properties": {
                  "type": {
                    "const": "status"
                  },
                  "value": {
                    "type": "string",
                    "enum": [
                      "enabled",
                      "disabled"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "discount.kind is this.",
                "properties": {
                  "type": {
                    "const": "kind"
                  },
                  "value": {
                    "type": "string",
                    "enum": [
                      "percent",
                      "fixed_order",
                      "fixed_item",
                      "other"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "discount.freeShipping is this.",
                "properties": {
                  "type": {
                    "const": "freeShipping"
                  },
                  "value": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "The coupon applies at this moment: startsAt is null or not after it, and endsAt is null or after it. status is a separate filter: a disabled coupon in its period matches.",
                "properties": {
                  "type": {
                    "const": "activeAt"
                  },
                  "value": {
                    "$ref": "#/$defs/UtcDateTime"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "startsAt within the range, both ends inclusive; either end may be left out, not both. A coupon without a start (null startsAt) never matches.",
                "properties": {
                  "type": {
                    "const": "startsAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "endsAt within the range, both ends inclusive; either end may be left out, not both. A coupon without an end (null endsAt) never matches: coupons expiring this week are endsAt { from: now, to: now + 7 days }.",
                "properties": {
                  "type": {
                    "const": "endsAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "createdAt within the range, both ends inclusive; either end may be left out, not both. A null createdAt never matches.",
                "properties": {
                  "type": {
                    "const": "createdAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name",
            "code",
            "status",
            "startsAt",
            "endsAt",
            "createdAt",
            "used"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are broken by id in the same direction. used is usage.used. A null value comes first in asc and last in desc; status orders disabled before enabled. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; text orders by the store database's ordering of text."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Coupons per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "ApplyOutcome": {
      "type": "string",
      "enum": [
        "applied",
        "conflict",
        "not_found",
        "rejected",
        "failed"
      ]
    },
    "ApplyReason": {
      "type": "string",
      "enum": [
        "invalid_item",
        "expected_equals_set",
        "variant_required",
        "field_not_writable",
        "read_back_mismatch",
        "database_error",
        "unknown_language",
        "unknown_reference",
        "duplicate",
        "image_checksum_mismatch",
        "image_type_invalid",
        "image_too_large",
        "image_download_failed"
      ],
      "description": "unknown_language — accepted 11 November 2026 (STOR-98): a language code in set or expected that is not in the manifest's languages (a language the shop has disabled is not listed). invalid_item also covers a text longer than the platform stores and a new language row without a name. unknown_reference and duplicate (accepted 9 November 2026, decision 008): unknown_reference — an id or unit the shop does not have (categoryIds, manufacturerId, taxClassId, customerGroupId, productIds, a weight or length unit; the item's `field` names it); duplicate — a unique value is taken (a SEO keyword in its storefront and language, a coupon code, a customer's email; `conflictingId` names the holder where the module knows it). Both are `rejected`: nothing is written. Images (promoted 20 November 2026, decision 009, STOR-128): rejected, nothing saved or assigned: image_checksum_mismatch (the downloaded bytes are not the size or SHA-256 the request named), image_type_invalid (not jpeg, png, gif or webp by the first bytes and a successful header read, not a type the module offers (limits.imageMediaTypes), or another type than mediaType), image_too_large (more bytes than limits.maxImageBytes, or the header's dimensions above 10000 pixels a side or 25 megapixels), and the existing unknown_reference (a { path } that is not a picture file inside the shop's image folder; `field` names it) and invalid_item (a path twice in images, a { path } the product does not hold in images). failed, nothing assigned, retryable by sending the item again with a fresh link: image_download_failed (network error, time-out, a status other than 200, a redirect, an expired or used-up link, an empty body or one longer than size). database_error also covers a file under the module's name that holds other bytes, and a folder the module cannot write."
    },
    "Event": {
      "type": "string",
      "enum": [
        "fired",
        "skipped",
        "failed"
      ],
      "description": "applied — whether the platform's saved notification was triggered for listening extensions."
    },
    "ProductFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "properties": {
        "price": {
          "$ref": "#/$defs/MoneyInput",
          "description": "The base price, in the product's currency and tax mode."
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "stock": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "quantity"
          ],
          "properties": {
            "quantity": {
              "type": "integer"
            }
          }
        },
        "storefrontIds": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/Id"
          }
        },
        "texts": {
          "type": "object",
          "minProperties": 1,
          "propertyNames": {
            "$ref": "#/$defs/LanguageCode"
          },
          "additionalProperties": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "minProperties": 1,
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaTitle": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaDescription": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaKeywords": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "description": "A partial ProductText (module#/$defs/ProductText): the fields to compare or write, at least one. In `set` every value is a string (clearing a text is the empty string); a null is only for `expected`, where it records a field the platform does not keep, and a `set` of such a field is rejected with field_not_writable. A module that receives null in `set` answers invalid_params."
              },
              {
                "type": "null"
              }
            ]
          },
          "description": "Accepted 11 November 2026 (STOR-98; implemented by the OpenCart 3 and 4 modules and the API). Product texts per language, keyed by the manifest's language codes; needs the capability product.write.texts. In `expected`, an entry is the partial ProductText as read, or null meaning \"the product has no row for this language yet\"; in `set`, an entry is never null. Compare-and-set per language and per field. If any compared value differs, the item is a conflict and nothing is written for it, texts or other fields. Setting a language the product has no row for creates the row and needs `name` in that entry (otherwise rejected, invalid_item); fields not named stay empty strings. A code not in the manifest's languages: rejected, unknown_language. A value longer than the platform stores: rejected, invalid_item, never truncated. `before` and `after` carry exactly the written languages and fields. HTML safety is the API's duty, not the module's (rules.texts)."
        },
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "description": "OpenCart: model, which the platform requires and limits to 64 characters (from the platform's admin form validation, not measured here)."
        },
        "sku": {
          "type": "string",
          "maxLength": 64,
          "description": "In expected, the empty string matches a product without one, which reads as null (proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted). In set, the empty string clears it. Trimmed; never truncated: a longer value is rejected / invalid_item."
        },
        "mpn": {
          "type": "string",
          "maxLength": 64,
          "description": "In expected, the empty string matches a product without one, which reads as null (proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted). In set, the empty string clears it. Trimmed; never truncated: a longer value is rejected / invalid_item."
        },
        "gtin": {
          "oneOf": [
            {
              "$ref": "#/$defs/Gtin"
            },
            {
              "type": "null"
            }
          ],
          "description": "The primary barcode (proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted, answering decision 008's open question): the module replaces the primary barcode where it is (OpenCart: the first non-empty of ean, upc, jan, isbn) and leaves the other barcodes alone; it moves the value only when it does not fit that column (OpenCart: 13 or more digits into upc, anything but 13 digits into jan), then to upc for 12 digits and to ean otherwise. A product without a barcode gets 12 digits in upc and the others in ean. null in set clears every barcode of the product (gtins becomes []). expected compares with the primary barcode after Protocol 1's normalization; null there means the product has no barcode."
        },
        "manufacturerId": {
          "$ref": "#/$defs/NullableId",
          "description": "Null removes the manufacturer. An id the shop does not have is rejected / unknown_reference."
        },
        "categoryIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "The full set; compared and written as a set. An id the shop does not have is rejected / unknown_reference."
        },
        "weight": {
          "oneOf": [
            {
              "$ref": "#/$defs/Weight"
            },
            {
              "type": "null"
            }
          ]
        },
        "dimensions": {
          "oneOf": [
            {
              "$ref": "#/$defs/Dimensions"
            },
            {
              "type": "null"
            }
          ]
        },
        "taxClassId": {
          "$ref": "#/$defs/NullableId",
          "description": "One of the manifest's store.taxClasses (proposed); null for none."
        },
        "minQuantity": {
          "type": "integer",
          "minimum": 1,
          "description": "In expected, 1 also matches a product that sets no minimum (OpenCart minimum 0, read as null), because the platform treats both alike (proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted). Writing 1 removes a minimum."
        },
        "availableAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "A date, expressed as 00:00 of a shop day converted to UTC, as the neutral Product reads it; any other time of day is rejected / invalid_item. OpenCart: date_available."
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords",
          "description": "Rules proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted: see #/rules/seoKeywords."
        },
        "specials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Special"
          },
          "description": "The full list, replaced as a whole and compared as a whole (order-insensitive)."
        },
        "discounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Discount"
          },
          "description": "As specials."
        },
        "sortOrder": {
          "type": "integer",
          "description": "The product's position in the platform's lists (OpenCart: sort_order), read with include [\"details\"] (proposed 14 November 2026 by Artem Belikov (STOR-124); not accepted)."
        },
        "image": {
          "oneOf": [
            {
              "$ref": "#/$defs/ImageSource"
            },
            {
              "type": "null"
            }
          ],
          "description": "Promoted 20 November 2026 (decision 009, STOR-128); needs the capability product.write.image. In `expected`: { path } or null (no main image). In `set`: an ImageSource, or null to remove the main image; removing only detaches it, the file stays. Compare-and-set on the path; the module compares before it downloads anything, so a conflict never fetches a file."
        },
        "images": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ImageSource"
          },
          "description": "Promoted 20 November 2026 (decision 009, STOR-128); needs the capability product.write.images. The additional images, the WHOLE list in display order. In `expected`: [{ path }] as read. In `set`: [ImageSource]: a { path } keeps an image the product holds (at a new place if the order changed), an { upload } adds a new file; a path of the current list that `set` omits is removed from the product and its file stays. A path twice, or a { path } the product does not hold, is rejected with invalid_item. An empty list removes every additional image."
        }
      }
    },
    "ProductFieldsRead": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "price": {
          "$ref": "#/$defs/Money"
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "stock": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "quantity"
          ],
          "properties": {
            "quantity": {
              "type": [
                "integer",
                "null"
              ]
            }
          }
        },
        "storefrontIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        },
        "texts": {
          "type": "object",
          "propertyNames": {
            "$ref": "#/$defs/LanguageCode"
          },
          "additionalProperties": {
            "oneOf": [
              {
                "$ref": "#/$defs/ProductText"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "sku": {
          "type": [
            "string",
            "null"
          ]
        },
        "mpn": {
          "type": [
            "string",
            "null"
          ]
        },
        "gtin": {
          "oneOf": [
            {
              "$ref": "#/$defs/Gtin"
            },
            {
              "type": "null"
            }
          ]
        },
        "manufacturerId": {
          "$ref": "#/$defs/NullableId"
        },
        "categoryIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        },
        "weight": {
          "oneOf": [
            {
              "$ref": "#/$defs/Weight"
            },
            {
              "type": "null"
            }
          ]
        },
        "dimensions": {
          "oneOf": [
            {
              "$ref": "#/$defs/Dimensions"
            },
            {
              "type": "null"
            }
          ]
        },
        "taxClassId": {
          "$ref": "#/$defs/NullableId"
        },
        "minQuantity": {
          "type": [
            "integer",
            "null"
          ]
        },
        "availableAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords"
        },
        "specials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Special"
          }
        },
        "discounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Discount"
          }
        },
        "sortOrder": {
          "type": "integer",
          "description": "The product's position in the platform's lists (OpenCart: sort_order), read with include [\"details\"] (proposed 14 November 2026 by Artem Belikov (STOR-124); not accepted)."
        },
        "image": {
          "oneOf": [
            {
              "$ref": "#/$defs/ImageRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "images": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ImageRef"
          }
        }
      }
    },
    "VariantFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "properties": {
        "price": {
          "$ref": "#/$defs/MoneyInput"
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "stock": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "quantity"
          ],
          "properties": {
            "quantity": {
              "type": "integer"
            }
          }
        }
      }
    },
    "VariantFieldsRead": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "price": {
          "$ref": "#/$defs/Money"
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "stock": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "quantity"
          ],
          "properties": {
            "quantity": {
              "type": [
                "integer",
                "null"
              ]
            }
          }
        }
      }
    },
    "CategoryFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "properties": {
        "parentId": {
          "$ref": "#/$defs/NullableId",
          "description": "Null moves the category to the top level."
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "texts": {
          "type": "object",
          "minProperties": 1,
          "propertyNames": {
            "$ref": "#/$defs/LanguageCode"
          },
          "additionalProperties": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "minProperties": 1,
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaTitle": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaDescription": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaKeywords": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords"
        },
        "sortOrder": {
          "type": "integer"
        },
        "image": {
          "oneOf": [
            {
              "$ref": "#/$defs/ImageSource"
            },
            {
              "type": "null"
            }
          ],
          "description": "Promoted 20 November 2026 (decision 009, STOR-128); needs the capability category.write.image. As Product image: { path } or null in `expected`; an ImageSource or null (remove; the file stays) in `set`."
        }
      }
    },
    "OrderFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "properties": {
        "status": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "id"
          ],
          "properties": {
            "id": {
              "$ref": "#/$defs/Id",
              "description": "The status's id as read (orderStatus.id); the API never invents one."
            }
          }
        },
        "history": {
          "type": "object",
          "additionalProperties": false,
          "description": "In `expected`: { lastEntryId } (null for an order with no entries). In `set`: { comment, notify }. The entry is added under the order's current status; changing the status is order.write.status. notify true makes the platform email the customer, so the API shows it on the approval card.",
          "properties": {
            "lastEntryId": {
              "$ref": "#/$defs/NullableId"
            },
            "comment": {
              "type": "string",
              "minLength": 1,
              "maxLength": 65535
            },
            "notify": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "CouponFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "description": "Proposed 14 November 2026 by Artem Belikov (STOR-124); not accepted. discount.value of a percent coupon is at most 100.0000, else rejected / invalid_item (the platform does not check it). minimumTotal 0.0000 is no minimum and reads null. startsAt and endsAt are days: 00:00 of a day in the shop's time (manifest store.timezone), else rejected / invalid_item; OpenCart keeps only the date, the coupon applies from 00:00 of startsAt until 00:00 of endsAt, and null is no bound. endsAt must be after startsAt, as the coupon would be after set. A product or category id the shop does not have is rejected / unknown_reference with the field.",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "code": {
          "type": "string",
          "minLength": 3,
          "maxLength": 20,
          "description": "Unique in the shop, else rejected / duplicate with field code. OpenCart limits it to 3 to 20 characters (from the platform's admin form validation, not measured here)."
        },
        "name": {
          "type": "string",
          "minLength": 3,
          "maxLength": 128
        },
        "discount": {
          "type": "object",
          "additionalProperties": false,
          "minProperties": 1,
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "percent",
                "fixed_order"
              ],
              "description": "The two kinds OpenCart has (P and F). fixed_item and other are read-only."
            },
            "value": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]{0,10})\\.[0-9]{4}$"
            },
            "minimumTotal": {
              "$ref": "#/$defs/NullableMoney"
            },
            "freeShipping": {
              "type": "boolean"
            }
          }
        },
        "usage": {
          "type": "object",
          "additionalProperties": false,
          "minProperties": 1,
          "properties": {
            "limitTotal": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 1
            },
            "limitPerCustomer": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 1
            }
          },
          "description": "`used` is read-only."
        },
        "startsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "endsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "productIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Products the coupon is limited to; empty for none. Unknown id: rejected / unknown_reference."
        },
        "categoryIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Categories the coupon is limited to; empty for none."
        },
        "loggedInOnly": {
          "type": "boolean",
          "description": "OpenCart: logged."
        }
      }
    },
    "ApplyItemResult": {
      "type": "object",
      "required": [
        "id",
        "outcome"
      ],
      "additionalProperties": false,
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "outcome": {
          "$ref": "#/$defs/ApplyOutcome"
        },
        "before": {
          "type": "object",
          "description": "applied — the written fields as they were (equal expected)."
        },
        "after": {
          "type": "object",
          "description": "applied — the written fields read back; failed (read_back_mismatch) — what was read instead."
        },
        "current": {
          "type": "object",
          "description": "conflict — the compared fields as found instead of expected: every field named in expected, and for texts every compared language and field (a language without a row is null)."
        },
        "reason": {
          "$ref": "#/$defs/ApplyReason"
        },
        "event": {
          "$ref": "#/$defs/Event"
        },
        "field": {
          "type": "string",
          "description": "rejected (unknown_reference, duplicate, field_not_writable, invalid_item): the field of `set` the reason is about."
        },
        "conflictingId": {
          "$ref": "#/$defs/Id",
          "description": "rejected / duplicate: the record that holds the value, where the module knows it."
        }
      }
    },
    "Category": {
      "type": "object",
      "required": [
        "id",
        "name",
        "parentId",
        "status",
        "storefrontIds",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the shop's default admin language; null when missing."
        },
        "parentId": {
          "$ref": "#/$defs/NullableId"
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "storefrontIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "When the category was created (OpenCart: date_added), converted to UTC. Null when the platform keeps no creation time for categories (WooCommerce product_cat terms)."
        },
        "updatedAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "The latest change to the category, in UTC. Null when the platform keeps no modification time for categories (WooCommerce product_cat terms); such a category is never returned by list with updatedSince."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        },
        "texts": {
          "type": "object",
          "propertyNames": {
            "$ref": "#/$defs/LanguageCode"
          },
          "additionalProperties": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaTitle": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaDescription": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaKeywords": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "description": "Present only for include [\"texts\"]; every manifest language is a key, null for a language the category has no row for. Covered by category.read."
        },
        "sortOrder": {
          "type": "integer",
          "description": "Present only for include [\"details\"]."
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords",
          "description": "Present only for include [\"details\"]."
        },
        "image": {
          "oneOf": [
            {
              "$ref": "#/$defs/Image"
            },
            {
              "type": "null"
            }
          ],
          "description": "Present only for include [\"images\"]: the category's image, or null. Covered by category.read."
        }
      }
    },
    "Manufacturer": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "name": {
          "type": "string"
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        },
        "sortOrder": {
          "type": "integer",
          "description": "Present only for include [\"details\"]."
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords",
          "description": "Present only for include [\"details\"]."
        }
      },
      "description": "A manufacturer or brand: its id and name. No dates: most platforms keep none for manufacturers (OpenCart, WooCommerce, Magento, Shopify), so the contract carries none (16 October 2026)."
    },
    "OrderStatus": {
      "type": "object",
      "required": [
        "id",
        "kind"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "The status's id, the same as orderStatus.id (OpenCart: order_status_id; WooCommerce, Magento: the status code)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The platform's display name for it; null when it has none (an abandoned order: OpenCart keeps no name for status 0)."
        },
        "kind": {
          "type": "string",
          "enum": [
            "pending",
            "processing",
            "completed",
            "cancelled",
            "refunded",
            "abandoned",
            "other"
          ],
          "description": "The neutral meaning the adapter assigns; the API shows code and name and reasons on kind. abandoned: a checkout the buyer never completed (OpenCart: order_status_id 0; WooCommerce: checkout-draft)."
        },
        "texts": {
          "$ref": "#/$defs/NameTexts",
          "description": "The order status's name in every language of the manifest, accepted 11 November 2026 (STOR-98, with the product texts; implemented by the OpenCart 3 and 4 modules); only with include: [\"texts\"]."
        }
      }
    },
    "OrderLine": {
      "type": "object",
      "required": [
        "productId",
        "variantId",
        "code",
        "name",
        "quantity",
        "unitPrice",
        "total"
      ],
      "properties": {
        "productId": {
          "$ref": "#/$defs/NullableId",
          "description": "Null when the product was deleted since."
        },
        "variantId": {
          "$ref": "#/$defs/NullableId"
        },
        "code": {
          "$ref": "#/$defs/Identifier",
          "description": "The product's own code as the order recorded it when placed (OpenCart: order_product.model); it does not follow later changes to the product. Null when empty."
        },
        "sku": {
          "$ref": "#/$defs/Identifier",
          "description": "The SKU, when the platform records it in the order. OpenCart does not (order_product has no sku): its module leaves sku out rather than reading today's value from the product."
        },
        "name": {
          "type": "string"
        },
        "quantity": {
          "type": "integer"
        },
        "unitPrice": {
          "$ref": "#/$defs/Money",
          "description": "As the order stores it, unconverted (OpenCart: order_product.price); × the order's currencyRate gives it in the order's currency."
        },
        "total": {
          "$ref": "#/$defs/Money",
          "description": "As the order stores it, unconverted (OpenCart: order_product.total); × the order's currencyRate gives it in the order's currency."
        }
      }
    },
    "OrderTotalLine": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "kind",
        "code",
        "title",
        "value"
      ],
      "description": "One line of the order's total block, in the shop's order (OpenCart: an order_total row, by sort_order). Platforms with fixed fields (WooCommerce, Magento, PrestaShop, Shopify) give one line per field.",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "subtotal",
            "shipping",
            "tax",
            "discount",
            "fee",
            "total",
            "other"
          ],
          "description": "The neutral meaning the adapter assigns; the API reasons on it, shows code and title. OpenCart: sub_total → subtotal, shipping → shipping, tax → tax, coupon, voucher and reward → discount, handling and low_order_fee → fee, total → total, anything else (credit, an extension's own line) → other."
        },
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "description": "The platform's own code for the line (OpenCart: order_total.code, the total extension)."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The text the buyer saw, as the order stores it (OpenCart: order_total.title); null when empty."
        },
        "value": {
          "$ref": "#/$defs/Money",
          "description": "As the order stores it, unconverted and signed (a discount is negative in OpenCart); × the order's currencyRate gives it in the order's currency."
        }
      }
    },
    "OrderMethod": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "code",
        "name"
      ],
      "description": "How an order is paid or shipped: the platform's code and the name the buyer saw. One per order; a platform with several shipping lines (WooCommerce, Shopify) gives the main one.",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "The platform's own code (OpenCart: payment_code or shipping_code such as flat.flat; 4.0.2 and later: code in the JSON of payment_method or shipping_method)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name the buyer saw, as the order stores it (OpenCart 3 and 4.0.0.0: the payment_method or shipping_method column; 4.0.2 and later: name in its JSON); null when empty."
        }
      }
    },
    "Order": {
      "type": "object",
      "required": [
        "id",
        "number",
        "status",
        "currency",
        "total",
        "currencyRate",
        "lines",
        "totalLines",
        "paymentMethod",
        "shippingMethod",
        "customerId",
        "customerGroupId",
        "customerFirstName",
        "customerLastName",
        "customerEmail",
        "customerTelephone",
        "storefrontId",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "number": {
          "type": "string",
          "description": "The number the shop shows people; equals id on OpenCart."
        },
        "status": {
          "$ref": "#/$defs/OrderStatus"
        },
        "currency": {
          "$ref": "#/$defs/Currency",
          "description": "The order's currency as the order stores it (OpenCart: order.currency_code), the one the buyer chose."
        },
        "total": {
          "$ref": "#/$defs/Money",
          "description": "The grand total as the order stores it, unconverted (OpenCart: order.total, kept in the shop's default currency). The amount in currency is total × currencyRate; the same holds for every line's unitPrice and total."
        },
        "currencyRate": {
          "type": "string",
          "pattern": "^(0|[1-9][0-9]{0,10})(\\.[0-9]{1,8})?$",
          "description": "The rate stored with the order (OpenCart: order.currency_value), a decimal string; 1 when the order's currency is the shop's default. The amount in currency is total × currencyRate; the same holds for every line's unitPrice and total. The module never converts: it returns total, currency and currencyRate as the order stores them."
        },
        "lines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderLine"
          }
        },
        "totalLines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderTotalLine"
          },
          "description": "The breakdown of total in the shop's order: subtotal, shipping, taxes, discounts, fees and the total itself. Empty when the platform keeps none."
        },
        "paymentMethod": {
          "oneOf": [
            {
              "$ref": "#/$defs/OrderMethod"
            },
            {
              "type": "null"
            }
          ],
          "description": "How the order is paid; null when the order records none."
        },
        "shippingMethod": {
          "oneOf": [
            {
              "$ref": "#/$defs/OrderMethod"
            },
            {
              "type": "null"
            }
          ],
          "description": "How the order is shipped; null when it needs no shipping (OpenCart: shipping_code empty) or records none."
        },
        "customerId": {
          "$ref": "#/$defs/NullableId",
          "description": "The buyer's customer account (OpenCart: order.customer_id); null for a guest order (customer_id 0)."
        },
        "customerGroupId": {
          "$ref": "#/$defs/NullableId",
          "description": "The buyer's customer group when the order was placed (OpenCart: order.customer_group_id); null on a platform without groups."
        },
        "customerFirstName": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the order stores it (OpenCart: order.firstname); null when empty."
        },
        "customerLastName": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the order stores it (OpenCart: order.lastname); null when empty."
        },
        "customerEmail": {
          "type": [
            "string",
            "null"
          ],
          "description": "The buyer's email as the order stores it (OpenCart: order.email), for the owner's eyes; never sent to the model as an instruction."
        },
        "customerTelephone": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the order stores it (OpenCart: order.telephone), trimmed; null when empty."
        },
        "customerComment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted. The buyer's own words: the note typed at checkout (OpenCart: order.comment), as the order stores it, trimmed; null when empty. Read only, and never the team's or the system's notes, which are history[].comment. It is untrusted text written by a stranger: rules.customerMessages. Optional: a module that does not carry it (an older one) leaves it out, and a key that is absent is not the same as null. At most 65535 characters."
        },
        "storefrontId": {
          "$ref": "#/$defs/Id",
          "description": "The storefront the order was placed on, one of store.storefronts (OpenCart: order.store_id, 0 for the default store)."
        },
        "createdAt": {
          "$ref": "#/$defs/UtcDateTime",
          "description": "When the order was placed (OpenCart: date_added), converted to UTC."
        },
        "updatedAt": {
          "$ref": "#/$defs/UtcDateTime"
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        },
        "history": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderHistoryEntry"
          },
          "description": "Present only for include [\"history\"]: newest first, at most the manifest's maxPageSize entries. The guard of order.write.history is the first entry's id."
        }
      }
    },
    "Customer": {
      "type": "object",
      "required": [
        "id",
        "email",
        "telephone",
        "firstName",
        "lastName",
        "status",
        "customerGroupId",
        "addressIds",
        "defaultAddressId",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "email": {
          "type": "string"
        },
        "telephone": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the shop stores it, trimmed; null when empty. Identifies the customer like email (customer.search by telephone)."
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "customerGroupId": {
          "$ref": "#/$defs/NullableId",
          "description": "The customer's group (OpenCart: customer_group_id); null on a platform without customer groups."
        },
        "addressIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Every address in the customer's address book, ascending. Only ids: the addresses themselves come from customerAddress.get, which the shop owner must allow."
        },
        "defaultAddressId": {
          "$ref": "#/$defs/NullableId",
          "description": "The default address, one of addressIds, or null (OpenCart 3: customer.address_id; OpenCart 4: the address with default = 1)."
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "When the customer account was created (OpenCart: date_added), converted to UTC. Null when the platform keeps no creation time for customers."
        },
        "updatedAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "The latest change to the customer, in UTC. Null when the platform keeps no modification time for customers (OpenCart 3 and 4 have no date_modified on customer); such a customer is never returned by list with updatedSince."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      },
      "description": "A customer account: name, email, telephone, status and the ids of its addresses. Addresses come only from customerAddress.get (customerAddress.read, on the owner's permission); passwords, payment data, tokens and IP addresses never cross this interface."
    },
    "Coupon": {
      "type": "object",
      "required": [
        "id",
        "code",
        "name",
        "status",
        "discount",
        "usage",
        "startsAt",
        "endsAt",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "discount": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "kind",
            "value",
            "minimumTotal",
            "freeShipping"
          ],
          "description": "What the coupon takes off, in the part every platform has (OpenCart, WooCommerce, PrestaShop, Magento). Restrictions to products, categories, customers or groups, buy-x-get-y and gifts stay platform data in extensions.",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "percent",
                "fixed_order",
                "fixed_item",
                "other"
              ],
              "description": "percent: a percentage off; fixed_order: an amount off the order (OpenCart F, WooCommerce fixed_cart, PrestaShop reduction_amount, Magento cart_fixed); fixed_item: an amount off each eligible item (WooCommerce fixed_product, Magento by_fixed); other: anything else (Magento buy_x_get_y)."
            },
            "value": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]{0,10})\\.[0-9]{4}$",
              "description": "The size of the discount, 4 decimal places: a percentage for percent (\"10.0000\" is 10 %), otherwise an amount in the store currency (manifest store.currency); 0.0000 for a coupon that only gives free shipping."
            },
            "minimumTotal": {
              "$ref": "#/$defs/NullableMoney",
              "description": "The order total the coupon needs, in the store currency (OpenCart: coupon.total; WooCommerce and PrestaShop: minimum_amount); null when there is none or the platform expresses it only in its rule conditions (Magento)."
            },
            "freeShipping": {
              "type": "boolean",
              "description": "Whether the coupon also makes shipping free."
            }
          }
        },
        "usage": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "limitTotal",
            "limitPerCustomer",
            "used"
          ],
          "properties": {
            "limitTotal": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 1,
              "description": "How many times the coupon may be used in all; null without a limit."
            },
            "limitPerCustomer": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 1,
              "description": "How many times one customer may use it; null without a limit."
            },
            "used": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "How many times it has been used (OpenCart: rows of coupon_history); null when the platform does not count."
            }
          }
        },
        "startsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "endsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "When the coupon was created (OpenCart: coupon.date_added; WooCommerce: the shop_coupon post date; PrestaShop: cart_rule.date_add; Magento: salesrule_coupon.created_at), converted to UTC. Null when the platform keeps no creation time for coupons."
        },
        "updatedAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        },
        "productIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Optional: products the coupon is limited to; empty for none (OpenCart: coupon_product)."
        },
        "categoryIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Optional: categories the coupon is limited to; empty for none (OpenCart: coupon_category)."
        },
        "loggedInOnly": {
          "type": "boolean",
          "description": "Optional: only a signed-in customer may use it (OpenCart: logged)."
        }
      }
    },
    "CustomerAddress": {
      "type": "object",
      "required": [
        "id",
        "customerId",
        "firstName",
        "lastName",
        "company",
        "address1",
        "address2",
        "city",
        "postcode",
        "country",
        "countryCode",
        "zone",
        "zoneCode"
      ],
      "description": "An address from a customer's address book. Only through customerAddress.get, which a module offers only when the shop owner allowed it (rules.addresses).",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "customerId": {
          "$ref": "#/$defs/Id",
          "description": "The customer whose address book holds it."
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "company": {
          "type": [
            "string",
            "null"
          ]
        },
        "address1": {
          "type": [
            "string",
            "null"
          ],
          "description": "First address line (OpenCart: address_1)."
        },
        "address2": {
          "type": [
            "string",
            "null"
          ],
          "description": "Second address line (OpenCart: address_2)."
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "The country's name in the shop's default admin language (OpenCart 3 and 4.0: country.name; 4.1: country_description.name); null when not set. Kept beside countryCode because a shop may define a country without an ISO code."
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[A-Z]{2}$",
          "description": "ISO 3166-1 alpha-2 (OpenCart: country.iso_code_2), the code every major platform keeps (WooCommerce, Shopify and PrestaShop keep only this one); null when the country has none or is not set."
        },
        "zone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Region, state or province by name, in the shop's default admin language (OpenCart 3 and 4.0: zone.name; 4.1: zone_description.name)."
        },
        "zoneCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The region's code as the platform keeps it (OpenCart: zone.code)."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "OrderAddress": {
      "type": "object",
      "required": [
        "id",
        "firstName",
        "lastName",
        "company",
        "address1",
        "address2",
        "city",
        "postcode",
        "country",
        "countryCode",
        "zone",
        "zoneCode"
      ],
      "description": "An address recorded in an order, as the order stores it when placed (OpenCart: the payment_* or shipping_* columns of order). Only through orderPaymentAddress.get or orderShippingAddress.get, which a module offers only when the shop owner allowed it (rules.addresses).",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "The order's id: an order has at most one payment and one shipping address."
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "company": {
          "type": [
            "string",
            "null"
          ]
        },
        "address1": {
          "type": [
            "string",
            "null"
          ],
          "description": "First address line (OpenCart: payment_address_1 / shipping_address_1)."
        },
        "address2": {
          "type": [
            "string",
            "null"
          ],
          "description": "Second address line (OpenCart: payment_address_2 / shipping_address_2)."
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "The country's name as the order stores it (OpenCart: payment_country / shipping_country); null when empty."
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[A-Z]{2}$",
          "description": "ISO 3166-1 alpha-2 of the order's country (OpenCart: country.iso_code_2 of payment_country_id / shipping_country_id); null when the country has none or is not set."
        },
        "zone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Region, state or province by name as the order stores it (OpenCart: payment_zone / shipping_zone)."
        },
        "zoneCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The region's code (OpenCart: zone.code of payment_zone_id / shipping_zone_id); null when not set."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "CustomerGroup": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "description": "A customer group (OpenCart: customer_group, its name from customer_group_description in the default admin language). Only id and name.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the shop's default admin language; null when missing."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        },
        "texts": {
          "$ref": "#/$defs/CustomerGroupTexts",
          "description": "The customer group's name and description in every language of the manifest, accepted 11 November 2026 (STOR-98, with the product texts; implemented by the OpenCart 3 and 4 modules); only with include: [\"texts\"]."
        }
      }
    },
    "OrderStatusEntry": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "description": "An order status the shop defines (OpenCart: order_status, its name in the default admin language). Only id and name; Order.status.id names one of them.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "OpenCart: order_status_id; WooCommerce and Magento: the status code (pending_payment)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the shop's default admin language; null when missing."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontPrice": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "amount",
        "currency",
        "includesTax"
      ],
      "description": "A price as this shopper sees it on the storefront: the special or discount of the shopper's customer group applied, with tax when the shop shows prices with tax, in the currency of the shopper's session. The module computes it as the platform does for that session (OpenCart 3: tax->calculate with the session's addresses, currency->format's rate); Store Deputy never adds tax.",
      "properties": {
        "amount": {
          "$ref": "#/$defs/Money"
        },
        "currency": {
          "$ref": "#/$defs/Currency",
          "description": "The shopper's session currency, not necessarily the store's default."
        },
        "includesTax": {
          "type": "boolean",
          "description": "Whether the shop shows prices with tax (OpenCart: config_tax), and so whether amount includes it."
        }
      }
    },
    "StorefrontAvailability": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "inStock",
        "quantity",
        "status"
      ],
      "description": "Availability as the storefront shows it. The exact stock is the shop's own business unless it shows it.",
      "properties": {
        "inStock": {
          "type": "boolean",
          "description": "Whether it can be bought now in quantity 1 (OpenCart: quantity above 0, or the shop allows checkout without stock)."
        },
        "quantity": {
          "type": [
            "integer",
            "null"
          ],
          "description": "The quantity in stock, only where the shop shows it to shoppers (OpenCart: config_stock_display); null otherwise."
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "The stock status text the storefront shows (OpenCart: stock_status name when out of stock, \"In Stock\" otherwise); null when the platform has none."
        }
      }
    },
    "StorefrontProduct": {
      "type": "object",
      "required": [
        "id",
        "code",
        "sku",
        "gtin",
        "gtins",
        "mpn",
        "name",
        "url",
        "image",
        "variantPricing",
        "categoryIds",
        "manufacturerId",
        "price",
        "regularPrice",
        "tierPrices",
        "availability"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "code": {
          "$ref": "#/$defs/Identifier",
          "description": "The platform's own product code: OpenCart's model. Null when the platform has none."
        },
        "sku": {
          "$ref": "#/$defs/Identifier"
        },
        "gtin": {
          "oneOf": [
            {
              "$ref": "#/$defs/Gtin"
            },
            {
              "type": "null"
            }
          ],
          "description": "The primary barcode: the first of gtins. Null when there is none."
        },
        "gtins": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Gtin"
          },
          "description": "Every distinct normalized barcode of the product, primary first. Empty when none."
        },
        "mpn": {
          "$ref": "#/$defs/Identifier"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the language of the shopper's session, as the storefront shows it, HTML entities decoded; null when missing."
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "The address of the product's page on this storefront as the storefront itself links to it (its search-friendly address where the shop has one, in the language of the shopper's session), absolute, with plain & between query parameters (no HTML entities). For the shopper agent to link the product. Null only when the platform has no page for it. Proposed 18 November 2026."
        },
        "image": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "The product's main picture as the storefront shows it in product lists (its thumbnail size), absolute, with plain & between query parameters. For the shopper agent's product cards. Null when the product has no picture or the file is missing. Proposed 18 November 2026."
        },
        "variantPricing": {
          "type": "string",
          "enum": [
            "none",
            "options",
            "variants"
          ],
          "description": "none — one price; options — options add to or subtract from the base price (OpenCart option prices), there is no per-variant base price and price.apply changes the base price only; variants — each variant has its own price (WooCommerce variable products), read with variants.read and written per variant."
        },
        "categoryIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "The categories this storefront shows that the product is in; a hidden category is left out."
        },
        "manufacturerId": {
          "$ref": "#/$defs/NullableId",
          "description": "The product's manufacturer or brand; null when none. Read-only (decision 006)."
        },
        "rating": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[0-5](\\.[0-9]{1,2})?$",
          "description": "Optional: only from a module whose platform keeps product reviews. The average rating of approved reviews on a 0–5 scale, a decimal string with at most two places (OpenCart: AVG(review.rating) of reviews with status 1); null when the product has no approved review."
        },
        "reviewCount": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "description": "Optional, beside rating: how many approved reviews the product has (OpenCart: COUNT of reviews with status 1)."
        },
        "minQuantity": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "description": "Optional: the smallest quantity a customer may order (OpenCart: minimum); null when the platform sets none for the product."
        },
        "variants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontVariant"
          },
          "description": "Present only when the request asked for include: [\"variants\"] and the module declares variant.read."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions",
          "description": "Platform fields a shopper may have, by platform; OpenCart: extension_schemas.opencart.storefrontProduct in protocol.yaml (the admin product's fields without taxClass)."
        },
        "price": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "What this shopper pays for one, as the storefront shows it. Null only when variantPricing is variants and the parent has no price of its own. Null as well for a guest where the storefront shows prices to signed-in customers only (StorefrontManifest.storefront.pricesForSignedInOnly; OpenCart: config_customer_price)."
        },
        "regularPrice": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "The price without the special, when a special applies to this shopper now; null otherwise. Lets the agent say \"was … , now …\". Null as well for a guest where the storefront shows prices to signed-in customers only."
        },
        "tierPrices": {
          "type": "array",
          "description": "Prices for larger quantities that apply to this shopper's customer group now (OpenCart: product_discount with quantity above 1), lowest quantity first; empty when there are none. Rules of other groups are never shown. Empty as well for a guest where the storefront shows prices to signed-in customers only.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "minQuantity",
              "price"
            ],
            "properties": {
              "minQuantity": {
                "type": "integer",
                "minimum": 2
              },
              "price": {
                "$ref": "#/$defs/StorefrontPrice"
              }
            }
          }
        },
        "availability": {
          "$ref": "#/$defs/StorefrontAvailability"
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontProductOption"
          },
          "description": "Present only when the request asked for include: [\"options\"]; empty when the product has none."
        },
        "subscriptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontProductSubscription"
          },
          "description": "Present only when the request asked for include: [\"subscriptions\"]; empty when the product has none for the shopper's group. When it is not empty, storefront.cart.add needs one (subscription_required)."
        }
      },
      "description": "A product as this shopper sees it on the storefront. Only what this storefront shows its shoppers: enabled, on this storefront, available from now (OpenCart: date_available). A product the storefront does not show is never answered: it is missing."
    },
    "StorefrontVariant": {
      "type": "object",
      "required": [
        "id",
        "parentId",
        "code",
        "sku",
        "gtin",
        "gtins",
        "mpn",
        "attributes",
        "price",
        "regularPrice",
        "tierPrices",
        "availability"
      ],
      "description": "A variant as this shopper sees it. Only what this storefront shows its shoppers: enabled, on this storefront.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "Unique within the shop."
        },
        "parentId": {
          "$ref": "#/$defs/Id"
        },
        "code": {
          "$ref": "#/$defs/Identifier"
        },
        "sku": {
          "$ref": "#/$defs/Identifier"
        },
        "gtin": {
          "oneOf": [
            {
              "$ref": "#/$defs/Gtin"
            },
            {
              "type": "null"
            }
          ]
        },
        "gtins": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Gtin"
          }
        },
        "mpn": {
          "$ref": "#/$defs/Identifier"
        },
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "What makes it a variant, by attribute name: { \"Colour\": \"Red\", \"Size\": \"L\" }. In the language of the shopper's session, as the storefront names the options."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        },
        "price": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "What this shopper pays for one, as the storefront shows it. Null only when variantPricing is variants and the parent has no price of its own. Null as well for a guest where the storefront shows prices to signed-in customers only (StorefrontManifest.storefront.pricesForSignedInOnly; OpenCart: config_customer_price)."
        },
        "regularPrice": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "The price without the special, when a special applies to this shopper now; null otherwise. Lets the agent say \"was … , now …\". Null as well for a guest where the storefront shows prices to signed-in customers only."
        },
        "tierPrices": {
          "type": "array",
          "description": "Prices for larger quantities that apply to this shopper's customer group now (OpenCart: product_discount with quantity above 1), lowest quantity first; empty when there are none. Rules of other groups are never shown. Empty as well for a guest where the storefront shows prices to signed-in customers only.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "minQuantity",
              "price"
            ],
            "properties": {
              "minQuantity": {
                "type": "integer",
                "minimum": 2
              },
              "price": {
                "$ref": "#/$defs/StorefrontPrice"
              }
            }
          }
        },
        "availability": {
          "$ref": "#/$defs/StorefrontAvailability"
        }
      }
    },
    "StorefrontCategory": {
      "type": "object",
      "required": [
        "id",
        "name",
        "url",
        "parentId"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the language of the shopper's session, as the storefront shows it, HTML entities decoded; null when missing."
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "The address of the category's page on this storefront as the storefront itself links to it (its search-friendly address where the shop has one, in the language of the shopper's session), absolute, with plain & between query parameters (no HTML entities). Null only when the platform has no page for it. Proposed 18 November 2026."
        },
        "parentId": {
          "$ref": "#/$defs/NullableId"
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      },
      "description": "A category as this shopper sees it. Only what this storefront shows its shoppers: enabled, on this storefront, and under a parent the storefront shows too. A category the storefront does not show is never answered: it is missing."
    },
    "StorefrontProductQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "Only what this storefront shows its shoppers: enabled, on this storefront; filters narrow that further. filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR (two categoryId filters: in either category). Left out: every product.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "code equals this, both sides trimmed and case-folded (rules.matching identifiers); % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "code"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "sku equals this, both sides trimmed and case-folded; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "sku"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "mpn equals this, both sides trimmed and case-folded; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "mpn"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "The price this shopper sees (StorefrontPrice.amount) within the range, both ends inclusive, in the shopper's currency: the same products the storefront would list for that price. For a guest where the storefront shows prices to signed-in customers only, customer_required: a range would tell the prices it hides.",
                "properties": {
                  "type": {
                    "const": "price"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "min": {
                        "$ref": "#/$defs/MoneyInput"
                      },
                      "max": {
                        "$ref": "#/$defs/MoneyInput"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "In this category, as the platform stores it (categoryIds); products of its subcategories are not included.",
                "properties": {
                  "type": {
                    "const": "categoryId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "In this category or any category under it, at any depth, that this storefront shows: a category the storefront hides (disabled, not on this storefront, or under a hidden one) hides what is under it (accepted 23 November 2026, Yevhen Kariakin). A product in several of them counts once in items and itemCount. Declared in the query capability's filters only by a module that answers it in one query in the shop's database; otherwise Store Deputy finds the subcategories itself.",
                "properties": {
                  "type": {
                    "const": "categorySubtreeId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Of this manufacturer; null for products without one.",
                "properties": {
                  "type": {
                    "const": "manufacturerId"
                  },
                  "value": {
                    "$ref": "#/$defs/NullableId"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "availability.inStock is this.",
                "properties": {
                  "type": {
                    "const": "inStock"
                  },
                  "value": {
                    "type": "boolean"
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "code",
            "sku",
            "mpn",
            "name",
            "price",
            "rating",
            "popularity",
            "manufacturer",
            "createdAt"
          ],
          "description": "Left out: the order the storefront itself uses (OpenCart: sort_order, then name). Ties are broken by id in the same direction. price is the price this shopper sees (StorefrontPrice.amount), as the price filter; rating the optional rating; manufacturer the manufacturer's name; createdAt the newest first in desc. popularity: the most popular first in desc, as the platform measures it (OpenCart 3: product.viewed, how many times the product page was opened); no value of it is in the result, and a module whose platform keeps no such measure does not declare this sort. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest. A null value (no code, no quantity, no manufacturer…) comes first in asc and last in desc. Text orders by the store database's ordering of text; status orders disabled before enabled."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Products per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        },
        "include": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "variants",
              "options",
              "subscriptions"
            ]
          },
          "description": "What each product carries besides its own fields: variants needs storefront.variant.read; options and subscriptions need the product capability of this operation to list them in includes (StorefrontCapabilityDeclaration.includes). Otherwise capability_unavailable with details.include."
        }
      }
    },
    "StorefrontCategoryQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR (two storefrontId filters: shown on either). Left out: every category.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "The value is split into words at whitespace (empty words dropped); a category matches when its name contains every word, in any order, case-insensitively. % _ and * are literal (rules.matching): a module that builds SQL LIKE escapes them.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Direct children of this category; null for top-level categories only.",
                "properties": {
                  "type": {
                    "const": "parentId"
                  },
                  "value": {
                    "$ref": "#/$defs/NullableId"
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name"
          ],
          "description": "Left out: the order the storefront itself uses (OpenCart: sort_order, then name). Ties are broken by id in the same direction. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest. name orders by the store database's ordering of text in the shop's default admin language, a missing name first in asc; status orders disabled before enabled."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Categories per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "StorefrontListParams": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "description": "Opaque; the nextCursor of the previous page. Omit for the first page."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      },
      "description": "Pages through everything only what this storefront shows its shoppers: enabled, on this storefront, in the adapter's stable order. No updatedSince: the storefront is not a source to synchronise from."
    },
    "StorefrontProductListParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "StorefrontListParams plus include: storefront.product.list only.",
      "properties": {
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "description": "Opaque; the nextCursor of the previous page. Omit for the first page."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        },
        "include": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "variants",
              "options",
              "subscriptions"
            ]
          },
          "description": "What each product carries besides its own fields: variants needs storefront.variant.read; options and subscriptions need the product capability of this operation to list them in includes (StorefrontCapabilityDeclaration.includes). Otherwise capability_unavailable with details.include."
        }
      }
    },
    "StorefrontCapabilityDeclaration": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name",
        "version"
      ],
      "description": "One capability this storefront endpoint serves, named as storefront.capabilities declares them. A query capability also lists the sorts and filter types it supports, from its Storefront…QueryParams; another one is refused with capability_unavailable. A product capability also lists the include values it answers (includes).",
      "properties": {
        "name": {
          "type": "string",
          "enum": [
            "storefront.product.read",
            "storefront.product.list",
            "storefront.product.query",
            "storefront.variant.read",
            "storefront.category.read",
            "storefront.category.list",
            "storefront.category.query",
            "storefront.manufacturer.read",
            "storefront.manufacturer.list",
            "storefront.manufacturer.query",
            "storefront.customer.read",
            "storefront.customerGroup.read",
            "storefront.customerGroup.list",
            "storefront.customerGroup.query",
            "storefront.customerAddress.read",
            "storefront.customerOrder.read",
            "storefront.customerOrder.list",
            "storefront.customerOrder.query",
            "storefront.orderStatus.read",
            "storefront.orderStatus.list",
            "storefront.orderStatus.query",
            "storefront.customerOrderPaymentAddress.read",
            "storefront.customerOrderShippingAddress.read",
            "storefront.coupon.read",
            "storefront.coupon.list",
            "storefront.coupon.query",
            "storefront.cart.read",
            "storefront.cart.write",
            "storefront.cart.coupon",
            "storefront.checkout.read",
            "storefront.checkout.write",
            "storefront.checkout.place"
          ]
        },
        "version": {
          "type": "integer",
          "minimum": 1
        },
        "sorts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "includes": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "options",
              "subscriptions"
            ]
          },
          "description": "storefront.product.read, .list and .query only (27 October 2026): the include values besides variants this endpoint answers for that operation. Left out: none."
        }
      }
    },
    "StorefrontManifest": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "protocols",
        "platform",
        "storefront",
        "limits",
        "capabilities",
        "paused"
      ],
      "description": "What a storefront endpoint says about itself, for the storefront serving the request only. The admin side's store.describe describes the whole shop for its team; this one says nothing a storefront has no business with: no other storefronts, no warnings about the admin panel's extensions, no admin language or server versions, no admin-side capability.",
      "properties": {
        "protocols": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Protocol versions the module speaks."
        },
        "platform": {
          "type": "object",
          "required": [
            "name",
            "version",
            "adapter"
          ],
          "description": "Informational. The API shows it and logs it, and never branches on it; capabilities say what the shop can do.",
          "properties": {
            "name": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9]*$",
              "description": "One of `platforms`: opencart, woocommerce, prestashop, magento."
            },
            "version": {
              "type": "string",
              "description": "The platform version as the platform reports it."
            },
            "adapter": {
              "type": "object",
              "required": [
                "name",
                "version"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The module package, e.g. storedeputy-opencart3."
                },
                "version": {
                  "type": "string"
                }
              }
            }
          }
        },
        "storefront": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "id",
            "name",
            "url",
            "currency",
            "pricesIncludeTax",
            "displayPricesWithTax",
            "timezone",
            "pricesForSignedInOnly"
          ],
          "properties": {
            "id": {
              "$ref": "#/$defs/Id",
              "description": "This storefront's id, as the admin side's store.storefronts lists it."
            },
            "name": {
              "type": "string",
              "description": "This storefront's name, as its shoppers see it."
            },
            "url": {
              "type": "string"
            },
            "currency": {
              "$ref": "#/$defs/Currency",
              "description": "This storefront's default currency; a shopper's session may use another, which StorefrontPrice names."
            },
            "pricesIncludeTax": {
              "type": "boolean",
              "description": "Whether prices are entered and stored with tax included, as in the admin side manifest."
            },
            "displayPricesWithTax": {
              "type": "boolean",
              "description": "Whether this storefront shows prices with tax (OpenCart: config_tax): StorefrontPrice.includesTax is this. Every storefront price depends on it."
            },
            "timezone": {
              "type": "string",
              "description": "The shop's IANA timezone (Europe/Kyiv), for display only: every time on the wire is UTC."
            },
            "pricesForSignedInOnly": {
              "type": "boolean",
              "description": "Whether this storefront shows prices to signed-in customers only (OpenCart: config_customer_price): then a guest gets no price, price delta, cart amount or total, a price filter answers customer_required, and the agent asks the shopper to sign in to see prices. Sorting by price stays, as the storefront sorts by it."
            }
          }
        },
        "limits": {
          "$ref": "#/$defs/Limits"
        },
        "capabilities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontCapabilityDeclaration"
          },
          "description": "The storefront.* capabilities this endpoint serves; nothing else."
        },
        "paused": {
          "type": "boolean",
          "description": "Whether the owner paused Store Deputy in this shop: the other storefront operations answer paused while it is true."
        }
      }
    },
    "StorefrontCustomer": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "email",
        "telephone",
        "firstName",
        "lastName",
        "customerGroupId",
        "addressIds",
        "defaultAddressId",
        "createdAt",
        "updatedAt"
      ],
      "description": "The signed-in customer's own account, as the storefront's account pages show it to them (27 October 2026): Customer without status (a signed-in customer is always enabled: OpenCart lets no disabled customer sign in). Addresses come only from storefront.customerAddress.get.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "email": {
          "type": "string"
        },
        "telephone": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the shop stores it, trimmed; null when empty. Identifies the customer like email (customer.search by telephone)."
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "customerGroupId": {
          "$ref": "#/$defs/NullableId",
          "description": "The customer's group (OpenCart: customer_group_id), readable with storefront.customerGroup.get; null on a platform without customer groups."
        },
        "addressIds": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Every address in the customer's address book, ascending. Only ids: the addresses come from storefront.customerAddress.get."
        },
        "defaultAddressId": {
          "$ref": "#/$defs/NullableId",
          "description": "The default address, one of addressIds, or null (OpenCart 3: customer.address_id; OpenCart 4: the address with default = 1)."
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "When the customer account was created (OpenCart: date_added), converted to UTC. Null when the platform keeps no creation time for customers."
        },
        "updatedAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "The latest change to the account, in UTC; null when the platform keeps no modification time for customers (OpenCart 3 and 4). Kept for platforms that do."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontCustomerGroup": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name"
      ],
      "description": "A customer group as the storefront shows it (27 October 2026): only the groups the storefront offers at registration (OpenCart: config_customer_group_display) and the signed-in customer's own group, even when it is not offered. A group the storefront does not show is missing.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the language of the shopper's session; null when missing."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontCustomerAddress": {
      "type": "object",
      "required": [
        "id",
        "firstName",
        "lastName",
        "company",
        "address1",
        "address2",
        "city",
        "postcode",
        "country",
        "countryCode",
        "zone",
        "zoneCode"
      ],
      "description": "An address from the signed-in customer's own address book (27 October 2026): CustomerAddress without customerId, which is always that customer. The address of another customer is missing.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "company": {
          "type": [
            "string",
            "null"
          ]
        },
        "address1": {
          "type": [
            "string",
            "null"
          ],
          "description": "First address line (OpenCart: address_1)."
        },
        "address2": {
          "type": [
            "string",
            "null"
          ],
          "description": "Second address line (OpenCart: address_2)."
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "The country's name as the storefront names it, in the language of the shopper's session where the platform translates it (OpenCart 3 and 4.0 keep one name: country.name; 4.1: country_description.name); null when not set."
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[A-Z]{2}$",
          "description": "ISO 3166-1 alpha-2 (OpenCart: country.iso_code_2), the code every major platform keeps (WooCommerce, Shopify and PrestaShop keep only this one); null when the country has none or is not set."
        },
        "zone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Region, state or province by name, in the language of the shopper's session where the platform translates it (OpenCart 3 and 4.0: zone.name; 4.1: zone_description.name)."
        },
        "zoneCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The region's code as the platform keeps it (OpenCart: zone.code)."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      },
      "additionalProperties": false
    },
    "StorefrontOrderStatus": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "kind"
      ],
      "description": "An order's status as the customer's account shows it: Order.status with the name in the session's language, and never abandoned (the storefront shows no abandoned order).",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "The same as storefront.orderStatus.id."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the language of the shopper's session; null when missing."
        },
        "kind": {
          "type": "string",
          "enum": [
            "pending",
            "processing",
            "completed",
            "cancelled",
            "refunded",
            "other"
          ],
          "description": "The neutral meaning the adapter assigns; the API shows code and name and reasons on kind. The storefront never shows an abandoned order."
        }
      }
    },
    "StorefrontOrderLine": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "productId",
        "variantId",
        "code",
        "name",
        "quantity",
        "unitPrice",
        "total"
      ],
      "description": "One line of an order as the customer's account shows it: OrderLine with prices in the order's currency and with tax where the storefront shows prices with tax.",
      "properties": {
        "productId": {
          "$ref": "#/$defs/NullableId",
          "description": "Null when the product was deleted since or the storefront does not show it now: an id storefront.product.get would not answer is never given."
        },
        "variantId": {
          "$ref": "#/$defs/NullableId"
        },
        "code": {
          "$ref": "#/$defs/Identifier",
          "description": "The product's own code as the order recorded it when placed (OpenCart: order_product.model); it does not follow later changes to the product. Null when empty."
        },
        "sku": {
          "$ref": "#/$defs/Identifier",
          "description": "The SKU, when the platform records it in the order. OpenCart does not (order_product has no sku): its module leaves sku out rather than reading today's value from the product."
        },
        "name": {
          "type": "string",
          "description": "As the order recorded it when placed."
        },
        "quantity": {
          "type": "integer"
        },
        "unitPrice": {
          "$ref": "#/$defs/Money",
          "description": "The price of one, with its tax when the storefront shows prices with tax (OpenCart: price + tax when config_tax), in the order's currency (Order.currency), at the rate stored with the order, as the customer's account shows it (OpenCart: currency->format(value, currency_code, currency_value)); not the session's currency and not today's rate."
        },
        "total": {
          "$ref": "#/$defs/Money",
          "description": "The line total, with its tax when the storefront shows prices with tax (OpenCart: total + tax × quantity when config_tax), in the order's currency (Order.currency), at the rate stored with the order, as the customer's account shows it (OpenCart: currency->format(value, currency_code, currency_value)); not the session's currency and not today's rate."
        }
      }
    },
    "StorefrontOrderTotalLine": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "kind",
        "code",
        "title",
        "value"
      ],
      "description": "One line of the order's total block as the customer's account shows it: OrderTotalLine with value in the order's currency.",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "subtotal",
            "shipping",
            "tax",
            "discount",
            "fee",
            "total",
            "other"
          ],
          "description": "The neutral meaning the adapter assigns; the API reasons on it, shows code and title. OpenCart: sub_total → subtotal, shipping → shipping, tax → tax, coupon, voucher and reward → discount, handling and low_order_fee → fee, total → total, anything else (credit, an extension's own line) → other."
        },
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "description": "The platform's own code for the line (OpenCart: order_total.code, the total extension)."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The text the buyer saw, as the order stores it (OpenCart: order_total.title); null when empty."
        },
        "value": {
          "$ref": "#/$defs/Money",
          "description": "Signed as the order stores it (a discount is negative in OpenCart), in the order's currency (Order.currency), at the rate stored with the order, as the customer's account shows it (OpenCart: currency->format(value, currency_code, currency_value)); not the session's currency and not today's rate."
        }
      }
    },
    "StorefrontOrder": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "number",
        "status",
        "currency",
        "total",
        "lines",
        "totalLines",
        "paymentMethod",
        "shippingMethod",
        "customerFirstName",
        "customerLastName",
        "customerEmail",
        "customerTelephone",
        "createdAt",
        "updatedAt"
      ],
      "description": "One of the signed-in customer's own orders on this storefront, as their account shows it (27 October 2026): Order without customerId, customerGroupId and storefrontId (always this customer and this storefront) and without currencyRate, every amount already in the order's currency. Only orders the customer placed on this storefront and completed (OpenCart: customer_id, store_id, order_status_id above 0); any other order is missing. Addresses come only from storefront.customerOrderPaymentAddress.get and storefront.customerOrderShippingAddress.get.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "number": {
          "type": "string",
          "description": "The number the shop shows people; equals id on OpenCart."
        },
        "status": {
          "$ref": "#/$defs/StorefrontOrderStatus"
        },
        "currency": {
          "$ref": "#/$defs/Currency",
          "description": "The order's currency, the one the customer chose (OpenCart: order.currency_code); every amount of the order is in it."
        },
        "total": {
          "$ref": "#/$defs/Money",
          "description": "The grand total, in the order's currency (Order.currency), at the rate stored with the order, as the customer's account shows it (OpenCart: currency->format(value, currency_code, currency_value)); not the session's currency and not today's rate."
        },
        "lines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontOrderLine"
          }
        },
        "totalLines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontOrderTotalLine"
          },
          "description": "The breakdown of total, in the shop's order; empty when the platform keeps none."
        },
        "paymentMethod": {
          "oneOf": [
            {
              "$ref": "#/$defs/OrderMethod"
            },
            {
              "type": "null"
            }
          ],
          "description": "How the order is paid; null when the order records none."
        },
        "shippingMethod": {
          "oneOf": [
            {
              "$ref": "#/$defs/OrderMethod"
            },
            {
              "type": "null"
            }
          ],
          "description": "How the order is shipped; null when it needs no shipping (OpenCart: shipping_code empty) or records none."
        },
        "customerFirstName": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the order stores it (OpenCart: order.firstname); null when empty."
        },
        "customerLastName": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the order stores it (OpenCart: order.lastname); null when empty."
        },
        "customerEmail": {
          "type": [
            "string",
            "null"
          ],
          "description": "The email as the order stores it (OpenCart: order.email); it may differ from the account's today."
        },
        "customerTelephone": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the order stores it (OpenCart: order.telephone), trimmed; null when empty."
        },
        "createdAt": {
          "$ref": "#/$defs/UtcDateTime",
          "description": "When the order was placed (OpenCart: date_added), converted to UTC."
        },
        "updatedAt": {
          "$ref": "#/$defs/UtcDateTime"
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontOrderStatusEntry": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name"
      ],
      "description": "An order status the shop defines (OpenCart: order_status), named in the language of the shopper's session. Every status the shop defines; status 0 (abandoned) is not one.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the language of the shopper's session; null when missing."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontCoupon": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "code",
        "name",
        "status",
        "discount",
        "usage",
        "startsAt",
        "endsAt"
      ],
      "description": "A coupon as a shopper may see it (27 October 2026): Coupon without how often everybody used it (usage.limitTotal, usage.used), createdAt and updatedAt, with the shopper's own uses. storefront.coupon.get, .list and .query read only coupons the signed-in customer used in an order on this storefront (OpenCart: coupon_history of the customer, its order on this store); any other coupon is missing, so no code is given away. storefront.coupon.search finds any coupon by the exact code the shopper gave.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ],
          "description": "A coupon the customer used may be disabled since."
        },
        "discount": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "kind",
            "value",
            "currency",
            "minimumTotal",
            "freeShipping"
          ],
          "description": "What the coupon takes off, in the part every platform has (OpenCart, WooCommerce, PrestaShop, Magento). Restrictions to products, categories, customers or groups, buy-x-get-y and gifts stay platform data in extensions.",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "percent",
                "fixed_order",
                "fixed_item",
                "other"
              ],
              "description": "percent: a percentage off; fixed_order: an amount off the order (OpenCart F, WooCommerce fixed_cart, PrestaShop reduction_amount, Magento cart_fixed); fixed_item: an amount off each eligible item (WooCommerce fixed_product, Magento by_fixed); other: anything else (Magento buy_x_get_y)."
            },
            "value": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]{0,10})\\.[0-9]{4}$",
              "description": "The size of the discount, 4 decimal places: a percentage for percent (\"10.0000\" is 10 %); otherwise an amount in the currency of the shopper's session (StorefrontCoupon.discount.currency), converted at the session currency's rate, as the storefront shows amounts; 0.0000 for a coupon that only gives free shipping."
            },
            "currency": {
              "$ref": "#/$defs/Currency",
              "description": "The shopper's session currency, which value (unless kind is percent) and minimumTotal are in."
            },
            "minimumTotal": {
              "$ref": "#/$defs/NullableMoney",
              "description": "The cart subtotal the coupon needs (OpenCart: coupon.total, compared with the subtotal without tax), in the currency of the shopper's session (StorefrontCoupon.discount.currency), converted at the session currency's rate, as the storefront shows amounts; null when there is none."
            },
            "freeShipping": {
              "type": "boolean",
              "description": "Whether the coupon also makes shipping free."
            }
          }
        },
        "usage": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "limitPerCustomer",
            "usedByCustomer"
          ],
          "properties": {
            "limitPerCustomer": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 1,
              "description": "How many times one customer may use it; null without a limit."
            },
            "usedByCustomer": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "How many times the signed-in customer has used it, in any storefront (OpenCart: coupon_history of the customer, as uses_customer counts it); null for a guest, whose uses are not counted."
            }
          }
        },
        "startsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "endsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "extensions": {
          "$ref": "#/$defs/Extensions",
          "description": "Platform fields a shopper may have; OpenCart: extension_schemas.opencart.storefrontCoupon in protocol.yaml (the products and categories the coupon is limited to, only those the storefront shows)."
        }
      }
    },
    "StorefrontCouponReason": {
      "type": "string",
      "enum": [
        "disabled",
        "not_started",
        "expired",
        "minimum_total",
        "uses_total_reached",
        "uses_customer_reached",
        "sign_in_required",
        "no_eligible_products"
      ],
      "description": "Why the coupon would not apply to this shopper's cart now, as the platform checks a code entered in the cart (OpenCart: model/extension/total/coupon getCoupon): disabled; not_started, expired — outside its dates; minimum_total — the cart subtotal is below discount.minimumTotal; uses_total_reached — used as often as it may be in all; uses_customer_reached — the signed-in customer used it as often as they may; sign_in_required — only for signed-in customers and the shopper is a guest; no_eligible_products — limited to products or categories and the cart holds none of them."
    },
    "StorefrontCouponSearchMatch": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "resource",
        "id",
        "coupon",
        "applicable",
        "reasons"
      ],
      "description": "A coupon whose code is the one the shopper gave, with the coupon itself (a guest can read it no other way) and whether it would apply to this shopper's cart now.",
      "properties": {
        "resource": {
          "const": "coupon"
        },
        "id": {
          "$ref": "#/$defs/Id"
        },
        "coupon": {
          "$ref": "#/$defs/StorefrontCoupon"
        },
        "applicable": {
          "type": "boolean",
          "description": "Whether the platform would accept the code for this shopper's cart now. It depends on the cart: the agent says so rather than promising."
        },
        "reasons": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/StorefrontCouponReason"
          },
          "description": "Every reason it would not apply; empty exactly when applicable is true."
        }
      }
    },
    "StorefrontSearchMatch": {
      "type": "object",
      "required": [
        "resource",
        "id"
      ],
      "additionalProperties": false,
      "description": "A match of a storefront search other than product, variant and coupon: the storefront resource (storefront.resources, e.g. customerOrder) and its id, the id its get reads.",
      "properties": {
        "resource": {
          "type": "string",
          "enum": [
            "product",
            "variant",
            "category",
            "manufacturer",
            "customer",
            "customerGroup",
            "customerAddress",
            "customerOrder",
            "orderStatus",
            "customerOrderPaymentAddress",
            "customerOrderShippingAddress",
            "coupon",
            "cart",
            "checkout"
          ]
        },
        "id": {
          "$ref": "#/$defs/Id"
        }
      }
    },
    "StorefrontSearchResult": {
      "type": "object",
      "required": [
        "input",
        "matches"
      ],
      "additionalProperties": false,
      "properties": {
        "input": {
          "type": "object",
          "required": [
            "type",
            "value"
          ],
          "properties": {
            "type": {
              "type": "string"
            },
            "value": {
              "type": "string"
            }
          }
        },
        "matches": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontSearchMatch"
          },
          "description": "Every match, in the adapter's stable id order. Never one picked out of several."
        }
      }
    },
    "StorefrontCustomerGroupQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Several name filters combine with OR. Left out: every group the storefront shows.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name in the session's language contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name"
          ],
          "description": "Left out: the order the storefront itself uses at registration (OpenCart: sort_order, then name). Ties are broken by id in the same direction. A module declares the values it supports in storefront.store.describe (StorefrontCapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; name orders by the store database's ordering of text, a missing name first in asc."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Customer groups per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "StorefrontOrderStatusQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Several name filters combine with OR. Left out: every order status.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name in the session's language contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name"
          ],
          "description": "Left out: by name, as the platform lists them (OpenCart keeps no sort_order for order statuses). Ties are broken by id in the same direction. A module declares the values it supports in storefront.store.describe (StorefrontCapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; name orders by the store database's ordering of text, a missing name first in asc."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Order statuses per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "StorefrontCustomerOrderQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page, over the signed-in customer's own orders on this storefront.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR (two orderStatusId filters: in either status). Left out: every order of the customer.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "In this order status (StorefrontOrder.status.id, storefront.orderStatus.id). There is no abandoned status on the storefront: \"0\" matches nothing.",
                "properties": {
                  "type": {
                    "const": "orderStatusId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "total as StorefrontOrder.total carries it, in each order's own currency, both ends inclusive; either end may be left out, not both. Orders in different currencies are compared by the number alone: 100 matches 100 USD and 100 EUR.",
                "properties": {
                  "type": {
                    "const": "total"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "min": {
                        "$ref": "#/$defs/MoneyInput"
                      },
                      "max": {
                        "$ref": "#/$defs/MoneyInput"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "createdAt within the range, both ends inclusive; either end may be left out, not both.",
                "properties": {
                  "type": {
                    "const": "createdAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "updatedAt within the range, both ends inclusive; either end may be left out, not both.",
                "properties": {
                  "type": {
                    "const": "updatedAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "id",
            "number",
            "orderStatus",
            "total",
            "createdAt",
            "updatedAt"
          ],
          "description": "Left out: newest first (by id, descending), as the customer's account lists orders; order then defaults to desc. Ties are broken by id in the same direction. total sorts by StorefrontOrder.total, in each order's own currency. orderStatus by the status name in the session's language. A module declares the values it supports in storefront.store.describe (StorefrontCapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "description": "asc from smallest to largest, desc from largest to smallest. Default asc with a sort; without a sort, desc."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Orders per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "StorefrontCouponQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page, over the coupons the signed-in customer used on this storefront.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR. Left out: every coupon the customer used.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "code equals this, both sides trimmed and case-folded (rules.matching identifiers); % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "code"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Enabled or disabled.",
                "properties": {
                  "type": {
                    "const": "status"
                  },
                  "value": {
                    "type": "string",
                    "enum": [
                      "enabled",
                      "disabled"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "discount.kind is this.",
                "properties": {
                  "type": {
                    "const": "kind"
                  },
                  "value": {
                    "type": "string",
                    "enum": [
                      "percent",
                      "fixed_order",
                      "fixed_item",
                      "other"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "discount.freeShipping is this.",
                "properties": {
                  "type": {
                    "const": "freeShipping"
                  },
                  "value": {
                    "type": "boolean"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "The coupon applies at this moment: startsAt is null or not after it, and endsAt is null or after it. status is a separate filter: a disabled coupon in its period matches.",
                "properties": {
                  "type": {
                    "const": "activeAt"
                  },
                  "value": {
                    "$ref": "#/$defs/UtcDateTime"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "startsAt within the range, both ends inclusive; either end may be left out, not both. A coupon without a start (null startsAt) never matches.",
                "properties": {
                  "type": {
                    "const": "startsAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "endsAt within the range, both ends inclusive; either end may be left out, not both. A coupon without an end (null endsAt) never matches: coupons expiring this week are endsAt { from: now, to: now + 7 days }.",
                "properties": {
                  "type": {
                    "const": "endsAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name",
            "code",
            "status",
            "startsAt",
            "endsAt"
          ],
          "description": "Left out: by id, ascending. Ties are broken by id in the same direction. A null startsAt or endsAt comes first in asc. A module declares the values it supports in storefront.store.describe (StorefrontCapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; text orders by the store database's ordering of text."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Coupons per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "StorefrontProductOptionValue": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "priceDelta"
      ],
      "description": "One value a shopper may choose for an option, as the product page offers it: a value the shop no longer has in stock and subtracts from stock is not offered (OpenCart: subtract and quantity 0) and is left out.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "What storefront.cart.add takes in options[].valueIds (OpenCart: product_option_value_id)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the language of the shopper's session; null when missing."
        },
        "priceDelta": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "What choosing it adds to the product's price, negative when it takes off, as the product page shows it (OpenCart: the option value price with its percentage taxes when the storefront shows prices with tax, in the session's currency); null when it changes nothing or the storefront shows this shopper no prices."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontProductOption": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "type",
        "required",
        "settable",
        "default",
        "values"
      ],
      "description": "Something a shopper chooses or fills in when putting the product in the cart, which only adds to or takes from the product's price and has no id, price or stock of its own (OpenCart options, Magento custom options; a WooCommerce or PrestaShop choice that makes a variant is a variant instead). 27 October 2026.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "What storefront.cart.add takes in options[].optionId (OpenCart: product_option_id)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the language of the shopper's session; null when missing."
        },
        "type": {
          "type": "string",
          "enum": [
            "single",
            "multiple",
            "text",
            "textarea",
            "file",
            "date",
            "time",
            "datetime"
          ],
          "description": "single: one of values (OpenCart select, radio, image); multiple: any of values (checkbox); text, textarea: free text; file: an upload; date, time, datetime: a value in that form (YYYY-MM-DD, HH:MM, YYYY-MM-DD HH:MM)."
        },
        "required": {
          "type": "boolean",
          "description": "storefront.cart.add refuses the product without it (option_required)."
        },
        "settable": {
          "type": "boolean",
          "description": "Whether storefront.cart.add can set it. false for file: the shopper uploads it on the storefront; a required option that is not settable means the product can be put in the cart only there."
        },
        "default": {
          "type": [
            "string",
            "null"
          ],
          "description": "The value the product page fills in for text, textarea, date, time and datetime (OpenCart: product_option.value); null when none or for the other types."
        },
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontProductOptionValue"
          },
          "description": "For single and multiple, the values offered, in the shop's order; empty for the other types."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontProductSubscription": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name",
        "price",
        "frequency",
        "cycle",
        "duration",
        "trial"
      ],
      "description": "A subscription plan the shopper may choose for this product (OpenCart 3: recurring; OpenCart 4: subscription plan), only plans enabled for the shopper's customer group. A platform where the subscription is the product itself (WooCommerce Subscriptions) or that has none declares no subscriptions include. 27 October 2026.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id",
          "description": "What storefront.cart.add takes in subscriptionId (OpenCart 3: recurring_id)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the language of the shopper's session; null when missing."
        },
        "price": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "Billed each period, as the product page shows it (with tax when the storefront shows prices with tax, in the session's currency). Null for a guest where the storefront shows prices to signed-in customers only."
        },
        "frequency": {
          "type": "string",
          "enum": [
            "day",
            "week",
            "semi_month",
            "month",
            "year"
          ],
          "description": "Billing: the unit of one billing period."
        },
        "cycle": {
          "type": "integer",
          "minimum": 1,
          "description": "How many units make one period: every 2 weeks is week and 2."
        },
        "duration": {
          "type": "integer",
          "minimum": 0,
          "description": "How many periods are billed; 0 until cancelled."
        },
        "trial": {
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "price",
                "frequency",
                "cycle",
                "duration"
              ],
              "properties": {
                "price": {
                  "oneOf": [
                    {
                      "$ref": "#/$defs/StorefrontPrice"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Billed each trial period. Null for a guest where the storefront shows prices to signed-in customers only."
                },
                "frequency": {
                  "type": "string",
                  "enum": [
                    "day",
                    "week",
                    "semi_month",
                    "month",
                    "year"
                  ],
                  "description": "Trial: the unit of one billing period."
                },
                "cycle": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "How many units make one period: every 2 weeks is week and 2."
                },
                "duration": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "How many periods are billed; 0 until cancelled."
                }
              }
            },
            {
              "type": "null"
            }
          ],
          "description": "A trial before the plan, or null."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontCartItem": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "productId",
        "variantId",
        "code",
        "name",
        "quantity",
        "options",
        "subscription",
        "unitPrice",
        "total",
        "inStock",
        "minQuantity"
      ],
      "description": "One line of the shopper's cart as the storefront's cart page shows it.",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Opaque: the line as the platform keeps it (OpenCart: cart_id; WooCommerce: the cart item key). What storefront.cart.update and .remove take as itemId. A line may get another id when its contents change."
        },
        "productId": {
          "$ref": "#/$defs/Id"
        },
        "variantId": {
          "$ref": "#/$defs/NullableId",
          "description": "The variant of the line, whose parent is productId (operations.json rules.variants storefront); null for a product that is not a variant, always on a platform without variants (OpenCart 3)."
        },
        "code": {
          "$ref": "#/$defs/Identifier"
        },
        "name": {
          "type": "string",
          "description": "In the language of the shopper's session."
        },
        "quantity": {
          "type": "integer",
          "minimum": 1
        },
        "options": {
          "type": "array",
          "description": "What was chosen or filled in, one entry per value (a multiple option chosen twice gives two).",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "optionId",
              "valueId",
              "name",
              "value"
            ],
            "properties": {
              "optionId": {
                "$ref": "#/$defs/Id"
              },
              "valueId": {
                "$ref": "#/$defs/NullableId",
                "description": "Null for text, textarea, file, date, time and datetime."
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "value": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The value's name, or the text or date given; a file's name."
              }
            }
          }
        },
        "subscription": {
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "name"
              ],
              "properties": {
                "id": {
                  "$ref": "#/$defs/Id"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            },
            {
              "type": "null"
            }
          ],
          "description": "The plan chosen, or null."
        },
        "unitPrice": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "One item with its options, as the cart page shows it (with tax when the storefront shows prices with tax, in the session's currency). Null for a guest where the storefront shows prices to signed-in customers only, as the cart page hides them."
        },
        "total": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "The line, as the cart page shows it. Null for a guest where the storefront shows prices to signed-in customers only."
        },
        "inStock": {
          "type": "boolean",
          "description": "Whether the shop has the quantity (OpenCart: false where the cart page marks the line ***); a line out of stock blocks checkout unless the shop allows it."
        },
        "minQuantity": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "description": "The smallest quantity the product may be ordered in (OpenCart: minimum); checkout refuses less. Null when there is none."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontCartTotalLine": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "kind",
        "code",
        "title",
        "value"
      ],
      "description": "One line of the cart's totals, as the cart page shows them, in the session's currency: OrderTotalLine for a cart not yet ordered. Shipping appears only once the shopper chose a shipping method on the storefront. A coupon applied to the cart is one discount line (OpenCart: code coupon).",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "subtotal",
            "shipping",
            "tax",
            "discount",
            "fee",
            "total",
            "other"
          ],
          "description": "The neutral meaning the adapter assigns; the API reasons on it, shows code and title. OpenCart: sub_total → subtotal, shipping → shipping, tax → tax, coupon, voucher and reward → discount, handling and low_order_fee → fee, total → total, anything else (credit, an extension's own line) → other."
        },
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "description": "The platform's own code for the line (OpenCart: order_total.code, the total extension)."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "The text the buyer saw, as the order stores it (OpenCart: order_total.title); null when empty."
        },
        "value": {
          "$ref": "#/$defs/Money",
          "description": "Signed (a discount is negative), in StorefrontCart.currency."
        }
      }
    },
    "StorefrontCart": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "currency",
        "pricesIncludeTax",
        "items",
        "totals"
      ],
      "description": "The shopper's cart, the one the shopper sees on the storefront: the module changes the platform's own cart, never a copy. 27 October 2026.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/Currency",
          "description": "The session's currency; every amount of the cart is in it."
        },
        "pricesIncludeTax": {
          "type": "boolean",
          "description": "Whether the item prices include tax (OpenCart: config_tax)."
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontCartItem"
          },
          "description": "In the order the platform keeps them."
        },
        "totals": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontCartTotalLine"
          },
          "description": "As the cart page computes them (OpenCart: the enabled total extensions, by sort order: sub-total, taxes, a coupon in the session, total). Empty for a guest where the storefront shows prices to signed-in customers only, as the cart page computes none."
        },
        "coupon": {
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "code",
                "name"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            },
            {
              "type": "null"
            }
          ],
          "description": "The coupon the cart holds (OpenCart: the coupon in the session), null when none. It is the held coupon even when it stops qualifying (OpenCart keeps the code in the session; for example the subtotal fell below its minimum): then there is no coupon line in totals. Present when the module declares storefront.cart.coupon; its discount appears as a line of totals of kind discount with the platform's coupon total code (OpenCart: coupon). 23 November 2026 (STOR-153), proposed."
        }
      }
    },
    "StorefrontCartReason": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "reason",
        "optionId"
      ],
      "description": "Why a cart change was not made.",
      "properties": {
        "reason": {
          "type": "string",
          "enum": [
            "product_unavailable",
            "option_required",
            "option_invalid",
            "option_not_settable",
            "subscription_required",
            "subscription_invalid",
            "out_of_stock",
            "quantity_below_minimum",
            "quantity_above_maximum",
            "quantity_step",
            "coupon_not_found",
            "coupon_expired",
            "coupon_not_started",
            "coupon_not_applicable",
            "coupon_minimum_total",
            "coupon_customer_required",
            "coupon_usage_exhausted",
            "coupon_customer_usage_exhausted"
          ],
          "description": "product_unavailable: the storefront does not show the product (or the variant); option_required: a required option is missing; option_invalid: an option or value that is not the product's, or a value of the wrong form; option_not_settable: a file option was given; subscription_required: the product has plans for the shopper's group and none was given; subscription_invalid: not one of its plans; out_of_stock, quantity_below_minimum, quantity_above_maximum, quantity_step: only where the platform refuses the change itself (OpenCart puts any quantity in the cart and refuses at checkout: inStock and minQuantity say so). Coupon reasons of storefront.cart.applyCoupon (23 November 2026, STOR-153; optionId is null for them): coupon_not_found: no such code, or the coupon is disabled (one reason, so a disabled code cannot be told from a missing one); coupon_expired: its end date has passed; coupon_not_started: its start date has not come; coupon_not_applicable: it is limited to products or categories none of which is in the cart; coupon_minimum_total: the cart subtotal is below the coupon's minimumTotal; coupon_customer_required: the coupon is for signed-in customers only and the shopper is a guest; coupon_usage_exhausted: its total uses limit is reached; coupon_customer_usage_exhausted: this customer's uses limit is reached."
        },
        "optionId": {
          "$ref": "#/$defs/NullableId",
          "description": "The option concerned, for the option reasons; null otherwise."
        }
      }
    },
    "StorefrontCartChangeResult": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "outcome",
        "itemId",
        "reasons",
        "current",
        "cart"
      ],
      "description": "What a cart change did, and the cart after it (also when nothing was changed, so the agent can show it).",
      "properties": {
        "outcome": {
          "type": "string",
          "enum": [
            "applied",
            "rejected",
            "conflict",
            "not_found"
          ],
          "description": "applied: done; rejected: not done, see reasons; conflict: the line's quantity is not expected.quantity any more (the shopper changed the cart meanwhile), nothing changed, see current; not_found: no such line in this cart. storefront.cart.applyCoupon: applied (the coupon is now the cart's, also when it already was) or rejected; storefront.cart.removeCoupon: applied when a coupon was removed, not_found when the cart has no coupon (nothing changed)."
        },
        "itemId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The line added to or changed: on add, a new line or the existing one whose quantity grew (the same product with the same options and plan is one line); null when nothing was changed or the line was removed."
        },
        "reasons": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontCartReason"
          },
          "description": "Every reason, when rejected; empty otherwise."
        },
        "current": {
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "quantity"
              ],
              "properties": {
                "quantity": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            {
              "type": "null"
            }
          ],
          "description": "On conflict, the line as it is now; null otherwise."
        },
        "cart": {
          "$ref": "#/$defs/StorefrontCart"
        }
      }
    },
    "StorefrontCheckoutAddress": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "addressId",
        "firstName",
        "lastName",
        "company",
        "address1",
        "address2",
        "city",
        "postcode",
        "country",
        "countryCode",
        "zone",
        "zoneCode"
      ],
      "description": "An address the shopper's checkout holds: StorefrontCustomerAddress without id, plus addressId when it came from the signed-in customer's address book.",
      "properties": {
        "addressId": {
          "$ref": "#/$defs/NullableId",
          "description": "The address book entry it came from (StorefrontCustomerAddress.id); null for an address typed in."
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "company": {
          "type": [
            "string",
            "null"
          ]
        },
        "address1": {
          "type": [
            "string",
            "null"
          ],
          "description": "First address line (OpenCart: address_1)."
        },
        "address2": {
          "type": [
            "string",
            "null"
          ],
          "description": "Second address line (OpenCart: address_2)."
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "The country's name as the storefront names it, in the language of the shopper's session where the platform translates it."
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[A-Z]{2}$",
          "description": "ISO 3166-1 alpha-2 (OpenCart: country.iso_code_2)."
        },
        "zone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Region, state or province by name, in the language of the shopper's session where the platform translates it."
        },
        "zoneCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The region's code as the platform keeps it (OpenCart: zone.code)."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "StorefrontCheckoutAddressInput": {
      "description": "An address for the checkout: an entry of the signed-in customer's own address book by id, or the fields the shopper gave. The fields are checked as the storefront's checkout checks them (OpenCart 3: first and last name 1 to 32 characters, address1 3 to 128, city 2 to 128, postcode 2 to 10 where the country requires one, a zone of the country where it has zones); what fails is a reason, not invalid_params.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "addressId"
          ],
          "properties": {
            "addressId": {
              "$ref": "#/$defs/Id",
              "description": "StorefrontCustomerAddress.id of the signed-in customer; another customer's or a guest's: address_not_found."
            }
          }
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "firstName",
            "lastName",
            "address1",
            "city",
            "countryCode"
          ],
          "properties": {
            "firstName": {
              "type": "string",
              "maxLength": 255
            },
            "lastName": {
              "type": "string",
              "maxLength": 255
            },
            "company": {
              "type": [
                "string",
                "null"
              ],
              "maxLength": 255
            },
            "address1": {
              "type": "string",
              "maxLength": 255
            },
            "address2": {
              "type": [
                "string",
                "null"
              ],
              "maxLength": 255
            },
            "city": {
              "type": "string",
              "maxLength": 255
            },
            "postcode": {
              "type": [
                "string",
                "null"
              ],
              "maxLength": 32
            },
            "countryCode": {
              "type": "string",
              "pattern": "^[A-Z]{2}$",
              "description": "ISO 3166-1 alpha-2; a country the storefront does not offer: country_unavailable."
            },
            "zone": {
              "type": [
                "string",
                "null"
              ],
              "maxLength": 128,
              "description": "The region by its code or its exact name (rules.matching) within the country; null or left out only where the country has no regions. Not found or missing: zone_invalid or field_required with the country's regions in choices."
            }
          }
        }
      ]
    },
    "StorefrontShippingMethod": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "code",
        "name",
        "group",
        "cost"
      ],
      "description": "A shipping method the storefront offers for the address and the cart, as its checkout shows it. A method whose extension answers an error for this address and cart (OpenCart: the quote's error) is not offered.",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "What storefront.checkout.update takes as shippingMethodCode (OpenCart: the quote code, flat.flat)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The method's title in the session's language (OpenCart: the quote's title)."
        },
        "group": {
          "type": [
            "string",
            "null"
          ],
          "description": "The extension offering it, when it offers several (OpenCart: the shipping extension's title); null otherwise."
        },
        "cost": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontPrice"
            },
            {
              "type": "null"
            }
          ],
          "description": "As the checkout shows it (with tax when the storefront shows prices with tax, in the session's currency). Null for a guest where the storefront shows prices to signed-in customers only."
        }
      }
    },
    "StorefrontPaymentMethod": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "code",
        "name",
        "terms",
        "placeable"
      ],
      "description": "A payment method the storefront offers for the payment address and the order total, as its checkout shows it.",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "What storefront.checkout.update takes as paymentMethodCode (OpenCart: the payment extension's code)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The method's title in the session's language."
        },
        "terms": {
          "type": [
            "string",
            "null"
          ],
          "description": "The method's own conditions as the checkout shows them beside it (OpenCart: terms); null when none."
        },
        "placeable": {
          "type": "boolean",
          "description": "Whether storefront.checkout.place can complete an order with it: only a method that takes nothing from the shopper and that the module knows (OpenCart: cod, bank_transfer, cheque, free_checkout, completed by the extension's own confirm). Any other method, a card or a payment provider's page above all, is paid on the storefront's checkout page (checkoutUrl). The module decides; the store has no setting for it."
        }
      }
    },
    "StorefrontCheckoutReason": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "reason",
        "field",
        "itemId",
        "choices"
      ],
      "description": "Why the checkout cannot go on, or why a change was not made.",
      "properties": {
        "reason": {
          "type": "string",
          "enum": [
            "cart_empty",
            "out_of_stock",
            "quantity_below_minimum",
            "sign_in_required",
            "field_required",
            "field_invalid",
            "field_not_settable",
            "custom_field_required",
            "address_not_found",
            "country_unavailable",
            "zone_invalid",
            "shipping_not_required",
            "shipping_method_required",
            "shipping_method_unavailable",
            "no_shipping_methods",
            "payment_method_required",
            "payment_method_unavailable",
            "no_payment_methods",
            "terms_not_agreed"
          ],
          "description": "cart_empty: nothing to order; out_of_stock, quantity_below_minimum: a line the checkout refuses (itemId; OpenCart refuses out of stock unless config_stock_checkout); sign_in_required: a guest may not check out here (OpenCart: guest checkout off, prices for signed-in customers only, or a downloadable product in the cart); field_required, field_invalid: a field missing or not as the checkout accepts it (field); field_not_settable: not the shopper's to set here (a signed-in customer's contact comes from the account; an address book entry for a guest); custom_field_required: a required custom field of the store (field customField.<id>), which the agent cannot fill: the shopper fills it on the checkout page; address_not_found: no such entry in the customer's address book; country_unavailable: a country the storefront does not offer; zone_invalid: no such region in the country (choices); shipping_not_required: nothing in the cart is shipped; shipping_method_required, payment_method_required: none chosen yet; shipping_method_unavailable, payment_method_unavailable: not offered for this address and cart; no_shipping_methods, no_payment_methods: the storefront offers none for them; terms_not_agreed: the store's terms (StorefrontCheckout.terms) not agreed."
        },
        "field": {
          "type": [
            "string",
            "null"
          ],
          "description": "The field concerned as a path (contact.email, paymentAddress.city, shippingAddress.zone, customField.7); null when the reason is about no field."
        },
        "itemId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The cart line concerned (StorefrontCartItem.id), for out_of_stock and quantity_below_minimum; null otherwise."
        },
        "choices": {
          "type": [
            "array",
            "null"
          ],
          "description": "For zone_invalid and a missing zone: the country's regions the shopper can choose from; null otherwise.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "code",
              "name"
            ],
            "properties": {
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "StorefrontCheckout": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "cart",
        "account",
        "guestCheckoutAllowed",
        "contact",
        "paymentAddressRequired",
        "paymentAddress",
        "shippingRequired",
        "shippingAddress",
        "shippingMethods",
        "shippingMethodCode",
        "paymentMethods",
        "paymentMethodCode",
        "comment",
        "terms",
        "agreed",
        "blockers",
        "ready",
        "placeable",
        "checkoutUrl"
      ],
      "description": "The shopper's checkout as the storefront's checkout page holds it in the session: what the agent filled in and the shopper sees on that page, never a copy. 27 October 2026.",
      "properties": {
        "cart": {
          "$ref": "#/$defs/StorefrontCart",
          "description": "The cart with its totals, shipping among them once a shipping method is chosen."
        },
        "account": {
          "type": "string",
          "enum": [
            "guest",
            "customer"
          ],
          "description": "Whether the shopper checks out as a guest or as the signed-in customer."
        },
        "guestCheckoutAllowed": {
          "type": "boolean",
          "description": "Whether a guest may check out with this cart (OpenCart: config_checkout_guest on, prices not for signed-in customers only, no downloadable product). False for a guest: sign_in_required."
        },
        "contact": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "firstName",
            "lastName",
            "email",
            "telephone"
          ],
          "description": "Who orders: a guest's as given, a signed-in customer's from the account.",
          "properties": {
            "firstName": {
              "type": [
                "string",
                "null"
              ]
            },
            "lastName": {
              "type": [
                "string",
                "null"
              ]
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            },
            "telephone": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "paymentAddressRequired": {
          "type": "boolean",
          "description": "Whether the checkout asks for a payment address (OpenCart 3: always; 4: config_checkout_payment_address)."
        },
        "paymentAddress": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontCheckoutAddress"
            },
            {
              "type": "null"
            }
          ],
          "description": "Null until given."
        },
        "shippingRequired": {
          "type": "boolean",
          "description": "Whether anything in the cart is shipped (OpenCart: cart->hasShipping)."
        },
        "shippingAddress": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontCheckoutAddress"
            },
            {
              "type": "null"
            }
          ],
          "description": "Null until given, and always when shippingRequired is false."
        },
        "shippingMethods": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontShippingMethod"
          },
          "description": "Offered for the shipping address and the cart, as the checkout's shipping step computes them; empty until the shipping address is given."
        },
        "shippingMethodCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The method chosen; null until chosen. A change of address or cart that the method no longer suits clears it."
        },
        "paymentMethods": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontPaymentMethod"
          },
          "description": "Offered for the payment address and the order total, as the checkout's payment step computes them; empty until the payment address is given (and, where shipping is required, the shipping method chosen)."
        },
        "paymentMethodCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The method chosen; null until chosen. A change that the method no longer suits clears it."
        },
        "comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "The order comment, as the shopper gave it."
        },
        "terms": {
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "title"
              ],
              "properties": {
                "id": {
                  "$ref": "#/$defs/Id",
                  "description": "The information page (OpenCart: config_checkout_id); storefront.checkout.update agree accepts it."
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            },
            {
              "type": "null"
            }
          ],
          "description": "The store's terms the shopper must agree to before ordering; null when the store asks for none."
        },
        "agreed": {
          "type": "boolean",
          "description": "Whether the shopper agreed to terms; false when there are none to agree to."
        },
        "blockers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontCheckoutReason"
          },
          "description": "Everything that still stands between the shopper and an order, in the order the checkout asks for it; empty when ready."
        },
        "ready": {
          "type": "boolean",
          "description": "No blockers: the order can be placed, here when placeable or on the checkout page."
        },
        "placeable": {
          "type": "boolean",
          "description": "Ready, and the payment method chosen is placeable: storefront.checkout.place can complete the order in the chat."
        },
        "checkoutUrl": {
          "type": "string",
          "format": "uri",
          "minLength": 1,
          "maxLength": 2048,
          "description": "The storefront's own checkout page for this shopper's session (OpenCart: the route the store set in the module, checkout/checkout by default, through the platform's own links, so SEO URLs and https apply). The agent sends the shopper there to finish when the order is not placeable in the chat; what the agent filled in is already there."
        }
      }
    },
    "StorefrontCheckoutChangeResult": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "outcome",
        "reasons",
        "checkout"
      ],
      "description": "What a checkout change did, and the checkout after it (also when nothing was changed).",
      "properties": {
        "outcome": {
          "type": "string",
          "enum": [
            "applied",
            "rejected"
          ],
          "description": "applied: every given field was set; rejected: nothing was set, see reasons."
        },
        "reasons": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontCheckoutReason"
          },
          "description": "Every reason, when rejected; empty otherwise."
        },
        "checkout": {
          "$ref": "#/$defs/StorefrontCheckout"
        }
      }
    },
    "StorefrontShippingEstimate": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "shippingRequired",
        "shippingMethods",
        "reasons"
      ],
      "description": "Shipping methods and their costs for an address the request gives and the cart as it is now, computed as the checkout would but kept nowhere: an estimate, which the checkout recomputes for the address the shopper checks out with.",
      "properties": {
        "shippingRequired": {
          "type": "boolean",
          "description": "Whether anything in the cart is shipped."
        },
        "shippingMethods": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontShippingMethod"
          }
        },
        "reasons": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontCheckoutReason"
          },
          "description": "Why shippingMethods is empty (cart_empty, shipping_not_required, country_unavailable, zone_invalid, no_shipping_methods); empty otherwise."
        }
      }
    },
    "StorefrontCheckoutPlaceResult": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "outcome",
        "orderId",
        "paymentInstructions",
        "reasons",
        "checkout"
      ],
      "description": "What placing the order did.",
      "properties": {
        "outcome": {
          "type": "string",
          "enum": [
            "placed",
            "rejected",
            "conflict",
            "handoff"
          ],
          "description": "placed: the order exists and its payment method confirmed it (orderId); rejected: nothing created, see reasons (the checkout's blockers); conflict: the total is not expected.total in expected.currency any more, nothing created, see checkout; handoff: the payment method chosen is not placeable, nothing created: the shopper finishes on checkout.checkoutUrl."
        },
        "orderId": {
          "$ref": "#/$defs/NullableId",
          "description": "The order placed; for a signed-in customer, what storefront.customerOrder.get reads. Null unless placed."
        },
        "paymentInstructions": {
          "type": [
            "string",
            "null"
          ],
          "description": "What the shopper must do to pay, as the payment method tells it after the order (OpenCart: bank_transfer's bank details, cheque's payee and address); null when none or not placed."
        },
        "reasons": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StorefrontCheckoutReason"
          },
          "description": "When rejected; empty otherwise."
        },
        "checkout": {
          "oneOf": [
            {
              "$ref": "#/$defs/StorefrontCheckout"
            },
            {
              "type": "null"
            }
          ],
          "description": "The checkout as it is now; null when placed (the cart is emptied and the checkout cleared, as the storefront's success page does)."
        }
      }
    },
    "IdempotencyKey": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{16,64}$",
      "description": "Chosen by the API, one per create item, and derived from the change ledger's item id so that a retry of the same item sends the same key. The module keeps it with a hash of the canonical `set` (keys sorted, no whitespace) and the id of the record it made."
    },
    "OrderHistoryEntry": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "statusId",
        "comment",
        "notify",
        "createdAt"
      ],
      "description": "One row of the order's history (OpenCart: order_history). Read through order.get include [\"history\"] (proposed), newest first, at most the manifest's maxPageSize entries.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "statusId": {
          "$ref": "#/$defs/Id"
        },
        "comment": {
          "type": "string",
          "description": "The note of this history entry, written by the shop's team or the system (a status change, a tracking number). Not the buyer's checkout note: that is Order.customerComment (proposed 18 November 2026)."
        },
        "notify": {
          "type": "boolean"
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        }
      }
    },
    "CreateReason": {
      "type": "string",
      "enum": [
        "invalid_item",
        "unknown_reference",
        "duplicate",
        "idempotency_key_reused",
        "field_not_writable",
        "unknown_language",
        "read_back_mismatch",
        "database_error"
      ],
      "description": "invalid_item: a value the platform cannot store (too long, wrong shape, a required field missing). unknown_reference: an id in categoryIds, manufacturerId, taxClassId, customerGroupId, productIds or a weight or length unit the shop does not have (the item's `field` names it). duplicate: a unique value is taken (SEO keyword in its storefront and language, coupon code, a category's name under its parent, a manufacturer's name: rules.create duplicateNames); `conflictingId` names the holder where the module knows it. idempotency_key_reused: the key was used before with different content; nothing is created. field_not_writable: a field of `set` that the module has no product.write.<field> capability for."
    },
    "CreateOutcome": {
      "type": "string",
      "enum": [
        "created",
        "rejected",
        "failed"
      ]
    },
    "CreateItemResult": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "idempotencyKey",
        "outcome"
      ],
      "properties": {
        "idempotencyKey": {
          "$ref": "#/$defs/IdempotencyKey"
        },
        "outcome": {
          "$ref": "#/$defs/CreateOutcome"
        },
        "id": {
          "$ref": "#/$defs/Id",
          "description": "created: the new record's id."
        },
        "replayed": {
          "type": "boolean",
          "description": "created: true when the key was already known and this is the record it made then; false (or absent) when this call made it."
        },
        "after": {
          "type": "object",
          "description": "created: the whole record in the neutral model (Product, Category, Manufacturer or Coupon), read back from the platform, not echoed from the request. failed: what was read instead, where known."
        },
        "reason": {
          "$ref": "#/$defs/CreateReason"
        },
        "field": {
          "type": "string",
          "description": "rejected: the field of `set` the reason is about."
        },
        "conflictingId": {
          "$ref": "#/$defs/Id"
        }
      }
    },
    "ProductCreateSet": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "texts",
        "price",
        "code"
      ],
      "description": "No `status`: a created product is always disabled. Every key needs the module's product.write.<key> capability, else the item is rejected / field_not_writable; so a module that declares product.create declares at least product.write.texts, product.write.price and product.write.code. `texts` must carry a name in the shop's default language. stock is { quantity } as in apply; storefrontIds defaults to every storefront of the shop (the product is disabled, so nothing shows). specials and discounts are not accepted by create: they are added by apply once the owner has seen the product.",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "description": "OpenCart: model, which the platform requires and limits to 64 characters (from the platform's admin form validation, not measured here)."
        },
        "sku": {
          "type": "string",
          "maxLength": 64
        },
        "mpn": {
          "type": "string",
          "maxLength": 64
        },
        "gtin": {
          "oneOf": [
            {
              "$ref": "#/$defs/Gtin"
            },
            {
              "type": "null"
            }
          ],
          "description": "The primary barcode (proposed 13 November 2026 by Artem Belikov (STOR-121); not accepted, answering decision 008's open question): the module replaces the primary barcode where it is (OpenCart: the first non-empty of ean, upc, jan, isbn) and leaves the other barcodes alone; it moves the value only when it does not fit that column (OpenCart: 13 or more digits into upc, anything but 13 digits into jan), then to upc for 12 digits and to ean otherwise. A product without a barcode gets 12 digits in upc and the others in ean. null in set clears every barcode of the product (gtins becomes []). expected compares with the primary barcode after Protocol 1's normalization; null there means the product has no barcode."
        },
        "manufacturerId": {
          "$ref": "#/$defs/NullableId",
          "description": "Null removes the manufacturer. An id the shop does not have is rejected / unknown_reference."
        },
        "categoryIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "The full set; compared and written as a set. An id the shop does not have is rejected / unknown_reference."
        },
        "weight": {
          "oneOf": [
            {
              "$ref": "#/$defs/Weight"
            },
            {
              "type": "null"
            }
          ]
        },
        "dimensions": {
          "oneOf": [
            {
              "$ref": "#/$defs/Dimensions"
            },
            {
              "type": "null"
            }
          ]
        },
        "taxClassId": {
          "$ref": "#/$defs/NullableId",
          "description": "One of the manifest's store.taxClasses (proposed); null for none."
        },
        "minQuantity": {
          "type": "integer",
          "minimum": 1
        },
        "availableAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "A date, expressed as 00:00 of a shop day converted to UTC, as the neutral Product reads it; any other time of day is rejected / invalid_item. OpenCart: date_available."
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords"
        },
        "price": {
          "$ref": "#/$defs/MoneyInput"
        },
        "texts": {
          "$ref": "#/$defs/ProductFields/properties/texts"
        },
        "stock": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "quantity"
          ],
          "properties": {
            "quantity": {
              "type": "integer"
            }
          }
        },
        "storefrontIds": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "CategoryCreateSet": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "texts"
      ],
      "description": "Always created disabled; parentId (default null) and storefrontIds (default every storefront) as for a product. texts needs a name in the default language; the texts of the default language are copied to the languages texts leaves out and metaTitle defaults to name (rules.create texts). A category of the same name in the default language under the same parent, compared trimmed and case-insensitively, is rejected / duplicate with field texts and conflictingId (rules.create duplicateNames). What set leaves out takes the admin form's defaults: sortOrder 0; OpenCart 3 and 4.0 also not in the top menu (top 0) and one column (column 1), which the contract neither reads nor writes. A module that has no category.write.storefrontIds rejects storefrontIds / field_not_writable and puts the category on every storefront.",
      "properties": {
        "texts": {
          "type": "object",
          "minProperties": 1,
          "propertyNames": {
            "$ref": "#/$defs/LanguageCode"
          },
          "additionalProperties": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "minProperties": 1,
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaTitle": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaDescription": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metaKeywords": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords"
        },
        "sortOrder": {
          "type": "integer"
        },
        "parentId": {
          "$ref": "#/$defs/NullableId"
        },
        "storefrontIds": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "ManufacturerCreateSet": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name"
      ],
      "description": "A manufacturer has no status in OpenCart, and the storefront's brand page lists every manufacturer of the storefront, with products or without: a created manufacturer is seen there at once, as an empty brand (corrected 14 November 2026, STOR-124; it said before that it shows once a product uses it). storefrontIds defaults to every storefront; a module that has no manufacturer.write.storefrontIds rejects it / field_not_writable. A manufacturer of the same name, compared trimmed and case-insensitively, is rejected / duplicate with field name and conflictingId (rules.create duplicateNames). sortOrder defaults to 0, as the admin form.",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords"
        },
        "sortOrder": {
          "type": "integer"
        },
        "storefrontIds": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "CouponCreateSet": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "code",
        "name",
        "discount",
        "usage",
        "startsAt",
        "endsAt"
      ],
      "description": "Always created disabled: an enabled coupon is money off, switched on by apply (coupon.write.status) after the owner has seen it. discount needs kind and value, usage needs limitTotal and limitPerCustomer (null for no limit), and startsAt and endsAt are required (null for no bound): proposed 14 November 2026 by Artem Belikov (STOR-124), not accepted. OpenCart's admin form would fill one use in all, one per customer and a month from today, which makes a coupon the owner never saw; so the agent states the limits and the dates, and the approval card shows them. What else set leaves out: no minimumTotal, no free shipping, no product or category limit, any customer. The rules of CouponFields apply: a percentage above 100, an end not after the start and a time that is not 00:00 of a shop day are rejected / invalid_item; a code another coupon holds is rejected / duplicate with conflictingId.",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 3,
          "maxLength": 20,
          "description": "Unique in the shop, else rejected / duplicate with field code. OpenCart limits it to 3 to 20 characters (from the platform's admin form validation, not measured here)."
        },
        "name": {
          "type": "string",
          "minLength": 3,
          "maxLength": 128
        },
        "discount": {
          "type": "object",
          "additionalProperties": false,
          "minProperties": 1,
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "percent",
                "fixed_order"
              ],
              "description": "The two kinds OpenCart has (P and F). fixed_item and other are read-only."
            },
            "value": {
              "type": "string",
              "pattern": "^(0|[1-9][0-9]{0,10})\\.[0-9]{4}$"
            },
            "minimumTotal": {
              "$ref": "#/$defs/NullableMoney"
            },
            "freeShipping": {
              "type": "boolean"
            }
          }
        },
        "usage": {
          "type": "object",
          "additionalProperties": false,
          "minProperties": 1,
          "properties": {
            "limitTotal": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 1
            },
            "limitPerCustomer": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 1
            }
          },
          "description": "`used` is read-only."
        },
        "startsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "endsAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        },
        "productIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Products the coupon is limited to; empty for none. Unknown id: rejected / unknown_reference."
        },
        "categoryIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Categories the coupon is limited to; empty for none."
        },
        "loggedInOnly": {
          "type": "boolean",
          "description": "OpenCart: logged."
        }
      }
    },
    "ManufacturerFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "description": "Writable fields of manufacturer (the resource had none). sortOrder is read through manufacturer.get include [\"details\"] (proposed).",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "seoKeywords": {
          "$ref": "#/$defs/SeoKeywords"
        },
        "sortOrder": {
          "type": "integer"
        }
      }
    },
    "CustomerFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "enabled",
            "disabled"
          ]
        },
        "customerGroupId": {
          "$ref": "#/$defs/Id",
          "description": "A customerGroup id; unknown: rejected / unknown_reference."
        },
        "firstName": {
          "type": "string",
          "minLength": 1
        },
        "lastName": {
          "type": "string",
          "minLength": 1
        },
        "telephone": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "Another customer with this email is rejected / duplicate with field email. The email is the customer's sign-in name: its own capability, so that a team can withhold it."
        }
      }
    },
    "NameTexts": {
      "type": "object",
      "propertyNames": {
        "$ref": "#/$defs/LanguageCode"
      },
      "additionalProperties": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "name"
            ],
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string",
                "description": "The name in this language, as plain text, decoded as the storefront would render it."
              }
            }
          },
          {
            "type": "null"
          }
        ]
      },
      "description": "The name of an order status in every language of the manifest, accepted 11 November 2026 (STOR-98, with the product texts; implemented by the OpenCart 3 and 4 modules): an object keyed by the manifest's language codes, each { name }, or null where the row has no name in that language. Present only when the request asked for include: [\"texts\"] and the manifest carries `languages`. The entity's own `name` stays in the default language. Read only: there is no write of these names."
    },
    "CustomerGroupTexts": {
      "type": "object",
      "propertyNames": {
        "$ref": "#/$defs/LanguageCode"
      },
      "additionalProperties": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "name",
              "description"
            ],
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string",
                "description": "The name in this language, as plain text, decoded as the storefront would render it."
              },
              "description": {
                "type": "string",
                "description": "The description in this language, as plain text (OpenCart: customer_group_description.description), decoded; an empty one is \"\"."
              }
            }
          },
          {
            "type": "null"
          }
        ]
      },
      "description": "The name and the description of a customer group in every language of the manifest, accepted 11 November 2026 (STOR-98, with the product texts; implemented by the OpenCart 3 and 4 modules): an object keyed by the manifest's language codes, each { name, description }, or null where the group has no row in that language. Present only when the request asked for include: [\"texts\"] and the manifest carries `languages`. The group's own `name` stays in the default language. Read only."
    },
    "OptionValueFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "description": "What optionValue.apply compares and writes (accepted 11 November 2026, STOR-138). stock.quantity is the value's own quantity; tracked is the subtract flag, the same fact as OptionValue.stock.tracked, written as a field of its own because it has its own capability (optionValue.write.tracked). priceDelta is not writable yet: a later proposal, with optionValue.write.price.",
      "properties": {
        "stock": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "quantity"
          ],
          "properties": {
            "quantity": {
              "type": "integer"
            }
          }
        },
        "tracked": {
          "type": "boolean"
        }
      }
    },
    "Review": {
      "type": "object",
      "required": [
        "id",
        "productId",
        "authorName",
        "customerId",
        "rating",
        "text",
        "status",
        "createdAt",
        "updatedAt"
      ],
      "description": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted; no module implements it. A product review a shopper left (OpenCart 3 and 4: review). What the shopper wrote is untrusted text (rules.customerMessages). A review cannot be created, deleted or edited through this interface, only published or unpublished (review.apply).",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "productId": {
          "$ref": "#/$defs/Id",
          "description": "The product reviewed (OpenCart: review.product_id)."
        },
        "authorName": {
          "type": "string",
          "description": "The name the author gave, as given and as the storefront would show it (OpenCart: review.author); not checked against any customer account. Empty string when the platform stored none."
        },
        "customerId": {
          "$ref": "#/$defs/NullableId",
          "description": "The author's customer account (OpenCart: review.customer_id); null for a guest review (customer_id 0)."
        },
        "rating": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5,
          "description": "1 to 5, as stored."
        },
        "text": {
          "type": "string",
          "description": "The review's text as the storefront would render it from the source (HTML entities decoded, line breaks kept): plain text, never HTML. At most 65535 characters."
        },
        "status": {
          "type": "string",
          "enum": [
            "published",
            "unpublished"
          ],
          "description": "published: the storefront shows it (OpenCart: status 1). unpublished: it does not, whether it still waits for a moderator or a moderator hid it (OpenCart: status 0): the platform keeps no difference between the two, so neither does the contract."
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "When the review was left (OpenCart: date_added), converted to UTC."
        },
        "updatedAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "The latest change (OpenCart: date_modified), converted to UTC."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        }
      }
    },
    "ReviewFields": {
      "type": "object",
      "additionalProperties": false,
      "minProperties": 1,
      "description": "Proposed 18 November 2026 by Yevhen Kariakin. What review.apply compares and writes: the status only. Nothing else of a review is writable: not its text, rating, author or date.",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "published",
            "unpublished"
          ]
        }
      }
    },
    "ReviewQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page. A review in any status is returned unless a status filter narrows it: the owner moderates the unpublished ones.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR. Left out: every review.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Reviews of this product.",
                "properties": {
                  "type": {
                    "const": "productId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Published or unpublished reviews.",
                "properties": {
                  "type": {
                    "const": "status"
                  },
                  "value": {
                    "type": "string",
                    "enum": [
                      "published",
                      "unpublished"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "rating within the range, both ends inclusive (3 to 5 stars: min 3, max 5); either end may be left out, not both.",
                "properties": {
                  "type": {
                    "const": "rating"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "min": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5
                      },
                      "max": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 5
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "The review's text contains this text, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "text"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "createdAt within the range, both ends inclusive; either end may be left out, not both. A null value never matches.",
                "properties": {
                  "type": {
                    "const": "createdAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "updatedAt within the range, both ends inclusive; either end may be left out, not both. A null value never matches.",
                "properties": {
                  "type": {
                    "const": "updatedAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "id",
            "rating",
            "createdAt",
            "updatedAt"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer). Ties are broken by id in the same direction. A null createdAt or updatedAt comes first in asc and last in desc. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Reviews per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "ReturnReference": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "name"
      ],
      "description": "Proposed 18 November 2026 by Yevhen Kariakin. One entry of a list the shop defines for return requests: a reason, an action or a status (OpenCart: return_reason, return_action, return_status; the name in the shop's default admin language). The reasons and the statuses are also resources of their own, returnReason and returnStatus, which list them in full.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "In the shop's default admin language; null when missing."
        }
      }
    },
    "ReturnHistoryEntry": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "status",
        "notify",
        "comment",
        "createdAt"
      ],
      "description": "Proposed 18 November 2026 by Yevhen Kariakin. One row of a return request's history (OpenCart: return_history), the team's notes and status changes. Read through returnRequest.get include [\"history\"], newest first, at most the manifest's maxPageSize entries.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "status": {
          "$ref": "#/$defs/ReturnReference",
          "description": "The status the request had from this entry on (an entry of returnStatus)."
        },
        "notify": {
          "type": "boolean",
          "description": "Whether the shop emailed the customer with this entry."
        },
        "comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "The shop's note; null when empty."
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime"
        }
      }
    },
    "ReturnRequest": {
      "type": "object",
      "required": [
        "id",
        "orderId",
        "productId",
        "productName",
        "productCode",
        "quantity",
        "opened",
        "reason",
        "action",
        "status",
        "customerId",
        "customerFirstName",
        "customerLastName",
        "customerEmail",
        "customerTelephone",
        "comment",
        "orderedAt",
        "createdAt",
        "updatedAt"
      ],
      "description": "Proposed 18 November 2026 by Yevhen Kariakin, not accepted; no module implements it. A request a customer made to return something they bought (OpenCart 3 and 4: return, with return_reason, return_action, return_status and return_history). Read only: no return request can be created, changed or answered through this interface. The resource is called returnRequest, not return, because return is the verb of every answer and a reserved word in most languages. The customer's name, email and telephone and the free comment are personal data and untrusted text: rules.customerMessages.",
      "properties": {
        "id": {
          "$ref": "#/$defs/Id"
        },
        "orderId": {
          "$ref": "#/$defs/Id",
          "description": "The order the goods came from, as the request recorded it (OpenCart: return.order_id); the order may no longer exist."
        },
        "productId": {
          "$ref": "#/$defs/NullableId",
          "description": "The product (OpenCart: return.product_id); null when the request records none."
        },
        "productName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The product's name as the request recorded it when it was made, not as the catalog has it now (OpenCart: return.product); null when empty."
        },
        "productCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "The product's code as the request recorded it (OpenCart: return.model, the product's model); null when empty."
        },
        "quantity": {
          "type": "integer",
          "minimum": 0,
          "description": "How many pieces (OpenCart: return.quantity)."
        },
        "opened": {
          "type": "boolean",
          "description": "Whether the customer says the package was opened (OpenCart: return.opened)."
        },
        "reason": {
          "$ref": "#/$defs/ReturnReference",
          "description": "Why the customer returns it (OpenCart: return_reason). The full list is returnReason (proposed 18 November 2026)."
        },
        "action": {
          "oneOf": [
            {
              "$ref": "#/$defs/ReturnReference"
            },
            {
              "type": "null"
            }
          ],
          "description": "What the shop decided to do: refund, credit, replacement (OpenCart: return_action); null until it decided (return_action_id 0)."
        },
        "status": {
          "$ref": "#/$defs/ReturnReference",
          "description": "Where the request stands (OpenCart: return_status). The full list is returnStatus (proposed 18 November 2026); the statusId filter of returnRequest.query names one of its ids."
        },
        "customerId": {
          "$ref": "#/$defs/NullableId",
          "description": "The customer's account (OpenCart: return.customer_id); null for a guest."
        },
        "customerFirstName": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the request stores it (OpenCart: return.firstname); null when empty."
        },
        "customerLastName": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the request stores it (OpenCart: return.lastname); null when empty."
        },
        "customerEmail": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the request stores it (OpenCart: return.email), for the owner's eyes; never sent to the model as an instruction."
        },
        "customerTelephone": {
          "type": [
            "string",
            "null"
          ],
          "description": "As the request stores it (OpenCart: return.telephone), trimmed; null when empty."
        },
        "comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "The customer's own words on the request (OpenCart: return.comment); null when empty. Untrusted text. The shop's replies are in the history."
        },
        "orderedAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "The day the customer says they ordered (OpenCart: return.date_ordered, a date without a time), as that day's start in the shop's time zone converted to UTC; null when empty. Not necessarily the date of the order orderId names."
        },
        "createdAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "When the request was made (OpenCart: date_added), converted to UTC."
        },
        "updatedAt": {
          "$ref": "#/$defs/NullableUtcDateTime",
          "description": "The latest change to the request (OpenCart: date_modified), converted to UTC."
        },
        "extensions": {
          "$ref": "#/$defs/Extensions"
        },
        "history": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnHistoryEntry"
          },
          "description": "Present only for include [\"history\"]: newest first, at most the manifest's maxPageSize entries."
        }
      }
    },
    "ReturnRequestQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Filters of different types combine with AND; several filters of the same type combine with OR. Left out: every return request.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "In this return status (ReturnRequest.status.id).",
                "properties": {
                  "type": {
                    "const": "statusId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Requests about this order.",
                "properties": {
                  "type": {
                    "const": "orderId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Requests about this product.",
                "properties": {
                  "type": {
                    "const": "productId"
                  },
                  "value": {
                    "$ref": "#/$defs/Id"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "createdAt within the range, both ends inclusive; either end may be left out, not both. A null value never matches.",
                "properties": {
                  "type": {
                    "const": "createdAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "updatedAt within the range, both ends inclusive; either end may be left out, not both. A null value never matches.",
                "properties": {
                  "type": {
                    "const": "updatedAt"
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "minProperties": 1,
                    "properties": {
                      "from": {
                        "$ref": "#/$defs/UtcDateTime"
                      },
                      "to": {
                        "$ref": "#/$defs/UtcDateTime"
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "id",
            "status",
            "createdAt",
            "updatedAt"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer). Ties are broken by id in the same direction. status sorts by the status's name in the shop's default admin language, not by its id. A null value comes first in asc and last in desc. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Return requests per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "ReturnStatusQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Several name filters combine with OR. Left out: every return status.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are broken by id in the same direction. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; name orders by the store database's ordering of text."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Return statuss per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "ReturnReasonQueryParams": {
      "type": "object",
      "additionalProperties": false,
      "description": "filters (optional), then sort, order and the page.",
      "properties": {
        "filters": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "description": "Several name filters combine with OR. Left out: every return reason.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "value"
                ],
                "description": "Word by word: the name contains every word of the value, in any order, case-insensitively; % _ and * literal.",
                "properties": {
                  "type": {
                    "const": "name"
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                }
              }
            ]
          }
        },
        "sort": {
          "type": "string",
          "enum": [
            "name"
          ],
          "description": "Left out: by id, ascending (numerically where every id is an integer, as in OpenCart). Ties are broken by id in the same direction. A module declares the values it supports in store.describe (CapabilityDeclaration.sorts)."
        },
        "order": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "default": "asc",
          "description": "asc from smallest to largest, desc from largest to smallest; name orders by the store database's ordering of text."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "description": "From 1. A page past pageCount answers empty items with the current counts, not an error."
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 100,
          "description": "Return reasons per page. Never more than limits.maxPageSize; a larger limit answers limit_exceeded."
        }
      }
    },
    "ImageRef": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "path"
      ],
      "properties": {
        "path": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "description": "The stable value: the file's path relative to the shop's image folder, forward slashes, no leading slash, no dot segments (OpenCart: catalog/demo/kettle.jpg). Compared as an exact string."
        }
      },
      "description": "An image as expected, before, after and current carry it: the path and nothing else. A read (module#/$defs/Image) adds the display url. Promoted 20 November 2026 (decision 009, STOR-128)."
    },
    "ImageUpload": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "url",
        "sha256",
        "size",
        "mediaType"
      ],
      "properties": {
        "url": {
          "type": "string",
          "maxLength": 512,
          "description": "https URL (http only for a local build) on the exact origin of the module's api_url, path /module/images/<token>. Anything else is invalid_params with details.field."
        },
        "sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "size": {
          "type": "integer",
          "minimum": 1,
          "maximum": 3145728,
          "description": "Bytes. The module also refuses above its own limit."
        },
        "mediaType": {
          "type": "string",
          "enum": [
            "image/jpeg",
            "image/png",
            "image/gif",
            "image/webp"
          ],
          "description": "What the API detected. The module checks the content against it."
        }
      },
      "description": "A new picture the module pulls from the Store Deputy API: a one-time link and what the file must be. Promoted 20 November 2026 (decision 009, STOR-128). The module downloads only from the exact origin of its own api_url (rules.images.download), checks the size, the SHA-256 and the content, and saves under a name it makes itself (rules.images.storage)."
    },
    "ImageSource": {
      "oneOf": [
        {
          "$ref": "#/$defs/ImageRef"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "upload"
          ],
          "properties": {
            "upload": {
              "$ref": "#/$defs/ImageUpload"
            }
          }
        }
      ],
      "description": "Where a picture in `set` comes from: { path } is a file already in the shop (for the main image any picture file inside the image folder; for the additional images a path the product already holds, which keeps it in the list); { upload } is a new file to download. `expected` takes only { path } or null."
    },
    "product.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "code",
                  "sku",
                  "gtin",
                  "mpn"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "product.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/ProductSearchResult"
          }
        }
      }
    },
    "product.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          }
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "variants",
              "texts",
              "details",
              "options",
              "images"
            ]
          },
          "description": "variants needs variant.read; otherwise capability_unavailable. texts (accepted 11 November 2026, STOR-98) adds Product.texts for every language of the manifest and needs the manifest to carry `languages`; otherwise capability_unavailable with details.include \"texts\". It is covered by product.read; there is no read capability of its own. details (accepted 9 November 2026, decision 008) adds weight, dimensions, taxClassId, seoKeywords, sortOrder (proposed 14 November 2026 by Artem Belikov (STOR-124); not accepted) and the full specials and discounts lists (expired rows included; priceRules shows only rows in effect or upcoming); covered by product.read. options (accepted 11 November 2026, STOR-138) adds Product.optionValues, a flat list of the stock-carrying values of the product's options; needs optionValue.read, otherwise capability_unavailable with details.include \"options\". images (promoted 20 November 2026, decision 009, STOR-128) adds Product.image and Product.images as { path, url } (module#/$defs/Image); covered by product.read, not on list or query; capability_unavailable with details.include \"images\" when the module offers no image capability."
        }
      }
    },
    "product.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Product"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "product.list.params": {
      "$ref": "#/$defs/ProductListParams"
    },
    "product.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Product"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "product.query.params": {
      "$ref": "#/$defs/ProductQueryParams"
    },
    "product.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Product"
          },
          "description": "At most limit products, in the requested order, as product.get returns them; with include: [\"variants\"] each carries its variants."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many products match the filters, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "product.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/ProductFields"
              },
              "set": {
                "$ref": "#/$defs/ProductFields"
              }
            }
          },
          "description": "Images (promoted 20 November 2026): at most one upload per item and one item with an upload per request in the first version the API sends; the module downloads inside its time budget."
        }
      }
    },
    "product.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "variant.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "code",
                  "sku",
                  "gtin",
                  "mpn"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "variant.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/ProductSearchResult"
          }
        }
      }
    },
    "variant.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "variant.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Variant"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "variant.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/VariantFields"
              },
              "set": {
                "$ref": "#/$defs/VariantFields"
              }
            }
          }
        }
      }
    },
    "variant.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "optionValue.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "label",
                  "parentId"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "optionValue.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/ProductSearchResult"
          }
        }
      }
    },
    "optionValue.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "optionValue.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OptionValue"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "optionValue.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/OptionValueFields"
              },
              "set": {
                "$ref": "#/$defs/OptionValueFields"
              }
            }
          }
        }
      }
    },
    "optionValue.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "category.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "name"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "category.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "category.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "texts",
              "details",
              "images"
            ]
          },
          "description": "texts adds Category.texts for every manifest language (needs the manifest's `languages`, else capability_unavailable); details adds sortOrder and seoKeywords. Both are covered by category.read. images (promoted 20 November 2026, decision 009, STOR-128) adds Category.image as { path, url } or null; covered by category.read."
        }
      }
    },
    "category.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Category"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "category.list.params": {
      "$ref": "#/$defs/ListParams"
    },
    "category.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Category"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "category.query.params": {
      "$ref": "#/$defs/CategoryQueryParams"
    },
    "category.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Category"
          },
          "description": "At most limit categories, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many categories match the filters, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "category.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/CategoryFields"
              },
              "set": {
                "$ref": "#/$defs/CategoryFields"
              }
            }
          }
        }
      }
    },
    "category.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "manufacturer.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "name"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "manufacturer.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "manufacturer.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "details"
            ]
          },
          "description": "details adds sortOrder and seoKeywords; covered by manufacturer.read."
        }
      }
    },
    "manufacturer.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Manufacturer"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "manufacturer.list.params": {
      "$ref": "#/$defs/UndatedListParams"
    },
    "manufacturer.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Manufacturer"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "manufacturer.query.params": {
      "$ref": "#/$defs/ManufacturerQueryParams"
    },
    "manufacturer.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Manufacturer"
          },
          "description": "At most limit manufacturers, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many manufacturers match, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "order.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "number",
                  "customerEmail"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254
              }
            }
          }
        }
      }
    },
    "order.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "order.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "history"
            ]
          },
          "description": "history adds Order.history, newest first; covered by order.read."
        }
      }
    },
    "order.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Order"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "order.list.params": {
      "$ref": "#/$defs/ListParams"
    },
    "order.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Order"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "order.query.params": {
      "$ref": "#/$defs/OrderQueryParams"
    },
    "order.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Order"
          },
          "description": "At most limit orders, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many orders match the filters, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "order.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/OrderFields"
              },
              "set": {
                "$ref": "#/$defs/OrderFields"
              }
            }
          }
        }
      }
    },
    "order.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "orderStatus.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "name"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "orderStatus.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "orderStatus.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "texts"
            ]
          },
          "description": "texts (accepted 11 November 2026 (STOR-98, with the product texts; implemented by the OpenCart 3 and 4 modules)) adds OrderStatus.texts, the name in every language of the manifest, and needs the manifest to carry `languages`; otherwise capability_unavailable with details.include \"texts\". Covered by orderStatus.read; there is no read capability of its own."
        }
      }
    },
    "orderStatus.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderStatusEntry"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "orderStatus.list.params": {
      "$ref": "#/$defs/UndatedListParams"
    },
    "orderStatus.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderStatusEntry"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "orderStatus.query.params": {
      "$ref": "#/$defs/OrderStatusQueryParams"
    },
    "orderStatus.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderStatusEntry"
          },
          "description": "At most limit order statuses, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many order statuses match, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "orderPaymentAddress.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Order ids. Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "orderPaymentAddress.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderAddress"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Order ids with no such order or no such address."
        }
      }
    },
    "orderShippingAddress.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Order ids. Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "orderShippingAddress.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderAddress"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Order ids with no such order or no such address."
        }
      }
    },
    "customer.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "email",
                  "telephone"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 254
              }
            }
          }
        }
      }
    },
    "customer.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "customer.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "customer.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Customer"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "customer.list.params": {
      "$ref": "#/$defs/ListParams"
    },
    "customer.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Customer"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "customer.query.params": {
      "$ref": "#/$defs/CustomerQueryParams"
    },
    "customer.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Customer"
          },
          "description": "At most limit customers, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many customers match the filters, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "customerAddress.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "customerAddress.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CustomerAddress"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "customerGroup.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "name"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "customerGroup.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "customerGroup.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "texts"
            ]
          },
          "description": "texts (accepted 11 November 2026 (STOR-98, with the product texts; implemented by the OpenCart 3 and 4 modules)) adds CustomerGroup.texts, the name and the description in every language of the manifest, and needs the manifest to carry `languages`; otherwise capability_unavailable with details.include \"texts\". Covered by customerGroup.read; there is no read capability of its own."
        }
      }
    },
    "customerGroup.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CustomerGroup"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "customerGroup.list.params": {
      "$ref": "#/$defs/UndatedListParams"
    },
    "customerGroup.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CustomerGroup"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "customerGroup.query.params": {
      "$ref": "#/$defs/CustomerGroupQueryParams"
    },
    "customerGroup.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CustomerGroup"
          },
          "description": "At most limit customer groups, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many customer groups match, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "coupon.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "code"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "coupon.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "coupon.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "coupon.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Coupon"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "coupon.list.params": {
      "$ref": "#/$defs/ListParams"
    },
    "coupon.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Coupon"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "coupon.query.params": {
      "$ref": "#/$defs/CouponQueryParams"
    },
    "coupon.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Coupon"
          },
          "description": "At most limit coupons, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many coupons match, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "coupon.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/CouponFields"
              },
              "set": {
                "$ref": "#/$defs/CouponFields"
              }
            }
          }
        }
      }
    },
    "coupon.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "product.create.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "idempotencyKey",
              "set"
            ],
            "properties": {
              "idempotencyKey": {
                "$ref": "#/$defs/IdempotencyKey"
              },
              "set": {
                "$ref": "#/$defs/ProductCreateSet"
              }
            }
          }
        }
      }
    },
    "product.create.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/CreateItemResult"
          }
        }
      }
    },
    "category.create.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "idempotencyKey",
              "set"
            ],
            "properties": {
              "idempotencyKey": {
                "$ref": "#/$defs/IdempotencyKey"
              },
              "set": {
                "$ref": "#/$defs/CategoryCreateSet"
              }
            }
          }
        }
      }
    },
    "category.create.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/CreateItemResult"
          }
        }
      }
    },
    "manufacturer.create.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "idempotencyKey",
              "set"
            ],
            "properties": {
              "idempotencyKey": {
                "$ref": "#/$defs/IdempotencyKey"
              },
              "set": {
                "$ref": "#/$defs/ManufacturerCreateSet"
              }
            }
          }
        }
      }
    },
    "manufacturer.create.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/CreateItemResult"
          }
        }
      }
    },
    "coupon.create.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "idempotencyKey",
              "set"
            ],
            "properties": {
              "idempotencyKey": {
                "$ref": "#/$defs/IdempotencyKey"
              },
              "set": {
                "$ref": "#/$defs/CouponCreateSet"
              }
            }
          }
        }
      }
    },
    "coupon.create.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/CreateItemResult"
          }
        }
      }
    },
    "manufacturer.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/ManufacturerFields"
              },
              "set": {
                "$ref": "#/$defs/ManufacturerFields"
              }
            }
          }
        }
      }
    },
    "manufacturer.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "customer.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/CustomerFields"
              },
              "set": {
                "$ref": "#/$defs/CustomerFields"
              }
            }
          }
        }
      }
    },
    "customer.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "review.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "review.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Review"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "review.list.params": {
      "$ref": "#/$defs/ListParams"
    },
    "review.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Review"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "review.query.params": {
      "$ref": "#/$defs/ReviewQueryParams"
    },
    "review.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Review"
          },
          "description": "At most limit reviews, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many reviews match the filters, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "review.apply.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "expected",
              "set"
            ],
            "properties": {
              "id": {
                "$ref": "#/$defs/Id"
              },
              "expected": {
                "$ref": "#/$defs/ReviewFields"
              },
              "set": {
                "$ref": "#/$defs/ReviewFields"
              }
            }
          }
        }
      }
    },
    "review.apply.result": {
      "type": "object",
      "required": [
        "items"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "description": "One per item, in request order.",
          "items": {
            "$ref": "#/$defs/ApplyItemResult"
          }
        }
      }
    },
    "returnRequest.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        },
        "include": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "history"
            ]
          },
          "description": "history adds ReturnRequest.history, newest first; covered by returnRequest.read."
        }
      }
    },
    "returnRequest.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnRequest"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "returnRequest.list.params": {
      "$ref": "#/$defs/ListParams"
    },
    "returnRequest.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnRequest"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "returnRequest.query.params": {
      "$ref": "#/$defs/ReturnRequestQueryParams"
    },
    "returnRequest.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnRequest"
          },
          "description": "At most limit return requests, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many return requests match the filters, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "returnStatus.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "name"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "returnStatus.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "returnStatus.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "returnStatus.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnReference"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "returnStatus.list.params": {
      "$ref": "#/$defs/UndatedListParams"
    },
    "returnStatus.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnReference"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "returnStatus.query.params": {
      "$ref": "#/$defs/ReturnStatusQueryParams"
    },
    "returnStatus.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnReference"
          },
          "description": "At most limit return statuss, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many return statuss match, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    },
    "returnReason.search.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "identifiers"
      ],
      "properties": {
        "identifiers": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id",
                  "name"
                ]
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          }
        }
      }
    },
    "returnReason.search.result": {
      "type": "object",
      "required": [
        "results"
      ],
      "additionalProperties": false,
      "properties": {
        "results": {
          "type": "array",
          "description": "One per identifier, in request order.",
          "items": {
            "$ref": "#/$defs/SearchResult"
          }
        }
      }
    },
    "returnReason.get.params": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "ids"
      ],
      "properties": {
        "ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 500,
          "items": {
            "$ref": "#/$defs/Id"
          },
          "description": "Duplicates are read once. Never more than limits.maxIdsPerRead."
        }
      }
    },
    "returnReason.get.result": {
      "type": "object",
      "required": [
        "items",
        "missing"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnReference"
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Id"
          }
        }
      }
    },
    "returnReason.list.params": {
      "$ref": "#/$defs/UndatedListParams"
    },
    "returnReason.list.result": {
      "type": "object",
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnReference"
          }
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "returnReason.query.params": {
      "$ref": "#/$defs/ReturnReasonQueryParams"
    },
    "returnReason.query.result": {
      "type": "object",
      "required": [
        "items",
        "itemCount",
        "page",
        "pageCount"
      ],
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReturnReference"
          },
          "description": "At most limit return reasons, in the requested order."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 0,
          "description": "How many return reasons match, counted with this page."
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "description": "The page returned, as requested."
        },
        "pageCount": {
          "type": "integer",
          "minimum": 0,
          "description": "ceil(itemCount / limit); 0 when nothing matches."
        }
      }
    }
  }
}
