{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/surfingdog-ai/json-schema/surfingdog-ai-product-page-schema.json",
  "title": "ProductPage",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/network-openapi.json#/components/schemas/ProductPage",
  "type": "object",
  "required": [
    "products",
    "next_cursor",
    "order",
    "rules",
    "note"
  ],
  "properties": {
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "key, gtin, name, own, offers_count, and up to 3 offers.",
        "properties": {
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Offer"
            }
          }
        }
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "order": {
      "type": "string"
    },
    "rules": {
      "type": "object"
    },
    "note": {
      "type": "string"
    }
  },
  "$defs": {
    "Offer": {
      "type": "object",
      "description": "One business's offer of a product, as search_products and get_offers give it (packages/spec/schemas/mcp-search-products-output.json).",
      "required": [
        "id",
        "offered_by",
        "name",
        "gtin",
        "price",
        "tax",
        "availability",
        "condition",
        "where",
        "checked_at",
        "order"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "offered_by": {
          "type": "object",
          "description": "The business: name, domain, locality, country, distance_km near a point, standing in words, has_inbox."
        },
        "name": {
          "type": "string",
          "description": "As the business wrote it."
        },
        "brand": {
          "type": "string"
        },
        "gtin": {
          "type": [
            "string",
            "null"
          ],
          "description": "14 digits, or null."
        },
        "price": {
          "type": "object",
          "description": "value in the currency's minor unit, and currency (ISO 4217), as this network last checked it."
        },
        "tax": {
          "type": "string",
          "enum": [
            "included",
            "excluded",
            "unknown"
          ]
        },
        "availability": {
          "type": "string",
          "enum": [
            "in_stock",
            "out_of_stock",
            "on_sale"
          ]
        },
        "condition": {
          "type": "string",
          "enum": [
            "new",
            "used",
            "refurbished"
          ]
        },
        "where": {
          "type": "object",
          "description": "pickup, and ships_to: the countries the business says it delivers to."
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "image_url": {
          "type": "string",
          "format": "uri"
        },
        "checked_at": {
          "type": "string",
          "format": "date-time"
        },
        "order": {
          "type": "object",
          "description": "The business's own door (mcp, rest), the product_id there, read_first list_products, then create_order."
        }
      }
    }
  }
}