{
  "openapi": "3.1.1",
  "info": {
    "title": "Tradepost V2 snapshot API",
    "version": "2.0.0",
    "description": "Read-only public market/retail and authenticated account snapshots. No application request-rate quotas. Unversioned /api/ routes preserve V1; this document describes the optional V2 contract. See /api-docs for bot setup, field meanings and migration."
  },
  "servers": [
    {
      "url": "/",
      "description": "The host serving this document. Use a stable V2 origin for production; the tunnel preview is temporary."
    }
  ],
  "security": [],
  "paths": {
    "/api/v2/deployment": {
      "get": {
        "operationId": "deployment",
        "summary": "Read deployment and activation readiness",
        "description": "",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deployment"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "deploymentHead",
        "summary": "Read deployment and activation readiness (headers only)",
        "description": "",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/status": {
      "get": {
        "operationId": "status",
        "summary": "Read dataset versions, collection time and independent operation health",
        "description": "",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "statusHead",
        "summary": "Read dataset versions, collection time and independent operation health (headers only)",
        "description": "",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/market/categories": {
      "get": {
        "operationId": "categories",
        "summary": "List category slugs and coverage",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Categories"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "categoriesHead",
        "summary": "List category slugs and coverage (headers only)",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/market/products": {
      "get": {
        "operationId": "marketProducts",
        "summary": "Search and page market products",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 90-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "last_sale_usd",
                "average_sale_usd_90d",
                "fair_value_usd",
                "units_sold_90d",
                "volume_usd_90d",
                "price_change_pct_90d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page; unrelated to request rate.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Use next_offset from the previous page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketPage"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "marketProductsHead",
        "summary": "Search and page market products (headers only)",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 90-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "last_sale_usd",
                "average_sale_usd_90d",
                "fair_value_usd",
                "units_sold_90d",
                "volume_usd_90d",
                "price_change_pct_90d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page; unrelated to request rate.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Use next_offset from the previous page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/market/overview": {
      "get": {
        "operationId": "marketOverview",
        "summary": "Read market dashboard aggregates",
        "description": "Daily volume/units/trades and category summaries over the source 90-day period.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Overview"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "marketOverviewHead",
        "summary": "Read market dashboard aggregates (headers only)",
        "description": "Daily volume/units/trades and category summaries over the source 90-day period.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/market/search-index": {
      "get": {
        "operationId": "marketSearchIndex",
        "summary": "Read a complete bounded market browser index",
        "description": "Optional browser optimization. Above 20,000 products returns complete:false and rows:[]; never use an incomplete scope as the catalog. Index retail rows omit detailed source candidates. Use products for bot integrations.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Scope includes all products or only those with sales.",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "default": 1
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchIndex"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "marketSearchIndexHead",
        "summary": "Read a complete bounded market browser index (headers only)",
        "description": "Optional browser optimization. Above 20,000 products returns complete:false and rows:[]; never use an incomplete scope as the catalog. Index retail rows omit detailed source candidates. Use products for bot integrations.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Scope includes all products or only those with sales.",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "default": 1
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/export/market": {
      "get": {
        "operationId": "marketExport",
        "summary": "Stream every matching market row",
        "description": "No pagination parameters. Pin version and stage the whole download before replacing your cache. JSON count is the full dataset count; returned is the filtered export size. Bulk rows do not add list-page image/trend enrichment.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 90-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "last_sale_usd",
                "average_sale_usd_90d",
                "fair_value_usd",
                "units_sold_90d",
                "volume_usd_90d",
                "price_change_pct_90d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bulk"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "marketExportHead",
        "summary": "Stream every matching market row (headers only)",
        "description": "No pagination parameters. Pin version and stage the whole download before replacing your cache. JSON count is the full dataset count; returned is the filtered export size. Bulk rows do not add list-page image/trend enrichment.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 90-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "last_sale_usd",
                "average_sale_usd_90d",
                "fair_value_usd",
                "units_sold_90d",
                "volume_usd_90d",
                "price_change_pct_90d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/retail/products": {
      "get": {
        "operationId": "retailProducts",
        "summary": "Search and page retail products",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 30-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "baseline_usd",
                "tradepost_last_usd",
                "tradepost_avg_usd",
                "fair_value_usd",
                "gross_spread_usd",
                "markup_pct",
                "gross_margin_pct",
                "units_sold_30d",
                "volume_usd_30d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page; unrelated to request rate.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Use next_offset from the previous page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "API default is all. Explicit comparisons&min_sales=1 approximates V1 retail defaults.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "comparisons",
                "review"
              ],
              "default": "all"
            }
          },
          {
            "name": "game",
            "in": "query",
            "required": false,
            "description": "Exact game value, e.g. pokemon or riftbound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "package",
            "in": "query",
            "required": false,
            "description": "Exact package_type, commonly unit, case, display or set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_spread",
            "in": "query",
            "required": false,
            "description": "Minimum gross spread in USD, before fees/shipping/tax.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "tiers",
            "in": "query",
            "required": false,
            "description": "Ordered comma-separated unique IDs: manufacturer-msrp,walmart-direct,target-direct,manufacturer-direct,other-first-party-retail,distributor-msrp,reported-msrp,reported-retail,derived-package. Omitted uses the snapshot policy.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "retail_age",
            "in": "query",
            "required": false,
            "description": "Maximum retail-reference age in days, evaluated at snapshot generation time. Omitted uses the snapshot policy (currently 30).",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 3650
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetailPage"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "retailProductsHead",
        "summary": "Search and page retail products (headers only)",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 30-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "baseline_usd",
                "tradepost_last_usd",
                "tradepost_avg_usd",
                "fair_value_usd",
                "gross_spread_usd",
                "markup_pct",
                "gross_margin_pct",
                "units_sold_30d",
                "volume_usd_30d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page; unrelated to request rate.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Use next_offset from the previous page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "API default is all. Explicit comparisons&min_sales=1 approximates V1 retail defaults.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "comparisons",
                "review"
              ],
              "default": "all"
            }
          },
          {
            "name": "game",
            "in": "query",
            "required": false,
            "description": "Exact game value, e.g. pokemon or riftbound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "package",
            "in": "query",
            "required": false,
            "description": "Exact package_type, commonly unit, case, display or set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_spread",
            "in": "query",
            "required": false,
            "description": "Minimum gross spread in USD, before fees/shipping/tax.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "tiers",
            "in": "query",
            "required": false,
            "description": "Ordered comma-separated unique IDs: manufacturer-msrp,walmart-direct,target-direct,manufacturer-direct,other-first-party-retail,distributor-msrp,reported-msrp,reported-retail,derived-package. Omitted uses the snapshot policy.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "retail_age",
            "in": "query",
            "required": false,
            "description": "Maximum retail-reference age in days, evaluated at snapshot generation time. Omitted uses the snapshot policy (currently 30).",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 3650
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/retail/overview": {
      "get": {
        "operationId": "retailOverview",
        "summary": "Read retail dashboard aggregates",
        "description": "Uses the snapshot default pricing policy; custom product filters do not change this overview.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Overview"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "retailOverviewHead",
        "summary": "Read retail dashboard aggregates (headers only)",
        "description": "Uses the snapshot default pricing policy; custom product filters do not change this overview.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/retail/search-index": {
      "get": {
        "operationId": "retailSearchIndex",
        "summary": "Read a complete bounded retail browser index",
        "description": "Optional browser optimization. Above 20,000 products returns complete:false and rows:[]; never use an incomplete scope as the catalog. Index retail rows omit detailed source candidates. Use products for bot integrations.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Scope includes all products or only those with sales.",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "default": 1
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchIndex"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "retailSearchIndexHead",
        "summary": "Read a complete bounded retail browser index (headers only)",
        "description": "Optional browser optimization. Above 20,000 products returns complete:false and rows:[]; never use an incomplete scope as the catalog. Index retail rows omit detailed source candidates. Use products for bot integrations.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Scope includes all products or only those with sales.",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "default": 1
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/export/retail": {
      "get": {
        "operationId": "retailExport",
        "summary": "Stream every matching retail row",
        "description": "No pagination parameters. Pin version and stage the whole download before replacing your cache. JSON count is the full dataset count; returned is the filtered export size. Bulk rows do not add list-page image/trend enrichment.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 30-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "baseline_usd",
                "tradepost_last_usd",
                "tradepost_avg_usd",
                "fair_value_usd",
                "gross_spread_usd",
                "markup_pct",
                "gross_margin_pct",
                "units_sold_30d",
                "volume_usd_30d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "API default is all. Explicit comparisons&min_sales=1 approximates V1 retail defaults.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "comparisons",
                "review"
              ],
              "default": "all"
            }
          },
          {
            "name": "game",
            "in": "query",
            "required": false,
            "description": "Exact game value, e.g. pokemon or riftbound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "package",
            "in": "query",
            "required": false,
            "description": "Exact package_type, commonly unit, case, display or set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_spread",
            "in": "query",
            "required": false,
            "description": "Minimum gross spread in USD, before fees/shipping/tax.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "tiers",
            "in": "query",
            "required": false,
            "description": "Ordered comma-separated unique IDs: manufacturer-msrp,walmart-direct,target-direct,manufacturer-direct,other-first-party-retail,distributor-msrp,reported-msrp,reported-retail,derived-package. Omitted uses the snapshot policy.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "retail_age",
            "in": "query",
            "required": false,
            "description": "Maximum retail-reference age in days, evaluated at snapshot generation time. Omitted uses the snapshot policy (currently 30).",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 3650
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bulk"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "retailExportHead",
        "summary": "Stream every matching retail row (headers only)",
        "description": "No pagination parameters. Pin version and stage the whole download before replacing your cache. JSON count is the full dataset count; returned is the filtered export size. Bulk rows do not add list-page image/trend enrichment.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 30-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "baseline_usd",
                "tradepost_last_usd",
                "tradepost_avg_usd",
                "fair_value_usd",
                "gross_spread_usd",
                "markup_pct",
                "gross_margin_pct",
                "units_sold_30d",
                "volume_usd_30d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "API default is all. Explicit comparisons&min_sales=1 approximates V1 retail defaults.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "comparisons",
                "review"
              ],
              "default": "all"
            }
          },
          {
            "name": "game",
            "in": "query",
            "required": false,
            "description": "Exact game value, e.g. pokemon or riftbound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "package",
            "in": "query",
            "required": false,
            "description": "Exact package_type, commonly unit, case, display or set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_spread",
            "in": "query",
            "required": false,
            "description": "Minimum gross spread in USD, before fees/shipping/tax.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "tiers",
            "in": "query",
            "required": false,
            "description": "Ordered comma-separated unique IDs: manufacturer-msrp,walmart-direct,target-direct,manufacturer-direct,other-first-party-retail,distributor-msrp,reported-msrp,reported-retail,derived-package. Omitted uses the snapshot policy.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "retail_age",
            "in": "query",
            "required": false,
            "description": "Maximum retail-reference age in days, evaluated at snapshot generation time. Omitted uses the snapshot policy (currently 30).",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 3650
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/products": {
      "get": {
        "operationId": "retailAlias",
        "summary": "Alias for the V2 retail list, with V2 defaults",
        "description": "This versioned alias uses V2 pagination. Unversioned /api/products preserves V1 full-result behavior.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 30-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "baseline_usd",
                "tradepost_last_usd",
                "tradepost_avg_usd",
                "fair_value_usd",
                "gross_spread_usd",
                "markup_pct",
                "gross_margin_pct",
                "units_sold_30d",
                "volume_usd_30d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page; unrelated to request rate.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Use next_offset from the previous page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "API default is all. Explicit comparisons&min_sales=1 approximates V1 retail defaults.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "comparisons",
                "review"
              ],
              "default": "all"
            }
          },
          {
            "name": "game",
            "in": "query",
            "required": false,
            "description": "Exact game value, e.g. pokemon or riftbound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "package",
            "in": "query",
            "required": false,
            "description": "Exact package_type, commonly unit, case, display or set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_spread",
            "in": "query",
            "required": false,
            "description": "Minimum gross spread in USD, before fees/shipping/tax.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "tiers",
            "in": "query",
            "required": false,
            "description": "Ordered comma-separated unique IDs: manufacturer-msrp,walmart-direct,target-direct,manufacturer-direct,other-first-party-retail,distributor-msrp,reported-msrp,reported-retail,derived-package. Omitted uses the snapshot policy.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "retail_age",
            "in": "query",
            "required": false,
            "description": "Maximum retail-reference age in days, evaluated at snapshot generation time. Omitted uses the snapshot policy (currently 30).",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 3650
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetailPage"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "retailAliasHead",
        "summary": "Alias for the V2 retail list, with V2 defaults (headers only)",
        "description": "This versioned alias uses V2 pagination. Unversioned /api/products preserves V1 full-result behavior.",
        "security": [],
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "At most 12 words. Literal token AND, final token prefix, supported aliases; exact lowercase UUID lookup. Not V1 substring matching.",
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "min_sales",
            "in": "query",
            "required": false,
            "description": "Minimum 30-day units sold.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "default": 0
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Default relevance when q is nonempty; otherwise volume. Relevance requires q.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "baseline_usd",
                "tradepost_last_usd",
                "tradepost_avg_usd",
                "fair_value_usd",
                "gross_spread_usd",
                "markup_pct",
                "gross_margin_pct",
                "units_sold_30d",
                "volume_usd_30d",
                "relevance"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "Default asc for name, desc for numeric sorts. Relevance uses its own fixed ranking.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page; unrelated to request rate.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 50
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Use next_offset from the previous page.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "Explicit format; Accept alone does not select CSV.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "API default is all. Explicit comparisons&min_sales=1 approximates V1 retail defaults.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "comparisons",
                "review"
              ],
              "default": "all"
            }
          },
          {
            "name": "game",
            "in": "query",
            "required": false,
            "description": "Exact game value, e.g. pokemon or riftbound.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "package",
            "in": "query",
            "required": false,
            "description": "Exact package_type, commonly unit, case, display or set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_spread",
            "in": "query",
            "required": false,
            "description": "Minimum gross spread in USD, before fees/shipping/tax.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "tiers",
            "in": "query",
            "required": false,
            "description": "Ordered comma-separated unique IDs: manufacturer-msrp,walmart-direct,target-direct,manufacturer-direct,other-first-party-retail,distributor-msrp,reported-msrp,reported-retail,derived-package. Omitted uses the snapshot policy.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "retail_age",
            "in": "query",
            "required": false,
            "description": "Maximum retail-reference age in days, evaluated at snapshot generation time. Omitted uses the snapshot policy (currently 30).",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 3650
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/market/products/{uuid}": {
      "get": {
        "operationId": "marketProduct",
        "summary": "Read a product and its daily sales history",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "description": "Exact lowercase product UUID. Include category to disambiguate.",
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketDetail"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "marketProductHead",
        "summary": "Read a product and its daily sales history (headers only)",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "description": "Exact lowercase product UUID. Include category to disambiguate.",
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/market/products/{uuid}/history.csv": {
      "get": {
        "operationId": "marketHistory",
        "summary": "Download recorded daily sales as CSV",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "description": "Exact lowercase product UUID. Include category to disambiguate.",
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "marketHistoryHead",
        "summary": "Download recorded daily sales as CSV (headers only)",
        "description": "",
        "security": [],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "description": "Exact lowercase product UUID. Include category to disambiguate.",
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "Opaque snapshot version from status or the first page. Keep it fixed while paging; unavailable versions return 409.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug from /api/v2/market/categories, or all. Retail accepts only all or sealed-tcg.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "ETag from a previous response. ETags also change with the minute bucket.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "304": {
            "description": "Not modified; reuse the previously stored response body."
          },
          "400": {
            "description": "Invalid parameters"
          },
          "404": {
            "description": "Unknown endpoint or product"
          },
          "405": {
            "description": "Read-only API / unsupported method"
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart"
          },
          "500": {
            "description": "Internal error"
          },
          "502": {
            "description": "Data temporarily unavailable"
          },
          "503": {
            "description": "Snapshot or access configuration unavailable"
          }
        }
      }
    },
    "/api/v2/account/status": {
      "get": {
        "operationId": "accountStatus",
        "summary": "Read authenticated account snapshot metadata",
        "description": "Private collection and credentials must first be provisioned. Imported V1 snapshots retain existing credentials and original collection timestamps.",
        "security": [
          {
            "accountBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountStatus"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or revoked credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scopes, credential missing from snapshot, or disallowed origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/account/dashboard": {
      "get": {
        "operationId": "accountDashboard",
        "summary": "Read all four private account datasets in one bounded snapshot",
        "description": "One authenticated read for the browser dashboard. Reads each encrypted dataset once, with one snapshot_version for all rows. The sum of encrypted object sizes is bounded at 10 MiB; larger snapshots return 413 and must use the existing paginated routes. No pagination parameters are accepted. Response data is private and must remain in memory; never cache it publicly.",
        "security": [
          {
            "accountBearer": []
          }
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "Full requires pii:read. Redacted remains the default.",
            "schema": {
              "type": "string",
              "enum": [
                "redacted",
                "full"
              ],
              "default": "redacted"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountDashboard"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or revoked credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scopes, credential missing from snapshot, or disallowed origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Combined snapshot exceeds its memory bound; use paginated account endpoints.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/account/orders": {
      "get": {
        "operationId": "accountOrders",
        "summary": "Read private orders",
        "description": "Snapshot reads, not live actions. Keep snapshot_version stable across pages; if it changes, discard the staged run. Activity contains three independently paginated collections; prefer individual routes for complete ingestion.",
        "security": [
          {
            "accountBearer": []
          }
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "Full requires pii:read in addition to activity:read.",
            "schema": {
              "type": "string",
              "enum": [
                "redacted",
                "full"
              ],
              "default": "redacted"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page, per stream for activity.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Read pagination.next_offset. Account APIs do not accept version.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "required": false,
            "description": "Comma-separated uppercase status IDs, at most 30.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_after",
            "in": "query",
            "required": false,
            "description": "Inclusive lower bound, timezone required.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "created_before",
            "in": "query",
            "required": false,
            "description": "Inclusive upper bound, timezone required.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "order_id",
            "in": "query",
            "required": false,
            "description": "Exact order ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "transfer_statuses",
            "in": "query",
            "required": false,
            "description": "Comma-separated transfer status IDs, at most 30.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "updated_after",
            "in": "query",
            "required": false,
            "description": "Inclusive lower bound, timezone required.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updated_before",
            "in": "query",
            "required": false,
            "description": "Inclusive upper bound, timezone required.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or revoked credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scopes, credential missing from snapshot, or disallowed origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/account/payments": {
      "get": {
        "operationId": "accountPayments",
        "summary": "Read private payments",
        "description": "Snapshot reads, not live actions. Keep snapshot_version stable across pages; if it changes, discard the staged run. Activity contains three independently paginated collections; prefer individual routes for complete ingestion.",
        "security": [
          {
            "accountBearer": []
          }
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "Full requires pii:read in addition to activity:read.",
            "schema": {
              "type": "string",
              "enum": [
                "redacted",
                "full"
              ],
              "default": "redacted"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page, per stream for activity.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Read pagination.next_offset. Account APIs do not accept version.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "required": false,
            "description": "Comma-separated uppercase status IDs, at most 30.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_after",
            "in": "query",
            "required": false,
            "description": "Inclusive lower bound, timezone required.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "created_before",
            "in": "query",
            "required": false,
            "description": "Inclusive upper bound, timezone required.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or revoked credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scopes, credential missing from snapshot, or disallowed origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/account/transfers": {
      "get": {
        "operationId": "accountTransfers",
        "summary": "Read private transfers",
        "description": "Snapshot reads, not live actions. Keep snapshot_version stable across pages; if it changes, discard the staged run. Activity contains three independently paginated collections; prefer individual routes for complete ingestion.",
        "security": [
          {
            "accountBearer": []
          }
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "Full requires pii:read in addition to activity:read.",
            "schema": {
              "type": "string",
              "enum": [
                "redacted",
                "full"
              ],
              "default": "redacted"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page, per stream for activity.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Read pagination.next_offset. Account APIs do not accept version.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          },
          {
            "name": "statuses",
            "in": "query",
            "required": false,
            "description": "Comma-separated uppercase status IDs, at most 30.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "created_after",
            "in": "query",
            "required": false,
            "description": "Inclusive lower bound, timezone required.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "created_before",
            "in": "query",
            "required": false,
            "description": "Inclusive upper bound, timezone required.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or revoked credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scopes, credential missing from snapshot, or disallowed origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/account/addresses": {
      "get": {
        "operationId": "accountAddresses",
        "summary": "Read private addresses",
        "description": "Snapshot reads, not live actions. Keep snapshot_version stable across pages; if it changes, discard the staged run. Activity contains three independently paginated collections; prefer individual routes for complete ingestion.",
        "security": [
          {
            "accountBearer": []
          }
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "Full requires pii:read in addition to activity:read.",
            "schema": {
              "type": "string",
              "enum": [
                "redacted",
                "full"
              ],
              "default": "redacted"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page, per stream for activity.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Read pagination.next_offset. Account APIs do not accept version.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPage"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or revoked credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scopes, credential missing from snapshot, or disallowed origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/account/activity": {
      "get": {
        "operationId": "accountActivity",
        "summary": "Read private activity",
        "description": "Snapshot reads, not live actions. Keep snapshot_version stable across pages; if it changes, discard the staged run. Activity contains three independently paginated collections; prefer individual routes for complete ingestion.",
        "security": [
          {
            "accountBearer": []
          }
        ],
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": false,
            "description": "Full requires pii:read in addition to activity:read.",
            "schema": {
              "type": "string",
              "enum": [
                "redacted",
                "full"
              ],
              "default": "redacted"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page, per stream for activity.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Read pagination.next_offset. Account APIs do not accept version.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountActivity"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or revoked credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scopes, credential missing from snapshot, or disallowed origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown endpoint or product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Read-only API / unsupported method",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Snapshot unavailable; discard staged pages and restart",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Data temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Snapshot or access configuration unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "accountBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Provisioned V2 read credential. Not the upstream Tradepost partner key. Imported V1 read tokens remain valid subject to expiry, scopes and revocation."
      }
    },
    "schemas": {
      "Deployment": {
        "type": "object",
        "properties": {
          "commit": {
            "type": [
              "string",
              "null"
            ]
          },
          "serving": {
            "type": "string",
            "enum": [
              "v1",
              "v2"
            ]
          },
          "storage_bound": {
            "type": "boolean"
          },
          "storage_ready": {
            "type": "boolean"
          },
          "v2_ready": {
            "type": "boolean"
          }
        },
        "required": [
          "serving",
          "storage_bound",
          "storage_ready",
          "v2_ready"
        ],
        "additionalProperties": true
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": true
      },
      "Status": {
        "type": "object",
        "properties": {
          "app_version": {
            "type": "string"
          },
          "health": {
            "type": "string",
            "enum": [
              "healthy",
              "degraded"
            ]
          },
          "datasets": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "string"
                },
                "count": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "collected_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "stale": {
                  "type": "boolean"
                },
                "age_hours": {
                  "type": "number"
                },
                "freshness": {
                  "type": "string",
                  "enum": [
                    "fresh",
                    "delayed",
                    "stale"
                  ]
                }
              },
              "required": [
                "version",
                "count",
                "collected_at",
                "stale"
              ],
              "additionalProperties": true
            }
          },
          "operations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            }
          },
          "v1_origin": {
            "type": "string"
          }
        },
        "required": [
          "app_version",
          "health",
          "datasets",
          "operations"
        ],
        "additionalProperties": true
      },
      "MarketProduct": {
        "type": "object",
        "properties": {
          "tradepost_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "collection": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "attributes": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          },
          "last_sale_usd": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "average_sale_usd_90d": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "fair_value_usd": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "units_sold_90d": {
            "type": "integer"
          },
          "volume_usd_90d": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "price_change_pct_90d": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "vaulted_available_units": {
            "type": [
              "integer",
              "null"
            ]
          },
          "trend": {
            "type": "array",
            "items": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                {
                  "type": "integer"
                }
              ],
              "minItems": 3,
              "maxItems": 3
            }
          }
        },
        "required": [
          "tradepost_id",
          "name",
          "category"
        ],
        "additionalProperties": true
      },
      "RetailProduct": {
        "type": "object",
        "properties": {
          "tradepost_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "set": {
            "type": "string"
          },
          "game": {
            "type": "string"
          },
          "package_type": {
            "type": "string"
          },
          "comparison_status": {
            "type": "string"
          },
          "review_reason": {
            "type": "string"
          },
          "baseline_tier": {
            "type": "string"
          },
          "baseline_status": {
            "type": "string"
          },
          "baseline_url": {
            "type": "string"
          },
          "baseline_checked_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "baseline_candidates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            }
          },
          "baseline_rejections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            }
          },
          "package_facts_json": {
            "type": "string",
            "description": "JSON-encoded evidence; parse only when nonempty."
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "market_version": {
            "type": "string"
          },
          "trend_end_date": {
            "type": "string",
            "format": "date"
          },
          "trend": {
            "type": "array",
            "items": {
              "type": "array",
              "prefixItems": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                {
                  "type": "integer"
                }
              ],
              "minItems": 3,
              "maxItems": 3
            }
          },
          "baseline_usd": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "retail_msrp": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "tradepost_last_usd": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "tradepost_avg_usd": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "fair_value_usd": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "gross_spread_usd": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "markup_pct": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "gross_margin_pct": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "units_sold_30d": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          },
          "volume_usd_30d": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
          }
        },
        "required": [
          "tradepost_id",
          "name"
        ],
        "additionalProperties": true
      },
      "MarketPage": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "market_snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "age_hours": {
            "type": "number"
          },
          "stale": {
            "type": "boolean"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "returned": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "offset": {
            "type": "integer"
          },
          "next_offset": {
            "type": [
              "integer",
              "null"
            ]
          },
          "search": {
            "type": "object",
            "properties": {
              "query": {
                "type": "string"
              },
              "sort": {
                "type": "string"
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "query",
              "sort",
              "suggestions"
            ],
            "additionalProperties": true
          },
          "period_days": {
            "type": "integer"
          },
          "start_date": {
            "type": "string",
            "format": "date"
          },
          "end_date": {
            "type": "string",
            "format": "date"
          },
          "fair_value_snapshot_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketProduct"
            }
          }
        },
        "required": [
          "version",
          "count",
          "rows",
          "returned",
          "limit",
          "offset",
          "next_offset",
          "search",
          "market_snapshot_at"
        ],
        "additionalProperties": true
      },
      "RetailPage": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "market_snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "age_hours": {
            "type": "number"
          },
          "stale": {
            "type": "boolean"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "returned": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "offset": {
            "type": "integer"
          },
          "next_offset": {
            "type": [
              "integer",
              "null"
            ]
          },
          "search": {
            "type": "object",
            "properties": {
              "query": {
                "type": "string"
              },
              "sort": {
                "type": "string"
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "query",
              "sort",
              "suggestions"
            ],
            "additionalProperties": true
          },
          "summary": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          },
          "baseline_preferences": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          },
          "baseline_preference_hash": {
            "type": "string"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RetailProduct"
            }
          }
        },
        "required": [
          "version",
          "count",
          "rows",
          "returned",
          "limit",
          "offset",
          "next_offset",
          "search",
          "market_snapshot_at"
        ],
        "additionalProperties": true
      },
      "MarketDetail": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "market_snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "age_hours": {
            "type": "number"
          },
          "stale": {
            "type": "boolean"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "product": {
            "type": "object",
            "properties": {
              "tradepost_id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "collection": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "image_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attributes": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              },
              "last_sale_usd": {
                "type": [
                  "number",
                  "string",
                  "null"
                ],
                "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
              },
              "average_sale_usd_90d": {
                "type": [
                  "number",
                  "string",
                  "null"
                ],
                "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
              },
              "fair_value_usd": {
                "type": [
                  "number",
                  "string",
                  "null"
                ],
                "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
              },
              "units_sold_90d": {
                "type": "integer"
              },
              "volume_usd_90d": {
                "type": [
                  "number",
                  "string",
                  "null"
                ],
                "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
              },
              "price_change_pct_90d": {
                "type": [
                  "number",
                  "string",
                  "null"
                ],
                "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
              },
              "vaulted_available_units": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "trend": {
                "type": "array",
                "items": {
                  "type": "array",
                  "prefixItems": [
                    {
                      "type": "string",
                      "format": "date"
                    },
                    {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    {
                      "type": "integer"
                    }
                  ],
                  "minItems": 3,
                  "maxItems": 3
                }
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date"
                    },
                    "average_price_usd": {
                      "type": [
                        "number",
                        "string",
                        "null"
                      ],
                      "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
                    },
                    "units_sold": {
                      "type": "integer"
                    },
                    "volume_usd": {
                      "type": [
                        "number",
                        "string",
                        "null"
                      ],
                      "description": "Source-preserved decimal number/string; null or an empty string means unknown. Parse explicitly, never as zero."
                    },
                    "trade_count": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "date",
                    "average_price_usd",
                    "units_sold",
                    "volume_usd",
                    "trade_count"
                  ],
                  "additionalProperties": true
                }
              }
            },
            "required": [
              "tradepost_id",
              "name",
              "category",
              "history"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "version",
          "product",
          "market_snapshot_at"
        ],
        "additionalProperties": true
      },
      "Categories": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "market_snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "age_hours": {
            "type": "number"
          },
          "stale": {
            "type": "boolean"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "type": "string"
                },
                "displayName": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "sold_products": {
                  "type": "integer"
                }
              },
              "required": [
                "slug",
                "count"
              ],
              "additionalProperties": true
            }
          }
        },
        "required": [
          "version",
          "categories"
        ],
        "additionalProperties": true
      },
      "Overview": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "market_snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "age_hours": {
            "type": "number"
          },
          "stale": {
            "type": "boolean"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "daily": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            }
          },
          "games": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            }
          },
          "products": {
            "type": "integer"
          }
        },
        "required": [
          "version"
        ],
        "additionalProperties": true
      },
      "SearchIndex": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "market_snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "age_hours": {
            "type": "number"
          },
          "stale": {
            "type": "boolean"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "complete": {
            "type": "boolean"
          },
          "scope": {
            "type": "object",
            "properties": {
              "category": {
                "type": "string"
              },
              "min_sales": {
                "type": "integer",
                "enum": [
                  0,
                  1
                ]
              }
            },
            "required": [
              "category",
              "min_sales"
            ],
            "additionalProperties": true
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expansions": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            }
          }
        },
        "required": [
          "version",
          "complete",
          "scope",
          "count",
          "rows",
          "categories",
          "expansions"
        ],
        "additionalProperties": true
      },
      "Bulk": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "description": "Total records in the snapshot, NOT the filtered export count. Use returned after the stream completes."
          },
          "market_snapshot_at": {
            "type": "string",
            "format": "date-time"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "age_hours": {
            "type": "number"
          },
          "stale": {
            "type": "boolean"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "returned": {
            "type": "integer"
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            }
          }
        },
        "required": [
          "version",
          "count",
          "rows",
          "returned"
        ],
        "additionalProperties": true
      },
      "AccountStatus": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "snapshot_version": {
            "type": "string"
          },
          "collected_at": {
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          },
          "age_hours": {
            "type": "number"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "coverage": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "complete",
                  "unknown"
                ]
              },
              "sources": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              },
              "payment_references": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              }
            },
            "required": [],
            "additionalProperties": true
          },
          "enabled": {
            "type": "boolean"
          },
          "client_id": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "stored_snapshot": {
            "type": "boolean"
          },
          "counts": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          }
        },
        "required": [
          "snapshot_version",
          "collected_at",
          "enabled",
          "client_id",
          "scopes"
        ],
        "additionalProperties": true
      },
      "AccountPaymentSource": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "configured",
              "unknown",
              "ambiguous"
            ]
          },
          "evidence": {
            "type": "string",
            "enum": [
              "preferred_cbid_payment_token_id",
              "none",
              "multiple_purchase_payments"
            ]
          },
          "paymentRail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Recorded movement rail; never inferred from a current account default."
          },
          "method": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "paymentMethodType": {
                    "type": "string"
                  },
                  "nickname": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "lastFour": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "cardType": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "paymentMethodType",
                  "nickname",
                  "lastFour",
                  "cardType"
                ],
                "additionalProperties": true
              }
            ]
          },
          "actualDebitVerified": {
            "const": false,
            "description": "Configured intent does not independently verify the bank actually debited."
          }
        },
        "required": [
          "status",
          "evidence",
          "paymentRail",
          "method",
          "actualDebitVerified"
        ],
        "additionalProperties": true
      },
      "AccountRecord": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "orderNumber": {
            "type": "string"
          },
          "sourceKind": {
            "type": "string"
          },
          "side": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "integer",
              "null"
            ]
          },
          "effectiveQuantity": {
            "type": [
              "integer",
              "null"
            ]
          },
          "paymentRail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full payment records only."
          },
          "externalPaymentId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Processor reference, full payment records only."
          },
          "transactionMetadata": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true,
            "description": "Full payment records only. Strict allowlist of funding references/timestamps; raw processor metadata is never retained."
          },
          "paymentSource": {
            "$ref": "#/components/schemas/AccountPaymentSource",
            "description": "Full order/payment records only; requires pii:read and view=full."
          },
          "assetPayload": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true,
            "description": "Product name is configDetails.name; assetDetails.name is the set/collection. key.name describes condition/grade, not the purchased product."
          }
        },
        "required": [],
        "additionalProperties": true
      },
      "AccountPage": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "snapshot_version": {
            "type": "string"
          },
          "collected_at": {
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          },
          "age_hours": {
            "type": "number"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "coverage": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "complete",
                  "unknown"
                ]
              },
              "sources": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              },
              "payment_references": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              }
            },
            "required": [],
            "additionalProperties": true
          },
          "view": {
            "type": "string",
            "enum": [
              "redacted",
              "full"
            ]
          },
          "pagination": {
            "type": "object",
            "properties": {
              "total_count": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              },
              "offset": {
                "type": "integer"
              },
              "has_next_page": {
                "type": "boolean"
              },
              "next_offset": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "total_count",
              "limit",
              "offset",
              "has_next_page",
              "next_offset"
            ],
            "additionalProperties": true
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountRecord"
            }
          }
        },
        "required": [
          "snapshot_version",
          "collected_at",
          "view",
          "pagination",
          "rows"
        ],
        "additionalProperties": true
      },
      "AccountDashboard": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "snapshot_version": {
            "type": "string"
          },
          "collected_at": {
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          },
          "age_hours": {
            "type": "number"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "coverage": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "complete",
                  "unknown"
                ]
              },
              "sources": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              },
              "payment_references": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              }
            },
            "required": [],
            "additionalProperties": true
          },
          "view": {
            "type": "string",
            "enum": [
              "redacted",
              "full"
            ]
          },
          "client_id": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "counts": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": true
          },
          "datasets": {
            "type": "object",
            "properties": {
              "orders": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AccountRecord"
                }
              },
              "payments": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AccountRecord"
                }
              },
              "transfers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AccountRecord"
                }
              },
              "addresses": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AccountRecord"
                }
              }
            },
            "required": [
              "orders",
              "payments",
              "transfers",
              "addresses"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "snapshot_version",
          "collected_at",
          "view",
          "client_id",
          "scopes",
          "counts",
          "datasets"
        ],
        "additionalProperties": true
      },
      "AccountActivity": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "snapshot_version": {
            "type": "string"
          },
          "collected_at": {
            "type": "string",
            "format": "date-time"
          },
          "stale": {
            "type": "boolean"
          },
          "age_hours": {
            "type": "number"
          },
          "freshness": {
            "type": "string",
            "enum": [
              "fresh",
              "delayed",
              "stale"
            ]
          },
          "coverage": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "complete",
                  "unknown"
                ]
              },
              "sources": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              },
              "payment_references": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": true
              }
            },
            "required": [],
            "additionalProperties": true
          },
          "view": {
            "type": "string"
          },
          "orders": {
            "type": "object",
            "properties": {
              "pagination": {
                "type": "object",
                "properties": {
                  "total_count": {
                    "type": "integer"
                  },
                  "limit": {
                    "type": "integer"
                  },
                  "offset": {
                    "type": "integer"
                  },
                  "has_next_page": {
                    "type": "boolean"
                  },
                  "next_offset": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  }
                },
                "required": [
                  "total_count",
                  "limit",
                  "offset",
                  "has_next_page",
                  "next_offset"
                ],
                "additionalProperties": true
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "required": [],
                  "additionalProperties": true
                }
              }
            },
            "required": [
              "pagination",
              "rows"
            ],
            "additionalProperties": true
          },
          "payments": {
            "type": "object",
            "properties": {
              "pagination": {
                "type": "object",
                "properties": {
                  "total_count": {
                    "type": "integer"
                  },
                  "limit": {
                    "type": "integer"
                  },
                  "offset": {
                    "type": "integer"
                  },
                  "has_next_page": {
                    "type": "boolean"
                  },
                  "next_offset": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  }
                },
                "required": [
                  "total_count",
                  "limit",
                  "offset",
                  "has_next_page",
                  "next_offset"
                ],
                "additionalProperties": true
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "required": [],
                  "additionalProperties": true
                }
              }
            },
            "required": [
              "pagination",
              "rows"
            ],
            "additionalProperties": true
          },
          "transfers": {
            "type": "object",
            "properties": {
              "pagination": {
                "type": "object",
                "properties": {
                  "total_count": {
                    "type": "integer"
                  },
                  "limit": {
                    "type": "integer"
                  },
                  "offset": {
                    "type": "integer"
                  },
                  "has_next_page": {
                    "type": "boolean"
                  },
                  "next_offset": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  }
                },
                "required": [
                  "total_count",
                  "limit",
                  "offset",
                  "has_next_page",
                  "next_offset"
                ],
                "additionalProperties": true
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "required": [],
                  "additionalProperties": true
                }
              }
            },
            "required": [
              "pagination",
              "rows"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "snapshot_version",
          "collected_at",
          "view",
          "orders",
          "payments",
          "transfers"
        ],
        "additionalProperties": true
      }
    }
  }
}
