{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postnl/json-schema/postnl-deliverydate-delivery-response-schema.json",
  "title": "deliverydateDeliveryResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postnl-deliverydate-api-openapi.yml#/components/schemas/deliverydateDeliveryResponse",
  "type": "object",
  "properties": {
    "DeliveryDate": {
      "type": "string"
    },
    "Options": {
      "$ref": "#/$defs/deliverydateOptions"
    },
    "Sustainability": {
      "type": "object",
      "description": "Sustainability score; see [Sustainability codes](https://developer.postnl.nl/docs/#/http/reference-data/reference-codes/sustainability-codes) for possible values.",
      "properties": {
        "Code": {
          "type": "string",
          "description": "Sustainability score code",
          "enum": [
            "00",
            "01",
            "02",
            "03"
          ]
        },
        "Description": {
          "type": "string",
          "description": "Sustainability score code description"
        }
      }
    }
  },
  "$defs": {
    "deliverydateOptions": {
      "type": "object",
      "description": "The delivery options for which a delivery date is returned. Only one delivery option is specified. See [Delivery Options](https://developer.postnl.nl/docs/#/http/reference-data/reference-codes/delivery-options) for possible values.",
      "properties": {
        "string": {
          "type": "string",
          "enum": [
            "Daytime",
            "Evening",
            "Morning",
            "Noon",
            "Afternoon"
          ]
        }
      }
    }
  }
}