{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dhl/json-schema/dhl-transport-instruction-response-success-schema.json",
  "title": "TransportInstructionResponseSuccess",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dhl-shipment-booking-dhl-freight-openapi.yml#/components/schemas/TransportInstructionResponseSuccess",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "shipment": {
      "$ref": "#/$defs/Shipment"
    }
  },
  "$defs": {
    "AdditionalInformation": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Contains predefined code values to handle country specific shipment fields for legal requirements. e.g. Hungarian EKAER (EKAER_FREE, EKAER_NUMBER), Polish SENT (SENT_REF,SENT_CARKEY), Romanian UIT (UIT_FREE, UIT_NUMBER).\n"
        },
        "stringValue": {
          "type": "string",
          "description": "Contains the content/value for the respective code. For EKAER_NUMBER: provide the Hungarian EKAER number and omit EKAER_FREE. For EKAER_FREE: provide true or false. If true, omit EKAER_NUMBER. For SENT_REF: provide the Polish SENT system reference value. For SENT_CARKEY: provide the Polish SENT carrier key. For UIT_FREE:indicate if this is Romanian UIT free. For UIT_NUMBER: indicate Romanian UIT number.\n"
        },
        "dateValue": {
          "type": "string",
          "format": "date-time"
        },
        "numericValue": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "AdditionalServicesDTO": {
      "type": "object",
      "properties": {
        "after12Delivery": {
          "type": "boolean"
        },
        "availablePickupTime": {
          "$ref": "#/$defs/AvailablePickupDeliveryTimeOptions"
        },
        "availableDeliveryTime": {
          "$ref": "#/$defs/AvailablePickupDeliveryTimeOptions"
        },
        "cashOnDelivery": {
          "$ref": "#/$defs/CashOnDeliveryOptions"
        },
        "dangerousGoods": {
          "type": "boolean"
        },
        "driverPreAdviceDelivery": {
          "type": "boolean"
        },
        "dropOffByConsignor": {
          "type": "boolean"
        },
        "fixedDeliveryDate": {
          "$ref": "#/$defs/FixedDeliveryDateOptions"
        },
        "insurance": {
          "$ref": "#/$defs/InsuranceOptions"
        },
        "highValueShipment": {
          "$ref": "#/$defs/HighValueShipmentOptions"
        },
        "loadingAids": {
          "$ref": "#/$defs/LoadingAidOptions"
        },
        "preAdvice": {
          "type": "boolean"
        },
        "priorityServiceP10": {
          "type": "boolean"
        },
        "priorityServiceP12": {
          "type": "boolean"
        },
        "sideLoadingPickup": {
          "type": "boolean"
        },
        "sideUnloadingDelivery": {
          "type": "boolean"
        },
        "tailLiftLoading": {
          "type": "boolean"
        },
        "tailLiftUnloading": {
          "type": "boolean"
        },
        "temperatureControlled": {
          "$ref": "#/$defs/TemperatureControlledOptions"
        },
        "thermoCold": {
          "$ref": "#/$defs/ThermoColdOptions"
        },
        "timeSlotBookingPickup": {
          "type": "boolean"
        },
        "timeSlotBookingDelivery": {
          "type": "boolean"
        }
      }
    },
    "Address": {
      "required": [
        "street",
        "cityName",
        "postalCode",
        "countryCode"
      ],
      "type": "object",
      "properties": {
        "street": {
          "maxLength": 40,
          "type": "string",
          "description": "Provide both street name and house number in this field."
        },
        "additionalAddressInfo": {
          "maxLength": 40,
          "type": "string"
        },
        "cityName": {
          "maxLength": 40,
          "type": "string"
        },
        "postalCode": {
          "maxLength": 12,
          "type": "string",
          "description": "For Ireland (IE) EirCode is not supported, use COUNTY NAME as Postal code."
        },
        "countryCode": {
          "maxLength": 2,
          "type": "string",
          "description": "ISO 3166-1 are two-letter country codes"
        }
      }
    },
    "AvailablePickupDeliveryTimeOptions": {
      "required": [
        "fromTime",
        "toTime"
      ],
      "type": "object",
      "description": "Use this time frame for indicating pickup/delivery location’s opening hours or when your goods are available for pickup.  For a fixed aligned pickup/delivery time slot window, please use the respective additional services time slot booking.    \n",
      "properties": {
        "fromTime": {
          "type": "string",
          "format": "time"
        },
        "toTime": {
          "type": "string",
          "format": "time"
        }
      }
    },
    "CashOnDeliveryOptions": {
      "required": [
        "amount",
        "currency"
      ],
      "type": "object",
      "properties": {
        "amount": {
          "type": "integer",
          "format": "int64"
        },
        "currency": {
          "maxLength": 3,
          "type": "string",
          "description": "ISO 4217 codes are three-letter currency codes"
        }
      }
    },
    "DangerousGoods": {
      "required": [
        "unNumber",
        "properShippingName",
        "adrClass",
        "tunnelCode",
        "grossWeight",
        "numberOfPieces",
        "packageType"
      ],
      "type": "object",
      "properties": {
        "dgmId": {
          "type": "integer",
          "format": "int32",
          "description": "Unique ADR identification. Only relevant if you use the vendor DG Office for ADR. If not then leave empty/omit.\n"
        },
        "adrClass": {
          "maxLength": 7,
          "type": "string",
          "description": "ADR Class is mandatory,  but can be left empty for limited quantities (LQ) and excepted quantities (EQ).  \n"
        },
        "unNumber": {
          "type": "string"
        },
        "properShippingName": {
          "maxLength": 45,
          "type": "string",
          "description": "The Proper Shipping Name (PSN) is that portion of the ADR entry most accurately describing the goods in."
        },
        "flashpointValue": {
          "type": "string",
          "description": "in degrees Celsius"
        },
        "packageGroup": {
          "maxLength": 3,
          "type": "string",
          "description": "Official ADR package group codes I, II, III or blanks"
        },
        "tunnelCode": {
          "maxLength": 6,
          "type": "string"
        },
        "grossWeight": {
          "type": "number",
          "format": "double"
        },
        "quantityMeasurementUnitQualifier": {
          "type": "string",
          "enum": [
            "KG",
            "LTR"
          ],
          "description": "KG or LTR"
        },
        "quantityMeasurementValue": {
          "type": "number",
          "format": "double"
        },
        "numberOfPieces": {
          "type": "integer",
          "format": "int32"
        },
        "packageType": {
          "maxLength": 5,
          "type": "string",
          "description": "Official ADR Packaging code"
        },
        "officialNameTechDescription": {
          "maxLength": 256,
          "type": "string",
          "description": "This is the additional technical name, only when required for UN-number with N.O.S. Not Otherwise Specified, so additional chemical substance name is then required.\n"
        },
        "marinePollutant": {
          "type": "boolean"
        },
        "marinePollutantName": {
          "maxLength": 45,
          "type": "string"
        },
        "exceptedQuantity": {
          "type": "boolean"
        },
        "limitedQuantity": {
          "type": "boolean"
        },
        "emptyContainer": {
          "type": "boolean"
        },
        "environmentHazardous": {
          "type": "boolean"
        },
        "waste": {
          "type": "boolean"
        },
        "netExplosiveMass": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "FixedDeliveryDateOptions": {
      "required": [
        "date"
      ],
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        }
      }
    },
    "HighValueShipmentOptions": {
      "required": [
        "currency",
        "value"
      ],
      "type": "object",
      "properties": {
        "value": {
          "type": "number",
          "format": "double"
        },
        "currency": {
          "maxLength": 3,
          "type": "string",
          "description": "ISO 4217 codes are three-letter currency codes.\n"
        }
      }
    },
    "InsuranceOptions": {
      "required": [
        "currency",
        "value"
      ],
      "type": "object",
      "properties": {
        "value": {
          "type": "number",
          "format": "double"
        },
        "currency": {
          "maxLength": 3,
          "type": "string",
          "description": "ISO 4217 codes are three-letter currency codes.\n"
        }
      }
    },
    "LoadingAidOptions": {
      "type": "object",
      "properties": {
        "numberOfEuropallets": {
          "type": "integer",
          "format": "int32"
        },
        "numberOfSkeletonBoxes": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "Party": {
      "required": [
        "address",
        "name",
        "type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "maxLength": 15,
          "type": "string",
          "description": "For a consignor, consignee or freight payer the customer account number. Mandatory for the party that according to the payer code will be freight payer."
        },
        "type": {
          "maxLength": 15,
          "type": "string",
          "enum": [
            "Consignor",
            "Pickup",
            "Consignee",
            "Delivery"
          ]
        },
        "vat": {
          "$ref": "#/$defs/PartyVAT"
        },
        "vatEoriSocialSecurityNumber": {
          "maxLength": 20,
          "type": "string",
          "description": "EORI as Economic Operators Registration and Identification. Used for customs identification when importing or exporting goods to/from the EU and issued  by customs authorities in the EU member state for import-export-transit, in order to use for customer clearance.\n"
        },
        "name": {
          "maxLength": 70,
          "type": "string"
        },
        "contactName": {
          "maxLength": 40,
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/Address"
        },
        "phone": {
          "maxLength": 64,
          "type": "string"
        },
        "email": {
          "maxLength": 64,
          "type": "string"
        }
      }
    },
    "PartyVAT": {
      "type": "object",
      "description": "According some countries (eg Greece) legislation for ALL transport to and from etc, VAT (Value Added Tax)  or TAX ID is required to identification and compliance within the EU for tax compliance.  This data issued by national tax authorities in each EU member state.\n",
      "properties": {
        "countryCode": {
          "type": "string",
          "description": "Under referenced legislation; the VAT country prefix as general the country 2  or 3 letters ISO code like CHE for Switzerland and EL for Greece.\n",
          "maxLength": 3
        },
        "number": {
          "type": "string",
          "description": "Under referenced legislation; the number part of the VAT, can include characters depending on the countries specific format.\n",
          "maxLength": 11
        }
      },
      "additionalProperties": false
    },
    "PayerCode": {
      "required": [
        "code"
      ],
      "type": "object",
      "properties": {
        "code": {
          "maxLength": 3,
          "type": "string",
          "description": "See the Product Manual for available options (DAP, DDP, EXW, CIP) based on selected product. You can also use GET /products {productCode} to see available payer codes for your product.\n"
        },
        "location": {
          "maxLength": 17,
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "Piece": {
      "required": [
        "numberOfPieces",
        "packageType",
        "weight"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "array",
          "description": "The SSCC (Serial Shipping Container Code) a unique GS1/GS1-128 number, Used to identify a logistic unit, such as a case, pallet or parcel. Leave empty to get it assigned automatically.\n",
          "items": {
            "maxLength": 35,
            "type": "string"
          }
        },
        "goodsType": {
          "maxLength": 70,
          "type": "string",
          "description": "Description of goods on cargo detail level."
        },
        "packageType": {
          "maxLength": 4,
          "type": "string",
          "description": "See the Product Manual for available options based on selected product. You can also use Product API's GET/packagetypes {productCode} to receive the allowed package types for your selected product.\n"
        },
        "marksAndNumbers": {
          "maxLength": 45,
          "type": "string"
        },
        "numberOfPieces": {
          "maximum": 999,
          "minimum": 1,
          "type": "integer",
          "format": "int32"
        },
        "weight": {
          "maximum": 99999,
          "type": "number",
          "description": "Item weight in kg",
          "format": "double"
        },
        "volume": {
          "maximum": 999,
          "type": "number",
          "description": "Item volume in m³",
          "format": "double"
        },
        "loadingMeters": {
          "maximum": 99,
          "type": "number",
          "format": "double"
        },
        "width": {
          "maximum": 999,
          "type": "number",
          "description": "Item width in cm",
          "format": "double"
        },
        "height": {
          "maximum": 999,
          "type": "number",
          "description": "Item height in cm",
          "format": "double"
        },
        "length": {
          "maximum": 9999,
          "type": "number",
          "description": "Item length in cm",
          "format": "double"
        },
        "stackable": {
          "type": "boolean"
        },
        "dangerousGoods": {
          "maxItems": 999,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DangerousGoods"
          }
        }
      }
    },
    "Reference": {
      "required": [
        "qualifier",
        "value"
      ],
      "type": "object",
      "properties": {
        "qualifier": {
          "maxLength": 3,
          "type": "string",
          "enum": [
            "CNR",
            "CNZ",
            "INV"
          ],
          "description": "Standard qualifier codes:  CNR = Consignor CNZ = Consignee INV = Invoice\n"
        },
        "value": {
          "maxLength": 35,
          "type": "string"
        }
      }
    },
    "Shipment": {
      "required": [
        "parties",
        "payerCode",
        "pieces",
        "productCode"
      ],
      "type": "object",
      "properties": {
        "id": {
          "maxLength": 13,
          "type": "string",
          "description": "The shipment's tracking id: The unique number that ensures that packages are not separated from each other during transport from one point to another. Leave empty to get it assigned automatically.\n"
        },
        "productCode": {
          "maxLength": 3,
          "type": "string",
          "description": "See the Product Manual for available options.  You can also use GET /products to see available product for your region. With POST /productmatches you can validate which products fit to your shipment details.\n"
        },
        "pickupDate": {
          "type": "string",
          "description": "Used with **DHL Road Freight Standard and DHL Road Freight Priority**. The earliest pickup date. Depending on booking deadline and availability the pickup date may be altered by DHL Freight.\n",
          "format": "date"
        },
        "requestedDeliveryDate": {
          "type": "string",
          "description": "Required with **DHL Road Freight Priority** and Commited Delivery Date (CDD).",
          "format": "date"
        },
        "pickupInstruction": {
          "maxLength": 512,
          "type": "string"
        },
        "deliveryInstruction": {
          "maxLength": 512,
          "type": "string"
        },
        "totalNumberOfPieces": {
          "maximum": 999,
          "type": "integer",
          "format": "int32"
        },
        "totalWeight": {
          "maximum": 99999,
          "type": "number",
          "description": "The shipment total weight in kg",
          "format": "double"
        },
        "totalVolume": {
          "maximum": 999,
          "type": "number",
          "description": "The shipment total volume in m³",
          "format": "double"
        },
        "totalLoadingMeters": {
          "maximum": 99,
          "type": "number",
          "description": "A loading meter (LDM) is 1 meter of the loading space of a truck's width and full height. Usually calculated for goods that cannot be stacked on or with other goods.\n",
          "format": "double"
        },
        "goodsDescription": {
          "maxLength": 70,
          "type": "string",
          "description": "Goods description on shipment level.  On piece level also a description can be provided with goodsType\n"
        },
        "goodsValue": {
          "maximum": 9999999,
          "type": "number",
          "description": "Goods value in monetary"
        },
        "goodsValueCurrency": {
          "maxLength": 3,
          "type": "string",
          "description": "ISO 4217 codes are three-letter currency codes"
        },
        "references": {
          "maxItems": 99,
          "type": "array",
          "items": {
            "$ref": "#/$defs/Reference"
          }
        },
        "payerCode": {
          "$ref": "#/$defs/PayerCode"
        },
        "parties": {
          "maxItems": 6,
          "minItems": 2,
          "type": "array",
          "items": {
            "$ref": "#/$defs/Party"
          }
        },
        "pieces": {
          "maxItems": 999,
          "minItems": 1,
          "type": "array",
          "items": {
            "$ref": "#/$defs/Piece"
          }
        },
        "additionalServices": {
          "$ref": "#/$defs/AdditionalServicesDTO"
        },
        "additionalInformation": {
          "maxItems": 99,
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdditionalInformation"
          }
        }
      }
    },
    "TemperatureControlledOptions": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/$defs/ThermoType"
        },
        "min": {
          "type": "number",
          "format": "double"
        },
        "max": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "ThermoColdOptions": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number",
          "format": "double"
        },
        "max": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "ThermoType": {
      "type": "string",
      "enum": [
        "Cold",
        "Ambient",
        "Custom"
      ],
      "description": "Thermo Type as Cold (2-8 °C), Ambient (15-25 °C), Custom (min-max °C)"
    }
  }
}