DHL Shipment Booking Virtual Sandbox

Virtual API for booking Air, Ocean, Rail, and Road freight shipments.

The DHL Global Forwarding Shipment Booking API enables developers to programmatically book freight shipments across various transport modes. It supports the creation, management, and status tracking of bookings within DHL's global transport management systems.

Use this hosted sandbox to simulate DHL Shipment Booking APIs without authentication, API keys, or extra dependencies. Point your code or SDK to the Beeceptor base URL, preferably through an environment variable or feature flag, and switch back to the production API when ready. This keeps your integration code consistent across local development, QA, demos, and production.

Use cases:

Use this sandbox to validate shipment booking payloads, handle multi-modal freight requirements, verify status update transitions, and test codelist integration for origin/destination mapping before connecting to DHL production systems.

DHL Shipment Booking virtual sandbox is up and running!

Use this sandbox URL as the API base in your code to simulate DHL Shipment Booking responses instantly.

https://dhl-shipment-booking.mock.beeceptor.com



General(4 operations)

{
  "housebillNumber": "SGLA00344",
  "externalBookingID": "REF01234",
  "modeOfTransport": "AIR",
  "shipmentBranchCode": "SIN",
  "originLocationCode": "SGSIN",
  "originLocationName": "Singapore",
  "originCountryCode": "SG",
  "destinationLocationCode": "USMIA",
  "destinationLocationName": "Miami FL",
  "destinationCountryCode": "US",
  "requestedPickupDate": "2019-09-02T19:00:00+01:00",
  "requestedShippingDate": "2019-09-03T19:00:00+01:00",
  "requestedDeliveryDate": "2019-09-05T10:00:00+01:00",
  "shipmentType": "LSE",
  "shipmentSubType": "STD",
  "assembly": false,
  "deliveryMode": "DOOR/DOOR",
  "serviceLevel": "STD",
  "serviceCode": "AA1",
  "productCode": "ALC",
  "_DGFInsure": false,
  "incoterms": "FCA",
  "incotermsLocation": "Miami",
  "releaseType": "",
  "valueOfGoods": 200,
  "valueOfGoodsCurrencyCode": "USD",
  "insuranceValue": 200,
  "insuranceValueCurrencyCode": "USD",
  "customer": {
    "accountNumber": "USGEE030",
    "name": "ACME INT'L INC",
    "address": {
      "addressLine1": "7600 CORPORATE CENTER DR",
      "addressLine2": "SUITE 601",
      "postalCode": "33126",
      "city": "MIAMI",
      "stateProvince": "FL",
      "countryCode": "US"
    },
    "contact": {
      "name": "Mr J. Doe",
      "phone": "+1 99 999 9999",
      "email": "j.doe@acme.com"
    }
  },
  "shipper": {
    "accountNumber": "SGSIN6661",
    "name": "JJ Electronics",
    "address": {
      "addressLine1": "20 JOO KOON CIRCLE",
      "addressLine2": "",
      "postalCode": "629057",
      "city": "Singapore",
      "stateProvince": "",
      "countryCode": "SG"
    },
    "contact": {
      "name": "M Jane",
      "phone": "+65 88 888 8888",
      "email": "jane.m@jj.com"
    }
  },
  "consignee": {
    "accountNumber": "USGEE036",
    "name": "ACME INT'L INC",
    "address": {
      "addressLine1": "7699 CORPORATE CENTER DR",
      "addressLine2": "",
      "postalCode": "33126",
      "city": "MIAMI",
      "stateProvince": "FL",
      "countryCode": "US"
    },
    "contact": {
      "name": "",
      "phone": "",
      "email": ""
    }
  },
  "notify": {
    "accountNumber": "USBOC996",
    "name": "X-COMMERCIAL AIRPLANE",
    "address": {
      "addressLine1": "",
      "addressLine2": "",
      "postalCode": "",
      "city": "",
      "stateProvince": "",
      "countryCode": ""
    },
    "contact": {
      "name": "Mr. Xavier",
      "phone": "",
      "email": "xavier@x-plane.com"
    }
  },
  "goodsLines": [
    {
      "packageCount": 10,
      "packageType": "PLT",
      "packageID": "PalletNo12346",
      "grossWeight": 50,
      "grossWeightUom": "KGM",
      "volume": 10.5,
      "volumeUom": "MTQ",
      "innerPackageCount": 10,
      "loadingMeters": 8.5,
      "marksAndNumbers": "",
      "goodsDescription": "Solid metal",
      "commodityCode": "GEN",
      "originCountryCode": "PH",
      "customsClassification": [
        {
          "countryCode": "US",
          "code": "3304"
        },
        {
          "countryCode": "US",
          "code": "3305"
        }
      ],
      "dimensions": {
        "dimensionsUom": "MTR",
        "length": 20.1,
        "width": 8,
        "height": 8.5
      },
      "temperatures": {
        "requiresTemperatureControl": false,
        "requiredMinimum": 8,
        "requiredMaximum": 10,
        "uom": "CEL"
      },
      "hazardousMaterial": [
        {
          "_UNDGNumber": "1266a",
          "_IMOClassCode": 3,
          "flashpointTemperature": {
            "uom": "CEL",
            "text": 20
          },
          "properShippingname": "",
          "technicalName": "",
          "marinePollutant": "Y",
          "packageCount": 10,
          "packageType": "PLT",
          "grossWeight": 50,
          "grossWeightUom": "KGM",
          "volume": 10.5,
          "volumeUom": "MTQ",
          "contact": {
            "name": "John Doe",
            "phone": "+1 99 999 9999",
            "email": "j.doe@acme.com"
          }
        }
      ]
    }
  ],
  "references": [
    {
      "type": "CRN",
      "number": "ZZ555555"
    }
  ],
  "notes": [
    {
      "type": "CIN",
      "text": "Customs Instructions will folllow"
    }
  ],
  "service": [
    {
      "type": "DKI",
      "requestedDate": "2019-09-01T08:00:00+01:00"
    }
  ],
  "pickup": {
    "_DGFPickup": true,
    "accountNumber": "SGSIN661",
    "name": "James Chang",
    "address": {
      "addressLine1": "21 JOO KOON CIRCLE",
      "addressLine2": "",
      "postalCode": "629057",
      "city": "Singapore",
      "stateProvince": "",
      "countryCode": "SG"
    },
    "contact": {
      "name": "",
      "phone": "",
      "email": ""
    }
  },
  "delivery": {
    "_DGFDeliver": false,
    "accountNumber": "",
    "name": "",
    "address": {
      "addressLine1": "",
      "addressLine2": "",
      "postalCode": "",
      "city": "",
      "stateProvince": "",
      "countryCode": ""
    },
    "contact": {
      "name": "",
      "phone": "",
      "email": ""
    }
  },
  "parties": [
    {
      "partyType": "DeliveryAgent",
      "accountNumber": "SFO"
    }
  ]
}
{
  "_DGFBookingID": "00c61c67-b216-460c-9c01-059583658635",
  "status": "Accepted",
  "statusURL": "https://concrete-electronics.biz"
}
{
  "api-correlation-id": "47b3da0f-6ce5-4a89-8393-38b3f9618ea6",
  "detail": "Expired Access Token",
  "status": 401,
  "title": "Titulus antepono tempora decretum valens pecco ait."
}
{
  "api-correlation-id": "b46a4be5-a910-4612-b07c-92bb90082348",
  "detail": "Summopere acerbitas summopere vesica amitto adeo clamo cicuta.",
  "status": 429,
  "title": "Too Many Requests"
}
{
  "api-correlation-id": "5a4c9b35-0ed4-4f10-a0a3-d73e88cdef33",
  "detail": "Creta decumbo considero vox.",
  "status": 500,
  "title": "Internal Server Error"
}
{
  "consignee": {
    "accountNumber": "Ttymj2qH"
  },
  "goodsLines": [
    {
      "commodityCode": "HAZ",
      "customsClassification": [
        {
          "code": "6402",
          "countryCode": "BS"
        }
      ],
      "dimensions": {
        "dimensionsUom": "CMT",
        "height": 127.88,
        "length": 268.19,
        "width": 203.33
      },
      "goodsDescription": "Plastic Granules",
      "grossWeight": 1364.43,
      "grossWeightUom": "KGM",
      "harmonizedCode": "437860",
      "hazardousMaterial": [
        {
          "_IMOClassCode": 7,
          "_UNDGNumber": "5",
          "contact": {
            "email": "Alejandrin.Flatley@yahoo.com",
            "name": "Jodi Pagac",
            "phone": "+16915117434"
          },
          "flashpointTemperature": {
            "text": 41,
            "uom": "CEL"
          },
          "grossWeight": 577.35,
          "grossWeightUom": "KGM",
          "marinePollutant": "Y",
          "packageCount": 90,
          "packageType": "CRT",
          "properShippingname": "Paint",
          "technicalName": "[object Object]",
          "volume": 20.32,
          "volumeUom": "MTQ"
        }
      ],
      "innerPackageCount": 339,
      "loadingMeters": 10.57,
      "marksAndNumbers": "5gmItgrc",
      "originCountryCode": "RE",
      "packageCount": 241,
      "packageID": "lprZIgSGUL",
      "packageType": "PLT",
      "temperatures": {
        "requiredMaximum": 2.6,
        "requiredMinimum": -18.5,
        "requiresTemperatureControl": false,
        "uom": "FAH"
      },
      "volume": 46.01,
      "volumeUom": "CUB"
    },
    {
      "commodityCode": "HAZ",
      "customsClassification": [
        {
          "code": "6109",
          "countryCode": "HM"
        },
        {
          "code": "3304",
          "countryCode": "SY"
        },
        {
          "code": "8528",
          "countryCode": "MQ"
        }
      ],
      "dimensions": {
        "dimensionsUom": "INH",
        "height": 96.09,
        "length": 448.13,
        "width": 407.41
      },
      "goodsDescription": "Electronic Components",
      "grossWeight": 1804.58,
      "grossWeightUom": "KGM",
      "harmonizedCode": "636297",
      "hazardousMaterial": [
        {
          "_IMOClassCode": 1,
          "_UNDGNumber": "5",
          "contact": {
            "email": "Katheryn10@yahoo.com",
            "name": "Nelson Nader",
            "phone": "+18214686101"
          },
          "flashpointTemperature": {
            "text": 29,
            "uom": "FAH"
          },
          "grossWeight": 3852.43,
          "grossWeightUom": "KGM",
          "marinePollutant": "Y",
          "packageCount": 3,
          "packageType": "CRT",
          "properShippingname": "Compressed Gas",
          "technicalName": "[object Object]",
          "volume": 25.94,
          "volumeUom": "MTQ"
        },
        {
          "_IMOClassCode": 8,
          "_UNDGNumber": "2",
          "contact": {
            "email": "Frida_Sawayn79@yahoo.com",
            "name": "Joyce Pagac DDS",
            "phone": "+16495804471"
          },
          "flashpointTemperature": {
            "text": 48,
            "uom": "FAH"
          },
          "grossWeight": 1694.74,
          "grossWeightUom": "KGM",
          "marinePollutant": "Y",
          "packageCount": 48,
          "packageType": "DRM",
          "properShippingname": "Paint",
          "technicalName": "[object Object]",
          "volume": 3.18,
          "volumeUom": "CUB"
        },
        {
          "_IMOClassCode": 1,
          "_UNDGNumber": "5",
          "contact": {
            "email": "Rhiannon77@hotmail.com",
            "name": "Elena Tillman",
            "phone": "+19836843855"
          },
          "flashpointTemperature": {
            "text": 36,
            "uom": "FAH"
          },
          "grossWeight": 3985.58,
          "grossWeightUom": "LBR",
          "marinePollutant": "N",
          "packageCount": 92,
          "packageType": "PLT",
          "properShippingname": "Sulfuric acid",
          "technicalName": "[object Object]",
          "volume": 45.79,
          "volumeUom": "MTQ"
        }
      ],
      "innerPackageCount": 292,
      "loadingMeters": 12.5,
      "marksAndNumbers": "httSsCFq",
      "originCountryCode": "SD",
      "packageCount": 428,
      "packageID": "NgPRqSCrFr",
      "packageType": "BOX",
      "temperatures": {
        "requiredMaximum": 19.6,
        "requiredMinimum": 0,
        "requiresTemperatureControl": false,
        "uom": "FAH"
      },
      "volume": 30.28,
      "volumeUom": "MTQ"
    },
    {
      "commodityCode": "GEN",
      "customsClassification": [
        {
          "code": "9018",
          "countryCode": "SN"
        },
        {
          "code": "6402",
          "countryCode": "CR"
        }
      ],
      "dimensions": {
        "dimensionsUom": "INH",
        "height": 415.87,
        "length": 162.07,
        "width": 346.14
      },
      "goodsDescription": "Textile Fabrics",
      "grossWeight": 1248.75,
      "grossWeightUom": "LBR",
      "harmonizedCode": "277222",
      "hazardousMaterial": [
        {
          "_IMOClassCode": 4,
          "_UNDGNumber": "1",
          "contact": {
            "email": "Daron_Haag@gmail.com",
            "name": "Lorraine Wolff",
            "phone": "+12988583877"
          },
          "flashpointTemperature": {
            "text": 68,
            "uom": "FAH"
          },
          "grossWeight": 3872.29,
          "grossWeightUom": "LBR",
          "marinePollutant": "S",
          "packageCount": 81,
          "packageType": "BOX",
          "properShippingname": "Paint",
          "technicalName": "[object Object]",
          "volume": 4.5,
          "volumeUom": "CUB"
        }
      ],
      "innerPackageCount": 136,
      "loadingMeters": 2.71,
      "marksAndNumbers": "OldqW5Qg",
      "originCountryCode": "PF",
      "packageCount": 118,
      "packageID": "SI5PwC2QRd",
      "packageType": "PLT",
      "temperatures": {
        "requiredMaximum": 22.1,
        "requiredMinimum": -3.8,
        "requiresTemperatureControl": true,
        "uom": "CEL"
      },
      "volume": 36.24,
      "volumeUom": "CUB"
    },
    {
      "commodityCode": "HAZ",
      "customsClassification": [
        {
          "code": "8528",
          "countryCode": "SD"
        },
        {
          "code": "3304",
          "countryCode": "SD"
        },
        {
          "code": "8544",
          "countryCode": "YE"
        },
        {
          "code": "8544",
          "countryCode": "UG"
        }
      ],
      "dimensions": {
        "dimensionsUom": "MTR",
        "height": 35.46,
        "length": 382.53,
        "width": 335.07
      },
      "goodsDescription": "Electronic Components",
      "grossWeight": 1301.42,
      "grossWeightUom": "LBR",
      "harmonizedCode": "397357",
      "hazardousMaterial": [
        {
          "_IMOClassCode": 1,
          "_UNDGNumber": "5",
          "contact": {
            "email": "Lonzo58@gmail.com",
            "name": "Dr. Myron Ankunding-Thiel",
            "phone": "+14763109961"
          },
          "flashpointTemperature": {
            "text": 57,
            "uom": "FAH"
          },
          "grossWeight": 3804.92,
          "grossWeightUom": "LBR",
          "marinePollutant": "Y",
          "packageCount": 80,
          "packageType": "BOX",
          "properShippingname": "Compressed Gas",
          "technicalName": "[object Object]",
          "volume": 19.65,
          "volumeUom": "MTQ"
        },
        {
          "_IMOClassCode": 4,
          "_UNDGNumber": "7",
          "contact": {
            "email": "Ruth_Herman@yahoo.com",
            "name": "Ginger Flatley",
            "phone": "+14232051292"
          },
          "flashpointTemperature": {
            "text": 21,
            "uom": "CEL"
          },
          "grossWeight": 454.9,
          "grossWeightUom": "KGM",
          "marinePollutant": "S",
          "packageCount": 98,
          "packageType": "BOX",
          "properShippingname": "Ethanol",
          "technicalName": "[object Object]",
          "volume": 29.16,
          "volumeUom": "MTQ"
        }
      ],
      "innerPackageCount": 469,
      "loadingMeters": 6.23,
      "marksAndNumbers": "NgnR16hg",
      "originCountryCode": "MD",
      "packageCount": 333,
      "packageID": "dHUJp0ABuy",
      "packageType": "BOX",
      "temperatures": {
        "requiredMaximum": 18.7,
        "requiredMinimum": -5.7,
        "requiresTemperatureControl": false,
        "uom": "FAH"
      },
      "volume": 37.44,
      "volumeUom": "CUB"
    }
  ],
  "notes": [
    {
      "text": "Sufficio curriculum cicuta.",
      "type": "DEL"
    },
    {
      "text": "Tabgo adsidue vir verecundia iste.",
      "type": "CIN"
    },
    {
      "text": "Studio ambulo ver vulgaris suppono suspendo.",
      "type": "SHP"
    }
  ],
  "references": [
    {
      "number": "Hd2vmy5G",
      "type": "CRN"
    },
    {
      "number": "l7MtkylU",
      "type": "INV"
    }
  ],
  "shipmentBranchCode": "SIN"
}
{
  "api-correlation-id": "b26aa563-d916-48ae-a384-06fdf8a84bed",
  "detail": "Comminor ocer voluptatum tenax abstergo.",
  "results": [
    {
      "status": "accepted",
      "updateField": "usque"
    },
    {
      "status": "accepted",
      "updateField": "stillicidium"
    },
    {
      "status": "accepted",
      "updateField": "utrimque"
    },
    {
      "status": "accepted",
      "updateField": "accedo"
    }
  ],
  "status": 200
}
{
  "api-correlation-id": "4617f0cc-77f9-46f3-a4d5-7087763b72bb",
  "detail": "Expired Access Token",
  "status": 401,
  "title": "Timor usus deinde carus."
}
{
  "api-correlation-id": "02a256a3-fc65-46ac-a6dc-09967672aac0",
  "detail": "Patruus barba coniecto tunc aeternus cubo.",
  "results": [
    {
      "details": "Ara benevolentia cum vos absque vis deserunt enim aureus stabilis.",
      "status": "rejected",
      "updateField": "victus"
    },
    {
      "details": "Dolorem carmen assentator amitto argumentum alo.",
      "status": "rejected",
      "updateField": "sordeo"
    }
  ],
  "status": 403,
  "title": "Comminor teres sollicito."
}
{
  "api-correlation-id": "bacfae9a-73c1-4e38-ace1-047f5f84c209",
  "detail": "Attollo abutor amissio vel artificiose alioqui coadunatio.",
  "status": "iste"
}
{
  "api-correlation-id": "cde36fe2-74cf-4100-a114-7ae7a81262ea",
  "detail": "Adficio cum ullus sumo.",
  "status": 429,
  "title": "Too Many Requests"
}
{
  "api-correlation-id": "6879124f-039f-4ba2-9066-c8aca3a5ccbc",
  "detail": "Alioqui atqui reiciendis texo ara aiunt conforto vereor congregatio autus.",
  "status": 500,
  "title": "Internal Server Error"
}
Query Parameter NameExample
_DGFBookingID*nostrud
{
  "housebillNumber": "ihzKaGhbUx",
  "shipmentID": "gV7wVRM2ZT",
  "shipmentTrackingURL": "https://circular-soliloquy.net",
  "status": "Shipment Created"
}
{
  "api-correlation-id": "9e2cf19f-d4d7-448d-ad23-c22b3d48f8ba",
  "detail": "Expired Access Token",
  "status": 401,
  "title": "Alias crapula arx sono apto somniculosus sumptus nam absum solum."
}
{
  "status": "talus",
  "title": "Spargo solium coerceo tergum."
}
Query Parameter NameExample
codeListIDNoteType
{
  "Result": [
    {
      "description": "omnis cicuta depono",
      "id": "mOD"
    }
  ]
}
{
  "detail": "Thesaurus umbra acsi decens.",
  "title": "Tener vito venio vulgaris sunt corroboro cursim aestivus conventus."
}
dhllogisticsfreightshippingtransportation