{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prijsprofeet-nl/json-schema/prijsprofeet-nl-deal-product-schema.json",
  "title": "DealProduct",
  "description": "One promotion as the /deals list endpoints return it. A field the row does\nnot carry is left out, not sent as null.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prijsprofeet-nl-openapi.json#/components/schemas/DealProduct",
  "properties": {
    "product_id": {
      "type": "string",
      "title": "Product Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "brand": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Brand"
    },
    "price": {
      "type": "number",
      "title": "Price",
      "description": "Promotion price per item"
    },
    "original_price": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Original Price",
      "description": "Price before the promotion"
    },
    "savings_percentage": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Savings Percentage"
    },
    "savings_amount": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Savings Amount"
    },
    "promotion_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Promotion Type",
      "description": "Mechanism, one value of the `promotion_type` vocabulary"
    },
    "promotional_keywords": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Promotional Keywords"
    },
    "image_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Url"
    },
    "product_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Url",
      "description": "The retailer's product page"
    },
    "retailer": {
      "type": "string",
      "title": "Retailer"
    },
    "quantity": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quantity",
      "description": "Pack size as the retailer states it"
    },
    "valid_from": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Valid From",
      "description": "First day (ISO date)"
    },
    "valid_until": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Valid Until",
      "description": "Last day (ISO date)"
    },
    "is_lowest_price": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Lowest Price",
      "description": "Not on /deals/brand: lowest price in our history for this product"
    },
    "weeks_at_lowest": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Weeks At Lowest",
      "description": "Not on /deals/brand"
    },
    "avg_price_4w": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avg Price 4W",
      "description": "Not on /deals/brand: average price over the last four weeks"
    },
    "is_new_this_week": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is New This Week",
      "description": "Not on /deals/brand"
    },
    "promotion_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Promotion Status",
      "description": "Only on /deals/brand"
    },
    "unified_category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Unified Category",
      "description": "Only on /deals/brand"
    }
  },
  "type": "object",
  "required": [
    "product_id",
    "name",
    "price",
    "retailer"
  ]
}