{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bol-com/json-schema/bol-com-shipments-response-schema.json",
  "title": "ShipmentsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bol-com-shipments-api-openapi.yml#/components/schemas/ShipmentsResponse",
  "required": [
    "shipments"
  ],
  "type": "object",
  "properties": {
    "shipments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReducedShipment"
      }
    }
  },
  "$defs": {
    "ReducedShipment": {
      "required": [
        "order",
        "shipmentId",
        "shipmentItems",
        "shipmentReference",
        "transport"
      ],
      "type": "object",
      "properties": {
        "shipmentId": {
          "type": "string",
          "description": "A unique identifier for this shipment."
        },
        "shipmentDateTime": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time in ISO 8601 format when the order item was shipped.",
          "format": "date-time"
        },
        "shipmentReference": {
          "type": "string",
          "description": "Reference supplied by the user when this item was shipped."
        },
        "order": {
          "$ref": "#/$defs/ReducedShipmentOrder"
        },
        "shipmentItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReducedShipmentItem"
          }
        },
        "transport": {
          "$ref": "#/$defs/ReducedTransport"
        }
      }
    },
    "ReducedShipmentItem": {
      "required": [
        "ean",
        "orderItemId"
      ],
      "type": "object",
      "properties": {
        "orderItemId": {
          "type": "string",
          "description": "A unique identifier for the item of the order that was shipped in this shipment."
        },
        "ean": {
          "type": "string",
          "description": "The EAN number associated with this product."
        }
      }
    },
    "ReducedShipmentOrder": {
      "required": [
        "orderId"
      ],
      "type": "object",
      "properties": {
        "orderId": {
          "type": "string",
          "description": "A unique identifier for the order this shipment is related to."
        },
        "orderPlacedDateTime": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date and time in ISO 8601 format when the order was placed.",
          "format": "date-time"
        }
      }
    },
    "ReducedTransport": {
      "required": [
        "transportId"
      ],
      "type": "object",
      "properties": {
        "transportId": {
          "type": "string",
          "description": "The transport id."
        }
      }
    }
  }
}