{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemmebuyit-com/json-schema/lemmebuyit-com-shopping-product-schema.json",
  "title": "ShoppingProduct",
  "description": "Shopping-safe product response returned by shopping endpoints.",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemmebuyit-com-openapi.yaml#/components/schemas/ShoppingProduct",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique identifier for the product within the retailer's catalog."
    },
    "retailer_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Retailer identifier for the product record."
    },
    "unique_merchant_sku": {
      "type": "string",
      "description": "Retailer's specific Stock Keeping Unit (SKU)."
    },
    "product_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Retailer product identifier when available."
    },
    "product_name": {
      "type": "string",
      "description": "The name or title of the product."
    },
    "name": {
      "type": "string",
      "description": "Alternate product display name when available."
    },
    "product_description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Detailed description of the product."
    },
    "product_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "url",
      "description": "Shopping destination URL for the product."
    },
    "amazon_affiliate_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "url",
      "description": "Amazon Associates tagged buy link for the product's primary ASIN, when an ASIN mapping exists."
    },
    "image_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "url",
      "description": "URL of the primary product image. (Deprecated: use primary_image_url)"
    },
    "primary_image_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL of the main product image."
    },
    "additional_images": {
      "type": [
        "array",
        "null"
      ],
      "description": "Array of additional product image URLs.",
      "items": {
        "type": "string"
      }
    },
    "current_price": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "The current selling price."
    },
    "original_price": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "The original price before discounts."
    },
    "compare_at_price": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Compare-at price when supplied by the retailer."
    },
    "sale_price": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Sale price when supplied by the retailer."
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "Currency code (ISO 4217)."
    },
    "discount": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Discount amount from original to current price."
    },
    "discount_percentage": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Calculated discount percentage from original to current price."
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "Product category path or name."
    },
    "category_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Retailer's specific category ID."
    },
    "subcategory": {
      "type": [
        "string",
        "null"
      ],
      "description": "Product subcategory."
    },
    "brand": {
      "type": [
        "string",
        "null"
      ],
      "description": "The product brand name."
    },
    "manufacturer": {
      "type": [
        "string",
        "null"
      ],
      "description": "The product manufacturer."
    },
    "sold_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "The seller or vendor name for the product."
    },
    "is_clearance": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "True when the item is currently flagged as clearance (Walmart clearance-watch pipeline)."
    },
    "deal_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "clearance",
        "rollback",
        "reduced"
      ],
      "description": "Walmart deal type from the clearance-watch pipeline."
    },
    "clearance_discount_pct": {
      "type": [
        "number",
        "null"
      ],
      "format": "float",
      "description": "Percent off the was-price observed at clearance_seen_at."
    },
    "clearance_seen_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "UTC timestamp when the deal/clearance status was last observed."
    },
    "stock_availability": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stock status indicator."
    },
    "in_stock": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Boolean indicating if the product is currently in stock."
    },
    "upc": {
      "type": [
        "string",
        "null"
      ],
      "description": "Universal Product Code."
    },
    "ean": {
      "type": [
        "string",
        "null"
      ],
      "description": "European Article Number."
    },
    "gtin": {
      "type": [
        "string",
        "null"
      ],
      "description": "Global Trade Item Number."
    },
    "barcode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Barcode value when available."
    },
    "mpn": {
      "type": [
        "string",
        "null"
      ],
      "description": "Manufacturer Part Number."
    },
    "model": {
      "type": [
        "string",
        "null"
      ],
      "description": "Product model name or number."
    },
    "condition": {
      "type": [
        "string",
        "null"
      ],
      "description": "Product condition."
    },
    "color": {
      "type": [
        "string",
        "null"
      ],
      "description": "Product color."
    },
    "size": {
      "type": [
        "string",
        "null"
      ],
      "description": "Product size."
    },
    "material": {
      "type": [
        "string",
        "null"
      ],
      "description": "Product material."
    },
    "weight": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Product weight."
    },
    "rating": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Average product rating."
    },
    "review_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Number of customer reviews."
    },
    "shipping_cost": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "description": "Shipping cost for the product."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the record was created in the LemMeBuyIt system."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the record was last updated in the LemMeBuyIt system."
    },
    "indexed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Timestamp when the product was last indexed into the search system."
    },
    "price_last_changed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Timestamp when the product price last changed."
    },
    "price_freshness": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "live",
        "refreshing",
        "cached"
      ],
      "description": "How current the returned price is, set on single-product detail lookups. \"live\": the price was re-fetched from the retailer during this request (last_refreshed_at is the fetch time). \"refreshing\": the cached price is returned and a priority refresh was queued — the next lookup should be fresher. \"cached\": the stored value (no on-lookup refresh). Additive and optional; omitted on list/search.\n"
    }
  },
  "required": [
    "id",
    "unique_merchant_sku",
    "product_name",
    "created_at",
    "updated_at"
  ]
}