{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postnl/json-schema/postnl-confirming-response-schema.json",
  "title": "confirmingResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postnl-confirming-api-openapi.yml#/components/schemas/confirmingResponse",
  "type": "object",
  "properties": {
    "ResponseShipments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/confirmingResponseShipment"
      }
    }
  },
  "$defs": {
    "confirmingError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The error code"
        },
        "Description": {
          "type": "string",
          "description": "The error description"
        }
      }
    },
    "confirmingResponseShipment": {
      "type": "object",
      "properties": {
        "Errors": {
          "type": "array",
          "description": "Possible errors. See the [Error Codes](https://developer.postnl.nl/docs/#/http/reference-data/error-codes) for possible values",
          "items": {
            "$ref": "#/$defs/confirmingError"
          }
        },
        "Warnings": {
          "type": "array",
          "description": "Possible warnings. See the [Error Codes](https://developer.postnl.nl/docs/#/http/reference-data/error-codes) for possible values",
          "items": {
            "type": "object",
            "properties": {
              "Code": {
                "type": "string",
                "description": "The Warning code"
              },
              "Description": {
                "type": "string",
                "description": "The warning description"
              }
            }
          }
        },
        "Barcode": {
          "type": "string",
          "description": "The barcode used"
        }
      }
    }
  }
}