{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bol-com/json-schema/bol-com-reduced-orders-schema.json",
  "title": "ReducedOrders",
  "description": "Container for many orders.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bol-com-orders-api-openapi.yml#/components/schemas/ReducedOrders",
  "required": [
    "orders"
  ],
  "type": "object",
  "properties": {
    "orders": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReducedOrder"
      }
    }
  },
  "$defs": {
    "ReducedOrder": {
      "required": [
        "orderId",
        "orderItems",
        "orderPlacedDateTime"
      ],
      "type": "object",
      "properties": {
        "orderId": {
          "type": "string",
          "description": "The identifier of the order."
        },
        "orderPlacedDateTime": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time in ISO 8601 format when the order was placed.",
          "format": "date-time"
        },
        "orderItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReducedOrderItem"
          }
        }
      },
      "description": "An order."
    },
    "ReducedOrderItem": {
      "required": [
        "cancellationRequest",
        "ean",
        "fulfilmentMethod",
        "fulfilmentStatus",
        "latestChangedDateTime",
        "orderItemId",
        "quantity",
        "quantityCancelled",
        "quantityShipped"
      ],
      "type": "object",
      "properties": {
        "orderItemId": {
          "type": "string",
          "description": "The id for the order item. One order can have multiple order items, but the list can only take one item."
        },
        "ean": {
          "type": "string",
          "description": "The EAN number associated with this product."
        },
        "fulfilmentMethod": {
          "type": "string",
          "description": "The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB).",
          "enum": [
            "FBR",
            "FBB"
          ]
        },
        "fulfilmentStatus": {
          "type": "string",
          "description": "This field indicates the processing state of an order. It can have two values: \"OPEN,\" which corresponds to active order items excluding those that have been shipped or cancelled, and \"HANDLED,\" which means the order item has either been shipped or cancelled.",
          "enum": [
            "OPEN",
            "HANDLED"
          ]
        },
        "quantity": {
          "type": "integer",
          "description": "Amount of ordered products for this order item id.",
          "format": "int32"
        },
        "quantityShipped": {
          "type": "integer",
          "description": "Amount of shipped products for this order item id.",
          "format": "int32"
        },
        "quantityCancelled": {
          "type": "integer",
          "description": "Amount of cancelled products for this order item id.",
          "format": "int32"
        },
        "cancellationRequest": {
          "type": "boolean",
          "description": "Indicates whether the order was cancelled on request of the customer before the retailer has shipped it."
        },
        "latestChangedDateTime": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time in ISO 8601 format when the orderItem was last changed.",
          "format": "date-time"
        }
      },
      "description": "An order item."
    }
  }
}