{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-shipment-order-request-schema.json",
  "title": "ShipmentOrderRequest",
  "description": "Complex request structure used to create, update, and validate shipment data. Note that most elements are part of the array of shipment items.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-parcel-de-shipping-post-parcel-germany-v2-openapi.yml#/components/schemas/ShipmentOrderRequest",
  "required": [
    "profile",
    "shipments"
  ],
  "type": "object",
  "properties": {
    "profile": {
      "maxLength": 35,
      "minLength": 0,
      "type": "string"
    },
    "shipments": {
      "maxItems": 30,
      "minItems": 1,
      "type": "array",
      "description": "Shipment array having details for each shipment.",
      "items": {
        "$ref": "#/$defs/Shipment"
      }
    }
  },
  "$defs": {
    "BankAccount": {
      "required": [
        "accountHolder",
        "iban"
      ],
      "type": "object",
      "properties": {
        "accountHolder": {
          "maxLength": 80,
          "minLength": 0,
          "type": "string"
        },
        "bankName": {
          "maxLength": 80,
          "minLength": 0,
          "type": "string"
        },
        "iban": {
          "pattern": "[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}",
          "type": "string"
        },
        "bic": {
          "pattern": "[a-zA-Z0-9]{8,11}",
          "type": "string"
        }
      },
      "description": "Bank account data used for CoD (Cash on Delivery)."
    },
    "Commodity": {
      "required": [
        "itemDescription",
        "itemValue",
        "itemWeight",
        "packagedQuantity"
      ],
      "type": "object",
      "properties": {
        "itemDescription": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string",
          "description": "A text that describes the commodity item. Only the first 50 characters of the description text is printed on the customs declaration form CN23."
        },
        "countryOfOrigin": {
          "$ref": "#/$defs/Country"
        },
        "hsCode": {
          "maxLength": 11,
          "minLength": 6,
          "type": "string",
          "description": "Harmonized System Code aka Customs tariff number."
        },
        "packagedQuantity": {
          "type": "integer",
          "description": "How many items of that type are in the package",
          "format": "int32"
        },
        "itemValue": {
          "$ref": "#/$defs/Value"
        },
        "itemWeight": {
          "$ref": "#/$defs/Weight"
        }
      },
      "description": "Commodity line item (e.g. a t-shirt) for international shipments which require individual listing of goods. Each good must contain a description of the item, the amount of the item, the net weight of one single item and the value of one single item. If you ship 5 t-shirts, you need to include the weight and value of one single shirt. The correct final weight and value will be calculated automatically.\nThe HS Code and the country of origin are optional."
    },
    "Consignee": {
      "type": "object",
      "description": "Consignee address information. Either a doorstep address (contact address) including contact information or a droppoint address. One of packstation (parcel locker), or post office (postfiliale/retail shop).",
      "oneOf": [
        {
          "$ref": "#/$defs/ContactAddress"
        },
        {
          "$ref": "#/$defs/Locker"
        },
        {
          "$ref": "#/$defs/PostOffice"
        },
        {
          "$ref": "#/$defs/POBox"
        }
      ]
    },
    "ContactAddress": {
      "required": [
        "addressStreet",
        "city",
        "country",
        "name1"
      ],
      "type": "object",
      "properties": {
        "name1": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "Name1. Line 1 of name information"
        },
        "name2": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "An optional, additional line of name information"
        },
        "name3": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "An optional, additional line of name information"
        },
        "dispatchingInformation": {
          "maxLength": 35,
          "minLength": 1,
          "type": "string",
          "description": "An optional, additional line of address. It is printed on the shipping label for international shipments to the following countries only BEL, CZE, NLD. It is positioned below name3 on the label."
        },
        "addressStreet": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "Line 1 of the street address. This is just the street name. Can also include house number. If the house number is included Street and house number must be separated by a space to avoid validation errors."
        },
        "addressHouse": {
          "maxLength": 10,
          "minLength": 1,
          "type": "string",
          "description": "Line 1 of the street address. This is just the house number. Can be added to street name instead."
        },
        "additionalAddressInformation1": {
          "maxLength": 60,
          "minLength": 1,
          "type": "string",
          "description": "Additional information that is positioned either behind or below addressStreet on international shipment labels. Where exactly it is printed on the label depends on the country."
        },
        "additionalAddressInformation2": {
          "maxLength": 60,
          "minLength": 1,
          "type": "string",
          "description": "Additional information that is positioned either behind or below addressStreet on international shipment labels. It is printed on shipping labels to the following countries only AUT, CHN, DNK, GBR, HRV, LTU, PRT, ROU, RUS. Where exactly it is printed on the label depends on the country."
        },
        "postalCode": {
          "maxLength": 10,
          "minLength": 3,
          "pattern": "^[0-9A-Za-z]+([ -]?[0-9A-Za-z]+)*$",
          "type": "string",
          "description": "Mandatory for all countries that use a postal code system."
        },
        "city": {
          "maxLength": 40,
          "minLength": 1,
          "type": "string",
          "description": "city"
        },
        "state": {
          "maxLength": 20,
          "minLength": 1,
          "type": "string",
          "description": "State, province or territory. For the USA please use the official regional ISO-Codes, e.g. US-AL."
        },
        "country": {
          "$ref": "#/$defs/Country"
        },
        "contactName": {
          "maxLength": 80,
          "minLength": 3,
          "type": "string",
          "description": "optional contact name. (this is not the primary name printed on label)"
        },
        "phone": {
          "maxLength": 20,
          "minLength": 1,
          "type": "string",
          "description": "Please note that, in accordance with Art. 4 No. 11 GDPR, you must obtain the recipient's consent to forward their phone number to Deutsche Post DHL Group. For shipments within Germany, the phone number cannot be transmitted. In some countries the provision of a telephone number and/or e-mail address is mandatory for a delivery to a droppoint. If your recipient has objected to the disclosure of their telephone number and/or e-mail address, the shipment can only be delivered in these countries using the service Premium."
        },
        "email": {
          "maxLength": 80,
          "minLength": 3,
          "type": "string",
          "description": "Please note that, in accordance with Art. 4 No. 11 GDPR, you must obtain the recipient's consent to forward their e-mail address to Deutsche Post DHL Group. For shipments within Germany, the e-mail address is used to send a DHL Parcel Notification to the recipient. The e-mail address is not mandatory for shipments within Germany. In some countries the provision of a telephone number and/or e-mail address is mandatory for a delivery to a droppoint. If your recipient has objected to the disclosure of their telephone number and/or e-mail address, the shipment can only be delivered in these countries using the service Premium."
        }
      },
      "description": "Combines name, address, contact information. The recommended way is to use the mandatory attribute addressStreet and submit the streetname and housenumber together â€“ alternatively addressHouse + addressStreet can be used. For many international addresses there is no house number, please do not set a period or any other sign to indicate that the address does not have a housenumber."
    },
    "Country": {
      "type": "string",
      "description": "A valid country code consisting of three characters according to ISO 3166-1 alpha-3.",
      "enum": [
        "ABW",
        "AFG",
        "AGO",
        "AIA",
        "ALA",
        "ALB",
        "AND",
        "ARE",
        "ARG",
        "ARM",
        "ASM",
        "ATG",
        "AUS",
        "AUT",
        "AZE",
        "BDI",
        "BEL",
        "BEN",
        "BES",
        "BFA",
        "BGD",
        "BGR",
        "BHR",
        "BHS",
        "BIH",
        "BLM",
        "BLR",
        "BLZ",
        "BMU",
        "BOL",
        "BRA",
        "BRB",
        "BRN",
        "BTN",
        "BVT",
        "BWA",
        "CAF",
        "CAN",
        "CCK",
        "CHE",
        "CHL",
        "CHN",
        "CIV",
        "CMR",
        "COD",
        "COG",
        "COK",
        "COL",
        "COM",
        "CPV",
        "CRI",
        "CUB",
        "CUW",
        "CXR",
        "CYM",
        "CYP",
        "CZE",
        "DEU",
        "DJI",
        "DMA",
        "DNK",
        "DOM",
        "DZA",
        "ECU",
        "EGY",
        "ERI",
        "ESP",
        "EST",
        "ETH",
        "FIN",
        "FJI",
        "FLK",
        "FRA",
        "FRO",
        "FSM",
        "GAB",
        "GBR",
        "GEO",
        "GGY",
        "GHA",
        "GIB",
        "GIN",
        "GLP",
        "GMB",
        "GNB",
        "GNQ",
        "GRC",
        "GRD",
        "GRL",
        "GTM",
        "GUF",
        "GUM",
        "GUY",
        "HKG",
        "HMD",
        "HND",
        "HRV",
        "HTI",
        "HUN",
        "IDN",
        "IMN",
        "IND",
        "IRL",
        "IRN",
        "IRQ",
        "ISL",
        "ISR",
        "ITA",
        "JAM",
        "JEY",
        "JOR",
        "JPN",
        "KAZ",
        "KEN",
        "KGZ",
        "KHM",
        "KIR",
        "KNA",
        "KOR",
        "KWT",
        "LAO",
        "LBN",
        "LBR",
        "LBY",
        "LCA",
        "LIE",
        "LKA",
        "LSO",
        "LTU",
        "LUX",
        "LVA",
        "MAC",
        "MAF",
        "MAR",
        "MCO",
        "MDA",
        "MDG",
        "MDV",
        "MEX",
        "MHL",
        "MKD",
        "MLI",
        "MLT",
        "MMR",
        "MNE",
        "MNG",
        "MNP",
        "MOZ",
        "MRT",
        "MSR",
        "MTQ",
        "MUS",
        "MWI",
        "MYS",
        "MYT",
        "NAM",
        "NCL",
        "NER",
        "NFK",
        "NGA",
        "NIC",
        "NIU",
        "NLD",
        "NOR",
        "NPL",
        "NRU",
        "NZL",
        "OMN",
        "PAK",
        "PAN",
        "PCN",
        "PER",
        "PHL",
        "PLW",
        "PNG",
        "POL",
        "PRI",
        "PRK",
        "PRT",
        "PRY",
        "PSE",
        "PYF",
        "QAT",
        "REU",
        "ROU",
        "RUS",
        "RWA",
        "SAU",
        "SDN",
        "SEN",
        "SGP",
        "SHN",
        "SJM",
        "SLB",
        "SLE",
        "SLV",
        "SMR",
        "SOM",
        "SPM",
        "SRB",
        "SSD",
        "STP",
        "SUR",
        "SVK",
        "SVN",
        "SWE",
        "SWZ",
        "SXM",
        "SYC",
        "SYR",
        "TCA",
        "TCD",
        "TGO",
        "THA",
        "TJK",
        "TKL",
        "TKM",
        "TLS",
        "TON",
        "TTO",
        "TUN",
        "TUR",
        "TUV",
        "TWN",
        "TZA",
        "UGA",
        "UKR",
        "URY",
        "USA",
        "UZB",
        "VAT",
        "VCT",
        "VEN",
        "VGB",
        "VIR",
        "VNM",
        "VUT",
        "WLF",
        "WSM",
        "YEM",
        "ZAF",
        "ZMB",
        "ZWE",
        "UNKNOWN"
      ]
    },
    "CustomsDetails": {
      "required": [
        "exportType",
        "postalCharges",
        "items"
      ],
      "type": "object",
      "properties": {
        "invoiceNo": {
          "maxLength": 35,
          "minLength": 0,
          "type": "string",
          "description": "Invoice number"
        },
        "exportType": {
          "type": "string",
          "description": "This contains the category of goods contained in parcel.",
          "enum": [
            "OTHER",
            "PRESENT",
            "COMMERCIAL_SAMPLE",
            "DOCUMENT",
            "RETURN_OF_GOODS",
            "COMMERCIAL_GOODS"
          ]
        },
        "exportDescription": {
          "maxLength": 80,
          "minLength": 0,
          "type": "string",
          "description": "Mandatory if exporttype is 'OTHER'"
        },
        "shippingConditions": {
          "type": "string",
          "description": "Aka 'Terms of Trade' aka 'Frankatur'. The attribute is exclusively used for the product Europaket (V54EPAK). DDU is deprecated (use DAP instead).",
          "enum": [
            "DAP",
            "DDP"
          ]
        },
        "permitNo": {
          "maxLength": 30,
          "minLength": 0,
          "type": "string",
          "description": "Permit number. Very rarely needed. Mostly relevant for higher value goods. An example use case would be an item made from crocodile leather which requires dedicated license / permit identified by that number."
        },
        "attestationNo": {
          "maxLength": 30,
          "minLength": 0,
          "type": "string",
          "description": "Attest or certification identified by this number. Very rarely needed. An example use case would be a medical shipment referring to an attestation that a certain amount of medicine may be imported within e.g. the current quarter of the year."
        },
        "hasElectronicExportNotification": {
          "type": "boolean",
          "description": "flag confirming whether electronic record for export was made"
        },
        "MRN": {
          "type": "string",
          "maxLength": 18
        },
        "postalCharges": {
          "allOf": [
            {
              "$ref": "#/$defs/Value"
            }
          ],
          "description": "Postal charges that have been charged to the recipient. The information must match the information on the invoice. Postal charges are added to the customs value which is the basis for the calculation of import duties. Since 1.1.2021 this information is mandatory according to requirements of the Universal Postal Union. The currency of the postal charges is used throughout the customs declaration form. The currency details of the individual goods items and the currency of the postal charges must match. Otherwise no shipping label will be created."
        },
        "officeOfOrigin": {
          "maxLength": 35,
          "minLength": 0,
          "type": "string",
          "description": "Deprecated (do not use anymore). Will appear on CN23."
        },
        "shipperCustomsRef": {
          "description": "Optional. The customs reference is used by customs authorities to identify economics operators an/or other persons involved. With the given reference, granted authorizations and/or relevant processes in customs clearance an/or taxation can be taken into account. Aka Zoll-Nummer or EORI-Number but dependent on destination.",
          "type": "string",
          "maxLength": 35
        },
        "consigneeCustomsRef": {
          "description": "Optional. The customs reference is used by customs authorities to identify economics operators an/or other persons involved. With the given reference, granted authorizations and/or relevant processes in customs clearance an/or taxation can be taken into account. Aka Zoll-Nummer or EORI-Number but dependent on destination.",
          "type": "string",
          "maxLength": 35
        },
        "items": {
          "maxItems": 99,
          "minItems": 1,
          "type": "array",
          "description": "Commodity types in that package",
          "items": {
            "$ref": "#/$defs/Commodity"
          }
        },
        "invoiceUsCustoms": {
          "type": "string",
          "description": "Batch ID of a previously uploaded US customs invoice. Required for shipments to the USA.",
          "maxLength": 36,
          "minLength": 0
        }
      },
      "description": "For international shipments, this section contains information necessary for customs about the exported goods. ExportDocument can contain one or more positions as child element. This data is also transferred as electronic declaration to customs. The custom details are mandatory depending on whether the parcel will go to a country outside the European Customs Union. For DHL Parcel International (V53WPAK) CN23 will returned as a separate document, while for Warenpost International the customs information will be printed onto the shipment label (CN22)."
    },
    "Dimensions": {
      "required": [
        "height",
        "length",
        "uom",
        "width"
      ],
      "type": "object",
      "properties": {
        "uom": {
          "type": "string",
          "description": "Unit of metric, applies to all dimensions contained.",
          "enum": [
            "cm",
            "mm"
          ]
        },
        "height": {
          "type": "integer",
          "format": "int32"
        },
        "length": {
          "type": "integer",
          "format": "int32"
        },
        "width": {
          "type": "integer",
          "format": "int32"
        }
      },
      "description": "Physical dimensions (aka 'Gurtmass') of the parcel. If you provide the dimension information, all attributes need to be provided. You cannot provide just the height, for example. If you provide length, width, and height in millimeters, they will be rounded to full cm."
    },
    "Locker": {
      "required": [
        "city",
        "lockerID",
        "name",
        "postNumber",
        "postalCode"
      ],
      "type": "object",
      "properties": {
        "name": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "Name"
        },
        "lockerID": {
          "maximum": 999,
          "minimum": 100,
          "type": "integer",
          "description": "Packstationnummer. Three digit number identifying the parcel locker in conjunction with city and postal code",
          "format": "int32"
        },
        "postNumber": {
          "pattern": "^[0-9]{6,10}$",
          "type": "string",
          "description": "postNumber (Postnummer) is the official account number a private DHL Customer gets upon registration."
        },
        "city": {
          "maxLength": 40,
          "minLength": 0,
          "type": "string",
          "description": "City where the locker is located"
        },
        "country": {
          "$ref": "#/$defs/Country"
        },
        "postalCode": {
          "maxLength": 10,
          "minLength": 3,
          "pattern": "^[0-9A-Za-z]+([ -]?[0-9A-Za-z]+)*$",
          "type": "string"
        }
      },
      "description": "Only usable for German Packstation, international lockers cannot be addressed directly. If your customer wishes for international delivery to a droppoint, please use DHL Parcel International (V53WPAK) with the delivery type \"Closest Droppoint\"."
    },
    "POBox": {
      "required": [
        "name1",
        "poBoxID",
        "city",
        "postalCode"
      ],
      "type": "object",
      "properties": {
        "name1": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "Name1. Line 1 of name information"
        },
        "name2": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "An optional, additional line of name information"
        },
        "name3": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "An optional, additional line of name information"
        },
        "poBoxID": {
          "type": "integer",
          "format": "int32",
          "description": "Number of P.O. Box (Postfach)"
        },
        "email": {
          "maxLength": 80,
          "minLength": 3,
          "type": "string",
          "description": "Email address of the consignee"
        },
        "city": {
          "maxLength": 80,
          "minLength": 0,
          "type": "string",
          "description": "City of the P.O. Box (Postfach) location"
        },
        "country": {
          "$ref": "#/$defs/Country"
        },
        "postalCode": {
          "maxLength": 10,
          "minLength": 3,
          "pattern": "^[0-9A-Za-z]+([ -]?[0-9A-Za-z]+)*$",
          "type": "string",
          "description": "Postal code of the P.O. Box (Postfach) location"
        }
      },
      "description": "Alternative destination - P.O. Box (Postfach)"
    },
    "PostOffice": {
      "required": [
        "city",
        "name",
        "postalCode",
        "retailID"
      ],
      "type": "object",
      "properties": {
        "name": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "Name"
        },
        "retailID": {
          "maximum": 999,
          "minimum": 401,
          "type": "integer",
          "description": "Id or Number of Post office / Filiale / outlet / parcel shop",
          "format": "int32"
        },
        "postNumber": {
          "maxLength": 10,
          "minLength": 3,
          "pattern": "^[0-9]{6,10}$",
          "type": "string",
          "description": "postNumber (Postnummer) is the official account number a private DHL Customer gets upon registration. To address a post office or retail outlet directly, either the post number or e-mail address of the consignee is needed."
        },
        "email": {
          "maxLength": 80,
          "minLength": 3,
          "type": "string",
          "description": "Email address of the consignee. To address a post office or retail outlet directly, either the post number or e-mail address of the consignee is needed."
        },
        "city": {
          "maxLength": 80,
          "minLength": 0,
          "type": "string",
          "description": "City where the retail location is"
        },
        "country": {
          "$ref": "#/$defs/Country"
        },
        "postalCode": {
          "maxLength": 10,
          "minLength": 3,
          "pattern": "^[0-9A-Za-z]+([ -]?[0-9A-Za-z]+)*$",
          "type": "string"
        }
      },
      "description": "Only usable for German post offices or retail outlets (Paketshops), international postOffices or retail outlets cannot be addressed directly. If your customer wishes for international delivery to a droppoint, please use DHL Parcel International (V53WPAK) with the delivery type \"Closest Droppoint\"."
    },
    "Product": {
      "type": "string",
      "description": "Determines the DHL Paket product to be used.\n\n* V01PAK: DHL PAKET;\n* V53WPAK: DHL PAKET International;\n* V54EPAK: DHL Europaket;\n* V62WP: Warenpost (will be replaced by DHL Kleinpaket from 1.1.2025);\n* V62KP: DHL Kleinpaket;\n* V66WPI: Warenpost International",
      "enum": [
        "V01PAK",
        "V53WPAK",
        "V54EPAK",
        "V62WP",
        "V62KP",
        "V66WPI"
      ]
    },
    "Shipment": {
      "type": "object",
      "properties": {
        "product": {
          "$ref": "#/$defs/Product"
        },
        "billingNumber": {
          "pattern": "\\w{10}\\d{2}\\w{2}",
          "type": "string",
          "description": "14 digit long number that identifies the contract the shipment is booked on. Please note that in rare cases the last to characters can be letters. Digit 11 and digit 12 must correspondent to the number of the product, e.g. 333333333301tt can only be used for the product V01PAK (DHL Paket)."
        },
        "refNo": {
          "maxLength": 35,
          "minLength": 8,
          "type": "string",
          "description": "A reference number that the user can assign for better association purposes. It appears on shipment labels. To use the reference number for tracking purposes, it should be at least 8 characters long and unique."
        },
        "costCenter": {
          "maxLength": 50,
          "type": "string",
          "description": "Textfield that appears on the shipment label. It cannot be used to search for the shipment."
        },
        "creationSoftware": {
          "type": "string",
          "description": "Is only to be indicated by DHL partners."
        },
        "shipDate": {
          "type": "string",
          "description": "Date the shipment is transferred to DHL. The shipment date can be the current date or a date up to a few days in the future. It must not be in the past. Iso format required: yyyy-mm-dd. On the shipment date the shipment will be automatically closed at your end of day closing time.",
          "format": "date"
        },
        "shipper": {
          "description": "Shipper information, including contact information and address. Alternatively, a predefined shipper reference can be used.",
          "oneOf": [
            {
              "$ref": "#/$defs/Shipper"
            },
            {
              "$ref": "#/$defs/ShipperReference"
            }
          ]
        },
        "consignee": {
          "$ref": "#/$defs/Consignee"
        },
        "details": {
          "$ref": "#/$defs/ShipmentDetails"
        },
        "services": {
          "$ref": "#/$defs/VAS"
        },
        "customs": {
          "$ref": "#/$defs/CustomsDetails"
        }
      },
      "description": "Container for all shipments. Mixed shipment products per request are supported. Each shipment has a dedicated shipper address (or shipper reference, or both)."
    },
    "ShipmentDetails": {
      "required": [
        "weight"
      ],
      "type": "object",
      "properties": {
        "dim": {
          "$ref": "#/$defs/Dimensions"
        },
        "weight": {
          "$ref": "#/$defs/Weight"
        }
      },
      "description": "Details for the shipment, such as dimensions, content"
    },
    "Shipper": {
      "type": "object",
      "description": "Shipper information, including contact information and address.",
      "required": [
        "addressStreet",
        "city",
        "country",
        "name1"
      ],
      "properties": {
        "name1": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "Name1. Line 1 of name information"
        },
        "name2": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "An optional, additional line of name information"
        },
        "name3": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "An optional, additional line of name information"
        },
        "addressStreet": {
          "maxLength": 50,
          "minLength": 1,
          "type": "string",
          "description": "Line 1 of the street address. This is just the street name. Can also include house number."
        },
        "addressHouse": {
          "maxLength": 10,
          "minLength": 1,
          "type": "string",
          "description": "Line 1 of the street address. This is just the house number. Can be added to street name instead."
        },
        "postalCode": {
          "maxLength": 10,
          "minLength": 3,
          "pattern": "^[0-9A-Za-z]+([ -]?[0-9A-Za-z]+)*$",
          "type": "string",
          "description": "Mandatory for all countries but Ireland that use a postal code system."
        },
        "city": {
          "maxLength": 40,
          "minLength": 1,
          "type": "string",
          "description": "city"
        },
        "country": {
          "$ref": "#/$defs/Country"
        },
        "contactName": {
          "maxLength": 80,
          "minLength": 3,
          "type": "string",
          "description": "optional contact name. (this is not the primary name printed on label)"
        },
        "email": {
          "maxLength": 80,
          "minLength": 3,
          "type": "string",
          "description": "Optional contact email address of the shipper"
        }
      }
    },
    "ShipperReference": {
      "type": "object",
      "description": "Contains a reference to the Shipper data configured in GKP(GeschÃ¤ftskundenportal - Business Costumer Portal). Can be used instead of a detailed shipper address. The shipper reference can be used to print a company logo which is configured in GKP onto the label.",
      "required": [
        "shipperRef"
      ],
      "properties": {
        "shipperRef": {
          "maxLength": 50,
          "minLength": 0,
          "type": "string",
          "description": "Reference string to the shipper data configured in GKP(GeschÃ¤ftskundenportal - Business Costumer Portal)."
        }
      }
    },
    "VAS": {
      "type": "object",
      "properties": {
        "preferredNeighbour": {
          "maxLength": 100,
          "minLength": 0,
          "type": "string",
          "description": "Preferred neighbour. Can be specified as text."
        },
        "preferredLocation": {
          "maxLength": 100,
          "minLength": 0,
          "type": "string",
          "description": "Preferred location. Can be specified as text."
        },
        "visualCheckOfAge": {
          "pattern": "A16|A18",
          "type": "string",
          "description": "if used it will trigger checking the age of recipient",
          "enum": [
            "A16",
            "A18"
          ]
        },
        "namedPersonOnly": {
          "type": "boolean",
          "description": "Delivery can only be signed for by yourself personally."
        },
        "identCheck": {
          "$ref": "#/$defs/VASIdentCheck"
        },
        "signedForByRecipient": {
          "type": "boolean",
          "description": "Delivery must be signed for by the recipient and not by DHL staff"
        },
        "endorsement": {
          "type": "string",
          "description": "Instructions and endorsement how to treat international undeliverable shipment. By default, shipments are returned if undeliverable. There are country specific rules whether the shipment is returned immediately or after a grace period.",
          "enum": [
            "RETURN",
            "ABANDON"
          ]
        },
        "preferredDay": {
          "type": "string",
          "description": "Preferred day of delivery in format YYYY-MM-DD. Shipper can request a preferred day of delivery. The preferred day should be between 2 and 6 working days after handover to DHL.",
          "format": "date"
        },
        "noNeighbourDelivery": {
          "type": "boolean",
          "description": "Delivery can only be signed for by yourself personally or by members of your household."
        },
        "additionalInsurance": {
          "$ref": "#/$defs/Value"
        },
        "bulkyGoods": {
          "type": "boolean",
          "description": "Leaving this out is same as setting to false. Sperrgut."
        },
        "cashOnDelivery": {
          "$ref": "#/$defs/VASCashOnDelivery"
        },
        "individualSenderRequirement": {
          "pattern": "[a-zA-Z0-9]{2}",
          "type": "string",
          "description": "Special instructions for delivery. 2 character code, possible values agreed in contract."
        },
        "premium": {
          "type": "boolean",
          "description": "Choice of premium vs economy parcel. Availability is country dependent and may be manipulated by DHL if choice is not available. Please review the label."
        },
        "closestDropPoint": {
          "type": "boolean",
          "description": "Closest Droppoint Delivery to the droppoint closest to the address of the recipient of the shipment. For this kind of delivery either the phone number and/or the e-mail address of the receiver is mandatory. For shipments using DHL Paket International it is recommended that you choose one of the three delivery types: Economy, Premium, CDP. Otherwise, the current default for the receiver country will be picked."
        },
        "parcelOutletRouting": {
          "type": "string",
          "description": "Undeliverable domestic shipment can be forwarded and held at retail. Notification to email (fallback: consignee email) will be used."
        },
        "goGreenPlus": {
          "type": "boolean",
          "description": "GoGreen Plus enables sustainable shipping by investing in measures to reduce greenhouse gas emissions at DHL."
        },
        "dhlRetoure": {
          "$ref": "#/$defs/VASDhlRetoure"
        },
        "postalDeliveryDutyPaid": {
          "type": "boolean",
          "description": "All import duties are paid by the shipper."
        },
        "paperlessCustoms": {
          "type": "string",
          "format": "uuid",
          "description": "batchId (see POST /customs-documents) referencing a previously uploaded set of customs documents for this shipment, enabling paperless customs clearance instead of physically attaching customs documents (e.g. CN23) to the parcel. A batchId can only be used for one shipment; reusing an already consumed batchId results in an error."
        }
      },
      "description": "Value added services. Please note that services are specific to products and geographies and/or may require individual setup and billing numbers. Please test and contact your account representative in case of questions."
    },
    "VASCashOnDelivery": {
      "required": [
        "transferNote1"
      ],
      "type": "object",
      "properties": {
        "amount": {
          "$ref": "#/$defs/Value"
        },
        "bankAccount": {
          "$ref": "#/$defs/BankAccount"
        },
        "accountReference": {
          "maxLength": 35,
          "minLength": 0,
          "type": "string",
          "description": "Reference to bank account details. Account references are maintained in customer settings in Post & DHL business customer portal under Ship -> Settings -> Cash on delivery. Please note, that the default account reference is used if the provided account reference does not exist in your customer settings!"
        },
        "transferNote1": {
          "maxLength": 35,
          "minLength": 0,
          "type": "string"
        },
        "transferNote2": {
          "maxLength": 35,
          "minLength": 0,
          "type": "string"
        }
      },
      "description": "Cash on delivery (Nachnahme). Currency must be Euro. Either bank account information or account reference (from customer profile) must be provided. Transfernote1 + 2 are references transmitted during bank transfer. Providing account information explicitly requires elevated privileges."
    },
    "VASDhlRetoure": {
      "required": [
        "billingNumber"
      ],
      "type": "object",
      "properties": {
        "billingNumber": {
          "pattern": "\\w{10}\\d{2}\\w{2}",
          "type": "string"
        },
        "refNo": {
          "maxLength": 50,
          "minLength": 6,
          "type": "string"
        },
        "returnAddress": {
          "$ref": "#/$defs/ContactAddress"
        },
        "goGreenPlus": {
          "type": "boolean",
          "description": "GoGreen Plus enables sustainable shipping by investing in measures to reduce greenhouse gas emissions at DHL."
        }
      },
      "description": "Requests return label (aka 'retoure') to be provided. Also requires returnAddress and return billing number. Neither weight nor dimension need to be specified for the retoure (flat rate service)."
    },
    "VASIdentCheck": {
      "required": [
        "firstName",
        "lastName"
      ],
      "type": "object",
      "properties": {
        "firstName": {
          "maxLength": 35,
          "minLength": 1,
          "type": "string"
        },
        "lastName": {
          "maxLength": 35,
          "minLength": 1,
          "type": "string"
        },
        "dateOfBirth": {
          "type": "string",
          "description": "date of birth, used in conjunction with minimumAge and shipping date. Format yyyy-mm-dd is used.",
          "format": "date"
        },
        "minimumAge": {
          "pattern": "A16|A18",
          "type": "string",
          "description": "Checks if recipient will have reached specified age by shipping date.",
          "enum": [
            "A16",
            "A18"
          ]
        }
      },
      "description": "Check the identity of the recipient via name (firstname, lastname), date of birth or age. This uses firstName and lastName as separate attributes since for identity check an automatic split of a one-line name is not considered reliable enough."
    },
    "Value": {
      "required": [
        "currency",
        "value"
      ],
      "type": "object",
      "description": "Currency and numeric value.",
      "properties": {
        "currency": {
          "type": "string",
          "description": "iso 4217 3 character currency code accepted. Recommended to use EUR where possible",
          "enum": [
            "AED",
            "AFN",
            "ALL",
            "AMD",
            "ANG",
            "AOA",
            "ARS",
            "AUD",
            "AWG",
            "AZN",
            "BAM",
            "BBD",
            "BDT",
            "BGN",
            "BHD",
            "BIF",
            "BMD",
            "BND",
            "BOB",
            "BOV",
            "BRL",
            "BSD",
            "BTN",
            "BWP",
            "BYR",
            "BZD",
            "CAD",
            "CDF",
            "CHE",
            "CHF",
            "CHW",
            "CLF",
            "CLP",
            "CNY",
            "COP",
            "COU",
            "CRC",
            "CUC",
            "CUP",
            "CVE",
            "CZK",
            "DJF",
            "DKK",
            "DOP",
            "DZD",
            "EGP",
            "ERN",
            "ETB",
            "EUR",
            "FJD",
            "FKP",
            "GBP",
            "GEL",
            "GHS",
            "GIP",
            "GMD",
            "GNF",
            "GTQ",
            "GYD",
            "HKD",
            "HNL",
            "HRK",
            "HTG",
            "HUF",
            "IDR",
            "ILS",
            "INR",
            "IQD",
            "IRR",
            "ISK",
            "JMD",
            "JOD",
            "JPY",
            "KES",
            "KGS",
            "KHR",
            "KMF",
            "KPW",
            "KRW",
            "KWD",
            "KYD",
            "KZT",
            "LAK",
            "LBP",
            "LKR",
            "LRD",
            "LSL",
            "LTL",
            "LVL",
            "LYD",
            "MAD",
            "MDL",
            "MGA",
            "MKD",
            "MMK",
            "MNT",
            "MOP",
            "MRO",
            "MUR",
            "MVR",
            "MWK",
            "MXN",
            "MXV",
            "MYR",
            "MZN",
            "NAD",
            "NGN",
            "NIO",
            "NOK",
            "NPR",
            "NZD",
            "OMR",
            "PAB",
            "PEN",
            "PGK",
            "PHP",
            "PKR",
            "PLN",
            "PYG",
            "QAR",
            "RON",
            "RSD",
            "RUB",
            "RWF",
            "SAR",
            "SBD",
            "SCR",
            "SDG",
            "SEK",
            "SGD",
            "SHP",
            "SLL",
            "SOS",
            "SRD",
            "SSP",
            "STD",
            "SYP",
            "SZL",
            "THB",
            "TJS",
            "TMT",
            "TND",
            "TOP",
            "TRY",
            "TTD",
            "TWD",
            "TZS",
            "UAH",
            "UGX",
            "USD",
            "USN",
            "USS",
            "UYI",
            "UYU",
            "UZS",
            "VEF",
            "VND",
            "VUV",
            "WST",
            "XAF",
            "XAG",
            "XAU",
            "XBA",
            "XBB",
            "XBC",
            "XBD",
            "XCD",
            "XDR",
            "XFU",
            "XOF",
            "XPD",
            "XPF",
            "XPT",
            "XXX",
            "YER",
            "ZAR",
            "ZMW",
            "UNKNOWN"
          ]
        },
        "value": {
          "type": "number",
          "description": "Numeric value",
          "maximum": 100000,
          "exclusiveMaximum": false,
          "minimum": 0,
          "exclusiveMinimum": false
        }
      }
    },
    "Weight": {
      "required": [
        "uom",
        "value"
      ],
      "type": "object",
      "properties": {
        "uom": {
          "type": "string",
          "description": "metric unit for weight",
          "enum": [
            "g",
            "kg"
          ]
        },
        "value": {
          "maximum": 31500,
          "exclusiveMaximum": false,
          "minimum": 0,
          "exclusiveMinimum": false,
          "type": "number"
        }
      },
      "description": "Weight of item or shipment. Both uom and value are required."
    }
  }
}