{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bol-com/json-schema/bol-com-sales-forecast-response-schema.json",
  "title": "SalesForecastResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bol-com-insights-api-openapi.yml#/components/schemas/SalesForecastResponse",
  "required": [
    "countries",
    "name",
    "periods",
    "total",
    "type"
  ],
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Indicator name."
    },
    "type": {
      "type": "string",
      "description": "Interpretation of the data that applies to this measurement."
    },
    "total": {
      "$ref": "#/$defs/Total"
    },
    "countries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Countries"
      }
    },
    "periods": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SalesForecastPeriod"
      }
    }
  },
  "$defs": {
    "Countries": {
      "required": [
        "maximum",
        "minimum"
      ],
      "type": "object",
      "properties": {
        "countryCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "Countries in which this offer is currently on sale in the webshop, in ISO-3166-1 format."
        },
        "minimum": {
          "type": "number",
          "description": "Minimum number of estimated sales expectations on the bol.com platform.",
          "format": "double"
        },
        "maximum": {
          "type": [
            "number",
            "null"
          ],
          "description": "Maximum number of estimated sales expectations on the bol.com platform.",
          "format": "double"
        }
      }
    },
    "SalesForecastPeriod": {
      "required": [
        "countries",
        "total",
        "weeksAhead"
      ],
      "type": "object",
      "properties": {
        "weeksAhead": {
          "type": "integer",
          "description": "The number of weeks into the future, starting from today.",
          "format": "int32"
        },
        "total": {
          "$ref": "#/$defs/Total"
        },
        "countries": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Countries"
          }
        }
      }
    },
    "Total": {
      "required": [
        "maximum",
        "minimum"
      ],
      "type": "object",
      "properties": {
        "minimum": {
          "type": "number",
          "description": "Minimum number of estimated sales expectations on the bol.com platform.",
          "format": "double"
        },
        "maximum": {
          "type": [
            "number",
            "null"
          ],
          "description": "Maximum number of estimated sales expectations on the bol.com platform.",
          "format": "double"
        }
      }
    }
  }
}