{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bol-com/json-schema/bol-com-commission-schema.json",
  "title": "Commission",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bol-com-commissions-api-openapi.yml#/components/schemas/Commission",
  "required": [
    "condition",
    "ean",
    "fixedAmount",
    "percentage",
    "reductions",
    "totalCost",
    "unitPrice"
  ],
  "type": "object",
  "properties": {
    "ean": {
      "type": [
        "string",
        "null"
      ],
      "description": "The EAN number associated with this product."
    },
    "condition": {
      "type": [
        "string",
        "null"
      ],
      "description": "The condition of the offer."
    },
    "unitPrice": {
      "type": "number",
      "description": "The intended selling price per single unit up to 2 decimals precision, including VAT."
    },
    "fixedAmount": {
      "type": "number",
      "description": "A fixed commission fee, including VAT."
    },
    "percentage": {
      "type": "number",
      "description": "A percentage of commission, based on the intended selling price per unit, including VAT."
    },
    "totalCost": {
      "type": "number",
      "description": "The total commission for selling this product at bol.com. The price includes VAT for Dutch sellers, and excludes VAT for Belgium sellers."
    },
    "totalCostWithoutReduction": {
      "type": [
        "number",
        "null"
      ],
      "description": "The total commission for selling this product at bol.com without reductions including VAT."
    },
    "reductions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Reduction"
      }
    }
  },
  "$defs": {
    "Reduction": {
      "required": [
        "costReduction",
        "endDate",
        "maximumPrice",
        "startDate"
      ],
      "type": "object",
      "properties": {
        "maximumPrice": {
          "type": "number",
          "description": "Maximum offer price that can be used to benefit from a commission reduction, including VAT."
        },
        "costReduction": {
          "type": "number",
          "description": "A reduction to the commission if the maximum price criteria is met, including VAT."
        },
        "startDate": {
          "type": "string",
          "description": "The start date from which the commission reduction is valid, in ISO 8601 format.",
          "format": "date"
        },
        "endDate": {
          "type": "string",
          "description": "The end date from which the commission reduction is not valid anymore, in ISO 8601 format.",
          "format": "date"
        }
      }
    }
  }
}