{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postnl/json-schema/postnl-shippingstatus-response-updated-shipments-schema.json",
  "title": "shippingstatusResponseUpdatedShipments",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postnl-shippingstatus-api-openapi.yml#/components/schemas/shippingstatusResponseUpdatedShipments",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "Barcode": {
        "type": "string",
        "description": "The barcode belonging to the status update"
      },
      "CreationDate": {
        "type": "string",
        "description": "The date of the update"
      },
      "CustomerNumber": {
        "type": "string",
        "description": "The customer number"
      },
      "CustomerCode": {
        "type": "string",
        "description": "The customer code"
      },
      "Status": {
        "$ref": "#/$defs/updatedShipmentStatus"
      }
    }
  },
  "$defs": {
    "updatedShipmentStatus": {
      "type": "object",
      "description": "The status update. See [Status codes](https://developer.postnl.nl/docs/#/http/reference-data/error-codes) for possible values.",
      "properties": {
        "Timestamp": {
          "type": "string",
          "description": "The timestamp of the update"
        },
        "StatusCode": {
          "type": "string",
          "description": "The status code"
        },
        "StatusDescription": {
          "type": "string",
          "description": "The status description"
        },
        "PhaseCode": {
          "type": "string",
          "description": "The phase code"
        },
        "PhaseDescription": {
          "type": "string",
          "description": "The phase description"
        }
      }
    }
  }
}