Chilkat Online Tools

PowerBuilder / DHL Express APIs (MyDHL API) / Track a single DHL Express Shipment

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_QueryParams
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_ShipmentTrackingNumber
string ls_Status
string ls_ShipmentTimestamp
string ls_ProductCode
string ls_Description
string ls_Name
string ls_CityName
string ls_CountyName
string ls_PostalCode
string ls_ProvinceCode
string ls_CountryCode
string ls_AccountNumber
string ls_ReceiverDetailsName
string ls_PostalAddressCityName
string ls_PostalAddressCountyName
string ls_PostalAddressPostalCode
string ls_PostalAddressProvinceCode
string ls_PostalAddressCountryCode
integer li_TotalWeight
string ls_UnitOfMeasurements
integer li_NumberOfPieces
string ls_EstimatedDeliveryDate
integer j
integer li_Count_j
string ls_Date
string ls_Time
string ls_TypeCode
string ls_SignedBy
integer k
integer li_Count_k
string ls_Code
string ls_OutboundSortCode
string ls_FacilityCode
string ls_InboundSortCode
string ls_Value
integer li_V_number
string ls_TrackingNumber
string ls_Weight
string ls_DimensionalWeight
string ls_ActualWeight
integer li_Length
integer li_Width
integer li_Height
integer li_ActualDimensionsLength
integer li_ActualDimensionsWidth
integer li_ActualDimensionsHeight
oleobject loo_Json1
integer li_I1
integer li_Count_i1
string ls_Value
string ls_DescriptionValue
string ls_StrVal
integer i
integer li_Count_i

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

loo_Http.BasicAuth = 1
loo_Http.Login = "<Basic Auth Username>"
loo_Http.Password = "<Basic Auth Password>"

loo_QueryParams = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_QueryParams.ConnectToNewObject("Chilkat.JsonObject")

loo_QueryParams.UpdateString("trackingView","all-checkpoints")
loo_QueryParams.UpdateString("levelOfDetail","all")

loo_Http.SetRequestHeader("Webstore-Platform-Name","")
loo_Http.SetRequestHeader("Accept-Language","eng")
loo_Http.SetRequestHeader("Shipping-System-Platform-Name","")
loo_Http.SetRequestHeader("Message-Reference","d0e7832e-5c98-11ea-bc55-0242ac13")
loo_Http.SetRequestHeader("Plugin-Version","")
loo_Http.SetRequestHeader("Plugin-Name","")
loo_Http.SetRequestHeader("Shipping-System-Platform-Version","")
loo_Http.SetRequestHeader("Accept","application/json")
loo_Http.SetRequestHeader("Message-Reference-Date","Wed, 21 Oct 2015 07:28:00 GMT")
loo_Http.SetRequestHeader("Webstore-Platform-Version","")

loo_Resp = loo_Http.QuickRequestParams("GET","https://api-mock.dhl.com/mydhlapi/shipments/:shipmentTrackingNumber/tracking",loo_QueryParams)
if loo_Http.LastMethodSuccess = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_QueryParams
    return
end if

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

loo_Resp.GetBodySb(loo_SbResponseBody)

loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Resp.Header
    Write-Debug "Failed."
    destroy loo_Resp
    destroy loo_Http
    destroy loo_QueryParams
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

destroy loo_Resp

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "shipments": [
//     {
//       "events": [
//         {
//           "date": "2020-06-10",
//           "time": "13:06:00",
//           "typeCode": "PU",
//           "description": "Shipment picked up",
//           "serviceArea": [
//             {
//               "code": "BNE",
//               "description": "Brisbane-AU"
//             },
//             {
//               "code": "BNE",
//               "description": "Brisbane-AU"
//             }
//           ],
//           "signedBy": "Mr.Grey"
//         },
//         {
//           "date": "2020-06-10",
//           "time": "13:06:00",
//           "typeCode": "PU",
//           "description": "Shipment picked up",
//           "serviceArea": [
//             {
//               "code": "BNE",
//               "description": "Brisbane-AU"
//             },
//             {
//               "code": "BNE",
//               "description": "Brisbane-AU"
//             }
//           ],
//           "signedBy": "Mr.Grey"
//         }
//       ],
//       "shipmentTrackingNumber": "1234567890",
//       "status": "Success",
//       "shipmentTimestamp": "2020-05-14T18:00:31",
//       "productCode": "N",
//       "description": "Shipment Description",
//       "shipperDetails": {
//         "name": "SABO SKIRT",
//         "postalAddress": {
//           "cityName": "Brno",
//           "countyName": "Moravia",
//           "postalCode": "55500",
//           "provinceCode": "CZ",
//           "countryCode": "CZ"
//         },
//         "serviceArea": [
//           {
//             "code": "ABC",
//             "description": "Alpha Beta Area",
//             "outboundSortCode": "ullamco Duis"
//           },
//           {
//             "code": "ABC",
//             "description": "Alpha Beta Area",
//             "outboundSortCode": "sunt eu"
//           }
//         ],
//         "accountNumber": "ipsum sed officia"
//       },
//       "receiverDetails": {
//         "name": "SABO SKIRT",
//         "postalAddress": {
//           "cityName": "Bratislava",
//           "countyName": "Slovakia",
//           "postalCode": "77777",
//           "provinceCode": "SK",
//           "countryCode": "SK"
//         },
//         "serviceArea": [
//           {
//             "code": "BSA",
//             "description": "BSA Area",
//             "facilityCode": "facil area",
//             "inboundSortCode": "Dui"
//           },
//           {
//             "code": "BSA",
//             "description": "BSA Area",
//             "facilityCode": "facil area",
//             "inboundSortCode": "velit"
//           }
//         ]
//       },
//       "totalWeight": 10,
//       "unitOfMeasurements": "metric",
//       "shipperReferences": [
//         {
//           "value": "Customer reference",
//           "typeCode": "CU"
//         },
//         {
//           "value": "Customer reference",
//           "typeCode": "CU"
//         }
//       ],
//       "numberOfPieces": 1,
//       "pieces": [
//         {
//           "events": [
//             {
//               "date": "labore sit exercitation",
//               "time": "dolore enim",
//               "typeCode": "Excepteur tempor enim paria",
//               "description": "cupidatat commodo in nostrud",
//               "serviceArea": [
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 },
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 }
//               ],
//               "signedBy": "magna Excepteur"
//             },
//             {
//               "date": "aute nulla a",
//               "time": "mollit",
//               "typeCode": "id laborum ad sit",
//               "description": "proident Ut i",
//               "serviceArea": [
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 },
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 }
//               ],
//               "signedBy": "in eu veniam"
//             }
//           ],
//           "number": 1,
//           "typeCode": "ut veniam aliqua",
//           "shipmentTrackingNumber": "velit ex ullamco",
//           "trackingNumber": "nulla dolore nisi minim ea",
//           "description": "aliqua aliquip sed in",
//           "weight": 22.5,
//           "dimensionalWeight": 22.5,
//           "actualWeight": 22.5,
//           "dimensions": {
//             "length": 15,
//             "width": 15,
//             "height": 40
//           },
//           "actualDimensions": {
//             "length": 15,
//             "width": 15,
//             "height": 40
//           },
//           "unitOfMeasurements": "est ea dolore sunt",
//           "shipperReferences": [
//             {
//               "value": "Customer reference",
//               "typeCode": "CU"
//             },
//             {
//               "value": "Customer reference",
//               "typeCode": "CU"
//             }
//           ]
//         },
//         {
//           "events": [
//             {
//               "date": "Ut sit exercitation et",
//               "time": "ut enim s",
//               "typeCode": "e",
//               "description": "in aliquip qui id",
//               "serviceArea": [
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 },
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 }
//               ],
//               "signedBy": "ut sit aliquip veniam"
//             },
//             {
//               "date": "ex adipisicing laborum in",
//               "time": "ut tempor aliquip occaecat",
//               "typeCode": "ad",
//               "description": "irure sed aute",
//               "serviceArea": [
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 },
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 }
//               ],
//               "signedBy": "sint laboris"
//             }
//           ],
//           "number": 1,
//           "typeCode": "amet ullamco eiusmod est in",
//           "shipmentTrackingNumber": "do magna laboris ad",
//           "trackingNumber": "dolor incididunt ad proident",
//           "description": "exercitation in dolor",
//           "weight": 22.5,
//           "dimensionalWeight": 22.5,
//           "actualWeight": 22.5,
//           "dimensions": {
//             "length": 15,
//             "width": 15,
//             "height": 40
//           },
//           "actualDimensions": {
//             "length": 15,
//             "width": 15,
//             "height": 40
//           },
//           "unitOfMeasurements": "laboris",
//           "shipperReferences": [
//             {
//               "value": "Customer reference",
//               "typeCode": "CU"
//             },
//             {
//               "value": "Customer reference",
//               "typeCode": "CU"
//             }
//           ]
//         }
//       ],
//       "estimatedDeliveryDate": "2020-06-12",
//       "childrenShipmentIdentificationNumbers": [
//         "1234567890",
//         "1234567890"
//       ]
//     },
//     {
//       "events": [
//         {
//           "date": "2020-06-10",
//           "time": "13:06:00",
//           "typeCode": "PU",
//           "description": "Shipment picked up",
//           "serviceArea": [
//             {
//               "code": "BNE",
//               "description": "Brisbane-AU"
//             },
//             {
//               "code": "BNE",
//               "description": "Brisbane-AU"
//             }
//           ],
//           "signedBy": "Mr.Grey"
//         },
//         {
//           "date": "2020-06-10",
//           "time": "13:06:00",
//           "typeCode": "PU",
//           "description": "Shipment picked up",
//           "serviceArea": [
//             {
//               "code": "BNE",
//               "description": "Brisbane-AU"
//             },
//             {
//               "code": "BNE",
//               "description": "Brisbane-AU"
//             }
//           ],
//           "signedBy": "Mr.Grey"
//         }
//       ],
//       "shipmentTrackingNumber": "1234567890",
//       "status": "Success",
//       "shipmentTimestamp": "2020-05-14T18:00:31",
//       "productCode": "N",
//       "description": "Shipment Description",
//       "shipperDetails": {
//         "name": "SABO SKIRT",
//         "postalAddress": {
//           "cityName": "Brno",
//           "countyName": "Moravia",
//           "postalCode": "55500",
//           "provinceCode": "CZ",
//           "countryCode": "CZ"
//         },
//         "serviceArea": [
//           {
//             "code": "ABC",
//             "description": "Alpha Beta Area",
//             "outboundSortCode": "ut enim esse in incididunt"
//           },
//           {
//             "code": "ABC",
//             "description": "Alpha Beta Area",
//             "outboundSortCode": "anim pariatur adipisicing ipsum"
//           }
//         ],
//         "accountNumber": "nostrud"
//       },
//       "receiverDetails": {
//         "name": "SABO SKIRT",
//         "postalAddress": {
//           "cityName": "Bratislava",
//           "countyName": "Slovakia",
//           "postalCode": "77777",
//           "provinceCode": "SK",
//           "countryCode": "SK"
//         },
//         "serviceArea": [
//           {
//             "code": "BSA",
//             "description": "BSA Area",
//             "facilityCode": "facil area",
//             "inboundSortCode": "magna sit"
//           },
//           {
//             "code": "BSA",
//             "description": "BSA Area",
//             "facilityCode": "facil area",
//             "inboundSortCode": "ut nulla in occaecat"
//           }
//         ]
//       },
//       "totalWeight": 10,
//       "unitOfMeasurements": "metric",
//       "shipperReferences": [
//         {
//           "value": "Customer reference",
//           "typeCode": "CU"
//         },
//         {
//           "value": "Customer reference",
//           "typeCode": "CU"
//         }
//       ],
//       "numberOfPieces": 1,
//       "pieces": [
//         {
//           "events": [
//             {
//               "date": "enim in",
//               "time": "anim nostrud ad molli",
//               "typeCode": "dolor consectetur",
//               "description": "cillum reprehenderit incididunt es",
//               "serviceArea": [
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 },
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 }
//               ],
//               "signedBy": "cupidatat esse quis Excepteur"
//             },
//             {
//               "date": "",
//               "time": "cupidatat",
//               "typeCode": "ame",
//               "description": "dolore nulla ",
//               "serviceArea": [
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 },
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 }
//               ],
//               "signedBy": "nulla sint id sed"
//             }
//           ],
//           "number": 1,
//           "typeCode": "ea dolore dolore occaecat",
//           "shipmentTrackingNumber": "do aliqua sit",
//           "trackingNumber": "adipisicing veniam in",
//           "description": "commodo fugiat",
//           "weight": 22.5,
//           "dimensionalWeight": 22.5,
//           "actualWeight": 22.5,
//           "dimensions": {
//             "length": 15,
//             "width": 15,
//             "height": 40
//           },
//           "actualDimensions": {
//             "length": 15,
//             "width": 15,
//             "height": 40
//           },
//           "unitOfMeasurements": "do esse fugiat",
//           "shipperReferences": [
//             {
//               "value": "Customer reference",
//               "typeCode": "CU"
//             },
//             {
//               "value": "Customer reference",
//               "typeCode": "CU"
//             }
//           ]
//         },
//         {
//           "events": [
//             {
//               "date": "esse dolore",
//               "time": "tempor deserunt proident",
//               "typeCode": "sit do",
//               "description": "ipsum commodo sunt officia",
//               "serviceArea": [
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 },
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 }
//               ],
//               "signedBy": "irure culpa"
//             },
//             {
//               "date": "Duis amet nostrud",
//               "time": "sit eu id",
//               "typeCode": "Lorem ad",
//               "description": "amet",
//               "serviceArea": [
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 },
//                 {
//                   "code": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   },
//                   "description": {
//                     "value": "<Error: Too many levels of nesting to fake this schema>"
//                   }
//                 }
//               ],
//               "signedBy": "minim occaec"
//             }
//           ],
//           "number": 1,
//           "typeCode": "dolor Duis reprehenderit",
//           "shipmentTrackingNumber": "incididunt ",
//           "trackingNumber": "cillum minim cupidatat",
//           "description": "sed voluptate",
//           "weight": 22.5,
//           "dimensionalWeight": 22.5,
//           "actualWeight": 22.5,
//           "dimensions": {
//             "length": 15,
//             "width": 15,
//             "height": 40
//           },
//           "actualDimensions": {
//             "length": 15,
//             "width": 15,
//             "height": 40
//           },
//           "unitOfMeasurements": "consequat exercitation nulla",
//           "shipperReferences": [
//             {
//               "value": "Customer reference",
//               "typeCode": "CU"
//             },
//             {
//               "value": "Customer reference",
//               "typeCode": "CU"
//             }
//           ]
//         }
//       ],
//       "estimatedDeliveryDate": "2020-06-12",
//       "childrenShipmentIdentificationNumbers": [
//         "1234567890",
//         "1234567890"
//       ]
//     }
//   ]
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

i = 0
li_Count_i = loo_JResp.SizeOfArray("shipments")
do while i < li_Count_i
    loo_JResp.I = i
    ls_ShipmentTrackingNumber = loo_JResp.StringOf("shipments[i].shipmentTrackingNumber")
    ls_Status = loo_JResp.StringOf("shipments[i].status")
    ls_ShipmentTimestamp = loo_JResp.StringOf("shipments[i].shipmentTimestamp")
    ls_ProductCode = loo_JResp.StringOf("shipments[i].productCode")
    ls_Description = loo_JResp.StringOf("shipments[i].description")
    ls_Name = loo_JResp.StringOf("shipments[i].shipperDetails.name")
    ls_CityName = loo_JResp.StringOf("shipments[i].shipperDetails.postalAddress.cityName")
    ls_CountyName = loo_JResp.StringOf("shipments[i].shipperDetails.postalAddress.countyName")
    ls_PostalCode = loo_JResp.StringOf("shipments[i].shipperDetails.postalAddress.postalCode")
    ls_ProvinceCode = loo_JResp.StringOf("shipments[i].shipperDetails.postalAddress.provinceCode")
    ls_CountryCode = loo_JResp.StringOf("shipments[i].shipperDetails.postalAddress.countryCode")
    ls_AccountNumber = loo_JResp.StringOf("shipments[i].shipperDetails.accountNumber")
    ls_ReceiverDetailsName = loo_JResp.StringOf("shipments[i].receiverDetails.name")
    ls_PostalAddressCityName = loo_JResp.StringOf("shipments[i].receiverDetails.postalAddress.cityName")
    ls_PostalAddressCountyName = loo_JResp.StringOf("shipments[i].receiverDetails.postalAddress.countyName")
    ls_PostalAddressPostalCode = loo_JResp.StringOf("shipments[i].receiverDetails.postalAddress.postalCode")
    ls_PostalAddressProvinceCode = loo_JResp.StringOf("shipments[i].receiverDetails.postalAddress.provinceCode")
    ls_PostalAddressCountryCode = loo_JResp.StringOf("shipments[i].receiverDetails.postalAddress.countryCode")
    li_TotalWeight = loo_JResp.IntOf("shipments[i].totalWeight")
    ls_UnitOfMeasurements = loo_JResp.StringOf("shipments[i].unitOfMeasurements")
    li_NumberOfPieces = loo_JResp.IntOf("shipments[i].numberOfPieces")
    ls_EstimatedDeliveryDate = loo_JResp.StringOf("shipments[i].estimatedDeliveryDate")
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("shipments[i].events")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Date = loo_JResp.StringOf("shipments[i].events[j].date")
        ls_Time = loo_JResp.StringOf("shipments[i].events[j].time")
        ls_TypeCode = loo_JResp.StringOf("shipments[i].events[j].typeCode")
        ls_Description = loo_JResp.StringOf("shipments[i].events[j].description")
        ls_SignedBy = loo_JResp.StringOf("shipments[i].events[j].signedBy")
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("shipments[i].events[j].serviceArea")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_Code = loo_JResp.StringOf("shipments[i].events[j].serviceArea[k].code")
            ls_Description = loo_JResp.StringOf("shipments[i].events[j].serviceArea[k].description")
            k = k + 1
        loop
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("shipments[i].shipperDetails.serviceArea")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Code = loo_JResp.StringOf("shipments[i].shipperDetails.serviceArea[j].code")
        ls_Description = loo_JResp.StringOf("shipments[i].shipperDetails.serviceArea[j].description")
        ls_OutboundSortCode = loo_JResp.StringOf("shipments[i].shipperDetails.serviceArea[j].outboundSortCode")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("shipments[i].receiverDetails.serviceArea")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Code = loo_JResp.StringOf("shipments[i].receiverDetails.serviceArea[j].code")
        ls_Description = loo_JResp.StringOf("shipments[i].receiverDetails.serviceArea[j].description")
        ls_FacilityCode = loo_JResp.StringOf("shipments[i].receiverDetails.serviceArea[j].facilityCode")
        ls_InboundSortCode = loo_JResp.StringOf("shipments[i].receiverDetails.serviceArea[j].inboundSortCode")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("shipments[i].shipperReferences")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Value = loo_JResp.StringOf("shipments[i].shipperReferences[j].value")
        ls_TypeCode = loo_JResp.StringOf("shipments[i].shipperReferences[j].typeCode")
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("shipments[i].pieces")
    do while j < li_Count_j
        loo_JResp.J = j
        li_V_number = loo_JResp.IntOf("shipments[i].pieces[j].number")
        ls_TypeCode = loo_JResp.StringOf("shipments[i].pieces[j].typeCode")
        ls_ShipmentTrackingNumber = loo_JResp.StringOf("shipments[i].pieces[j].shipmentTrackingNumber")
        ls_TrackingNumber = loo_JResp.StringOf("shipments[i].pieces[j].trackingNumber")
        ls_Description = loo_JResp.StringOf("shipments[i].pieces[j].description")
        ls_Weight = loo_JResp.StringOf("shipments[i].pieces[j].weight")
        ls_DimensionalWeight = loo_JResp.StringOf("shipments[i].pieces[j].dimensionalWeight")
        ls_ActualWeight = loo_JResp.StringOf("shipments[i].pieces[j].actualWeight")
        li_Length = loo_JResp.IntOf("shipments[i].pieces[j].dimensions.length")
        li_Width = loo_JResp.IntOf("shipments[i].pieces[j].dimensions.width")
        li_Height = loo_JResp.IntOf("shipments[i].pieces[j].dimensions.height")
        li_ActualDimensionsLength = loo_JResp.IntOf("shipments[i].pieces[j].actualDimensions.length")
        li_ActualDimensionsWidth = loo_JResp.IntOf("shipments[i].pieces[j].actualDimensions.width")
        li_ActualDimensionsHeight = loo_JResp.IntOf("shipments[i].pieces[j].actualDimensions.height")
        ls_UnitOfMeasurements = loo_JResp.StringOf("shipments[i].pieces[j].unitOfMeasurements")
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("shipments[i].pieces[j].events")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_Date = loo_JResp.StringOf("shipments[i].pieces[j].events[k].date")
            ls_Time = loo_JResp.StringOf("shipments[i].pieces[j].events[k].time")
            ls_TypeCode = loo_JResp.StringOf("shipments[i].pieces[j].events[k].typeCode")
            ls_Description = loo_JResp.StringOf("shipments[i].pieces[j].events[k].description")
            ls_SignedBy = loo_JResp.StringOf("shipments[i].pieces[j].events[k].signedBy")

            loo_Json1 = loo_JResp.ObjectOf("shipments[i].pieces[j].events[k]")
            li_I1 = 0
            li_Count_i1 = loo_Json1.SizeOfArray("serviceArea")
            do while li_I1 < li_Count_i1
                loo_Json1.I = li_I1
                ls_Value = loo_Json1.StringOf("serviceArea[i].code.value")
                ls_DescriptionValue = loo_Json1.StringOf("serviceArea[i].description.value")
                li_I1 = li_I1 + 1
            loop
            destroy loo_Json1
            k = k + 1
        loop
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("shipments[i].pieces[j].shipperReferences")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_Value = loo_JResp.StringOf("shipments[i].pieces[j].shipperReferences[k].value")
            ls_TypeCode = loo_JResp.StringOf("shipments[i].pieces[j].shipperReferences[k].typeCode")
            k = k + 1
        loop
        j = j + 1
    loop
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("shipments[i].childrenShipmentIdentificationNumbers")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_StrVal = loo_JResp.StringOf("shipments[i].childrenShipmentIdentificationNumbers[j]")
        j = j + 1
    loop
    i = i + 1
loop


destroy loo_Http
destroy loo_QueryParams
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

curl -G -d "trackingView=all-checkpoints"
	-d "levelOfDetail=all"
	-u '<Basic Auth Username>:<Basic Auth Password>'
	-H "Message-Reference: d0e7832e-5c98-11ea-bc55-0242ac13"
	-H "Message-Reference-Date: Wed, 21 Oct 2015 07:28:00 GMT"
	-H "Accept-Language: eng"
	-H "Plugin-Name:  "
	-H "Plugin-Version:  "
	-H "Shipping-System-Platform-Name:  "
	-H "Shipping-System-Platform-Version:  "
	-H "Webstore-Platform-Name:  "
	-H "Webstore-Platform-Version:  "
	-H "Accept: application/json"
https://api-mock.dhl.com/mydhlapi/shipments/:shipmentTrackingNumber/tracking

Postman Collection Item JSON

{
  "name": "Track a single DHL Express Shipment",
  "request": {
    "method": "GET",
    "header": [
      {
        "description": "Please provide message reference\n",
        "key": "Message-Reference",
        "value": "d0e7832e-5c98-11ea-bc55-0242ac13"
      },
      {
        "description": "Optional reference date in the  HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2",
        "key": "Message-Reference-Date",
        "value": "Wed, 21 Oct 2015 07:28:00 GMT"
      },
      {
        "key": "Accept-Language",
        "value": "eng"
      },
      {
        "description": "Please provide name of the plugin (applicable to 3PV only)\n",
        "key": "Plugin-Name",
        "value": " "
      },
      {
        "description": "Please provide version of the plugin (applicable to 3PV only)\n",
        "key": "Plugin-Version",
        "value": " "
      },
      {
        "description": "Please provide name of the shipping platform(applicable to 3PV only)\n",
        "key": "Shipping-System-Platform-Name",
        "value": " "
      },
      {
        "description": "Please provide version of the shipping platform (applicable to 3PV only)\n",
        "key": "Shipping-System-Platform-Version",
        "value": " "
      },
      {
        "description": "Please provide name of the webstore platform (applicable to 3PV only)\n",
        "key": "Webstore-Platform-Name",
        "value": " "
      },
      {
        "description": "Please provide version of the webstore platform (applicable to 3PV only)\n",
        "key": "Webstore-Platform-Version",
        "value": " "
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/shipments/:shipmentTrackingNumber/tracking?trackingView=all-checkpoints&levelOfDetail=all",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "shipments",
        ":shipmentTrackingNumber",
        "tracking"
      ],
      "query": [
        {
          "key": "trackingView",
          "value": "all-checkpoints"
        },
        {
          "key": "levelOfDetail",
          "value": "all"
        }
      ],
      "variable": [
        {
          "key": "shipmentTrackingNumber",
          "value": "dolor veniam officia non",
          "description": "(Required) DHL Express shipment identification number"
        }
      ]
    },
    "description": "The Tracking service retrieves tracking statuses for a single DHL Express Shipment\n"
  },
  "response": [
    {
      "name": "Shipment details found",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          },
          {
            "description": "Please provide message reference\n",
            "key": "Message-Reference",
            "value": "d0e7832e-5c98-11ea-bc55-0242ac13"
          },
          {
            "description": "Optional reference date in the  HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2",
            "key": "Message-Reference-Date",
            "value": "Wed, 21 Oct 2015 07:28:00 GMT"
          },
          {
            "key": "Accept-Language",
            "value": "eng"
          },
          {
            "description": "Please provide name of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the shipping platform(applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the shipping platform (applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Version",
            "value": " "
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shipments/:shipmentTrackingNumber/tracking?trackingView=all-checkpoints&levelOfDetail=all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shipments",
            ":shipmentTrackingNumber",
            "tracking"
          ],
          "query": [
            {
              "key": "trackingView",
              "value": "all-checkpoints"
            },
            {
              "key": "levelOfDetail",
              "value": "all"
            }
          ],
          "variable": [
            {
              "key": "shipmentTrackingNumber",
              "value": "dolor veniam officia non",
              "description": "(Required) DHL Express shipment identification number"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Invocation-Id",
          "value": "sed ut mollit",
          "description": "Unique identifier of the transaction"
        },
        {
          "key": "Message-Reference",
          "value": "sed ut mollit",
          "description": "Message reference provided by customer as part of reqeust or automatically generated when not provided"
        },
        {
          "key": "Content-Language",
          "value": "sed ut mollit",
          "description": ""
        },
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"shipments\": [\n    {\n      \"events\": [\n        {\n          \"date\": \"2020-06-10\",\n          \"time\": \"13:06:00\",\n          \"typeCode\": \"PU\",\n          \"description\": \"Shipment picked up\",\n          \"serviceArea\": [\n            {\n              \"code\": \"BNE\",\n              \"description\": \"Brisbane-AU\"\n            },\n            {\n              \"code\": \"BNE\",\n              \"description\": \"Brisbane-AU\"\n            }\n          ],\n          \"signedBy\": \"Mr.Grey\"\n        },\n        {\n          \"date\": \"2020-06-10\",\n          \"time\": \"13:06:00\",\n          \"typeCode\": \"PU\",\n          \"description\": \"Shipment picked up\",\n          \"serviceArea\": [\n            {\n              \"code\": \"BNE\",\n              \"description\": \"Brisbane-AU\"\n            },\n            {\n              \"code\": \"BNE\",\n              \"description\": \"Brisbane-AU\"\n            }\n          ],\n          \"signedBy\": \"Mr.Grey\"\n        }\n      ],\n      \"shipmentTrackingNumber\": \"1234567890\",\n      \"status\": \"Success\",\n      \"shipmentTimestamp\": \"2020-05-14T18:00:31\",\n      \"productCode\": \"N\",\n      \"description\": \"Shipment Description\",\n      \"shipperDetails\": {\n        \"name\": \"SABO SKIRT\",\n        \"postalAddress\": {\n          \"cityName\": \"Brno\",\n          \"countyName\": \"Moravia\",\n          \"postalCode\": \"55500\",\n          \"provinceCode\": \"CZ\",\n          \"countryCode\": \"CZ\"\n        },\n        \"serviceArea\": [\n          {\n            \"code\": \"ABC\",\n            \"description\": \"Alpha Beta Area\",\n            \"outboundSortCode\": \"ullamco Duis\"\n          },\n          {\n            \"code\": \"ABC\",\n            \"description\": \"Alpha Beta Area\",\n            \"outboundSortCode\": \"sunt eu\"\n          }\n        ],\n        \"accountNumber\": \"ipsum sed officia\"\n      },\n      \"receiverDetails\": {\n        \"name\": \"SABO SKIRT\",\n        \"postalAddress\": {\n          \"cityName\": \"Bratislava\",\n          \"countyName\": \"Slovakia\",\n          \"postalCode\": \"77777\",\n          \"provinceCode\": \"SK\",\n          \"countryCode\": \"SK\"\n        },\n        \"serviceArea\": [\n          {\n            \"code\": \"BSA\",\n            \"description\": \"BSA Area\",\n            \"facilityCode\": \"facil area\",\n            \"inboundSortCode\": \"Dui\"\n          },\n          {\n            \"code\": \"BSA\",\n            \"description\": \"BSA Area\",\n            \"facilityCode\": \"facil area\",\n            \"inboundSortCode\": \"velit\"\n          }\n        ]\n      },\n      \"totalWeight\": 10,\n      \"unitOfMeasurements\": \"metric\",\n      \"shipperReferences\": [\n        {\n          \"value\": \"Customer reference\",\n          \"typeCode\": \"CU\"\n        },\n        {\n          \"value\": \"Customer reference\",\n          \"typeCode\": \"CU\"\n        }\n      ],\n      \"numberOfPieces\": 1,\n      \"pieces\": [\n        {\n          \"events\": [\n            {\n              \"date\": \"labore sit exercitation\",\n              \"time\": \"dolore enim\",\n              \"typeCode\": \"Excepteur tempor enim paria\",\n              \"description\": \"cupidatat commodo in nostrud\",\n              \"serviceArea\": [\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"signedBy\": \"magna Excepteur\"\n            },\n            {\n              \"date\": \"aute nulla a\",\n              \"time\": \"mollit\",\n              \"typeCode\": \"id laborum ad sit\",\n              \"description\": \"proident Ut i\",\n              \"serviceArea\": [\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"signedBy\": \"in eu veniam\"\n            }\n          ],\n          \"number\": 1,\n          \"typeCode\": \"ut veniam aliqua\",\n          \"shipmentTrackingNumber\": \"velit ex ullamco\",\n          \"trackingNumber\": \"nulla dolore nisi minim ea\",\n          \"description\": \"aliqua aliquip sed in\",\n          \"weight\": 22.5,\n          \"dimensionalWeight\": 22.5,\n          \"actualWeight\": 22.5,\n          \"dimensions\": {\n            \"length\": 15,\n            \"width\": 15,\n            \"height\": 40\n          },\n          \"actualDimensions\": {\n            \"length\": 15,\n            \"width\": 15,\n            \"height\": 40\n          },\n          \"unitOfMeasurements\": \"est ea dolore sunt\",\n          \"shipperReferences\": [\n            {\n              \"value\": \"Customer reference\",\n              \"typeCode\": \"CU\"\n            },\n            {\n              \"value\": \"Customer reference\",\n              \"typeCode\": \"CU\"\n            }\n          ]\n        },\n        {\n          \"events\": [\n            {\n              \"date\": \"Ut sit exercitation et\",\n              \"time\": \"ut enim s\",\n              \"typeCode\": \"e\",\n              \"description\": \"in aliquip qui id\",\n              \"serviceArea\": [\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"signedBy\": \"ut sit aliquip veniam\"\n            },\n            {\n              \"date\": \"ex adipisicing laborum in\",\n              \"time\": \"ut tempor aliquip occaecat\",\n              \"typeCode\": \"ad\",\n              \"description\": \"irure sed aute\",\n              \"serviceArea\": [\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"signedBy\": \"sint laboris\"\n            }\n          ],\n          \"number\": 1,\n          \"typeCode\": \"amet ullamco eiusmod est in\",\n          \"shipmentTrackingNumber\": \"do magna laboris ad\",\n          \"trackingNumber\": \"dolor incididunt ad proident\",\n          \"description\": \"exercitation in dolor\",\n          \"weight\": 22.5,\n          \"dimensionalWeight\": 22.5,\n          \"actualWeight\": 22.5,\n          \"dimensions\": {\n            \"length\": 15,\n            \"width\": 15,\n            \"height\": 40\n          },\n          \"actualDimensions\": {\n            \"length\": 15,\n            \"width\": 15,\n            \"height\": 40\n          },\n          \"unitOfMeasurements\": \"laboris\",\n          \"shipperReferences\": [\n            {\n              \"value\": \"Customer reference\",\n              \"typeCode\": \"CU\"\n            },\n            {\n              \"value\": \"Customer reference\",\n              \"typeCode\": \"CU\"\n            }\n          ]\n        }\n      ],\n      \"estimatedDeliveryDate\": \"2020-06-12\",\n      \"childrenShipmentIdentificationNumbers\": [\n        \"1234567890\",\n        \"1234567890\"\n      ]\n    },\n    {\n      \"events\": [\n        {\n          \"date\": \"2020-06-10\",\n          \"time\": \"13:06:00\",\n          \"typeCode\": \"PU\",\n          \"description\": \"Shipment picked up\",\n          \"serviceArea\": [\n            {\n              \"code\": \"BNE\",\n              \"description\": \"Brisbane-AU\"\n            },\n            {\n              \"code\": \"BNE\",\n              \"description\": \"Brisbane-AU\"\n            }\n          ],\n          \"signedBy\": \"Mr.Grey\"\n        },\n        {\n          \"date\": \"2020-06-10\",\n          \"time\": \"13:06:00\",\n          \"typeCode\": \"PU\",\n          \"description\": \"Shipment picked up\",\n          \"serviceArea\": [\n            {\n              \"code\": \"BNE\",\n              \"description\": \"Brisbane-AU\"\n            },\n            {\n              \"code\": \"BNE\",\n              \"description\": \"Brisbane-AU\"\n            }\n          ],\n          \"signedBy\": \"Mr.Grey\"\n        }\n      ],\n      \"shipmentTrackingNumber\": \"1234567890\",\n      \"status\": \"Success\",\n      \"shipmentTimestamp\": \"2020-05-14T18:00:31\",\n      \"productCode\": \"N\",\n      \"description\": \"Shipment Description\",\n      \"shipperDetails\": {\n        \"name\": \"SABO SKIRT\",\n        \"postalAddress\": {\n          \"cityName\": \"Brno\",\n          \"countyName\": \"Moravia\",\n          \"postalCode\": \"55500\",\n          \"provinceCode\": \"CZ\",\n          \"countryCode\": \"CZ\"\n        },\n        \"serviceArea\": [\n          {\n            \"code\": \"ABC\",\n            \"description\": \"Alpha Beta Area\",\n            \"outboundSortCode\": \"ut enim esse in incididunt\"\n          },\n          {\n            \"code\": \"ABC\",\n            \"description\": \"Alpha Beta Area\",\n            \"outboundSortCode\": \"anim pariatur adipisicing ipsum\"\n          }\n        ],\n        \"accountNumber\": \"nostrud\"\n      },\n      \"receiverDetails\": {\n        \"name\": \"SABO SKIRT\",\n        \"postalAddress\": {\n          \"cityName\": \"Bratislava\",\n          \"countyName\": \"Slovakia\",\n          \"postalCode\": \"77777\",\n          \"provinceCode\": \"SK\",\n          \"countryCode\": \"SK\"\n        },\n        \"serviceArea\": [\n          {\n            \"code\": \"BSA\",\n            \"description\": \"BSA Area\",\n            \"facilityCode\": \"facil area\",\n            \"inboundSortCode\": \"magna sit\"\n          },\n          {\n            \"code\": \"BSA\",\n            \"description\": \"BSA Area\",\n            \"facilityCode\": \"facil area\",\n            \"inboundSortCode\": \"ut nulla in occaecat\"\n          }\n        ]\n      },\n      \"totalWeight\": 10,\n      \"unitOfMeasurements\": \"metric\",\n      \"shipperReferences\": [\n        {\n          \"value\": \"Customer reference\",\n          \"typeCode\": \"CU\"\n        },\n        {\n          \"value\": \"Customer reference\",\n          \"typeCode\": \"CU\"\n        }\n      ],\n      \"numberOfPieces\": 1,\n      \"pieces\": [\n        {\n          \"events\": [\n            {\n              \"date\": \"enim in\",\n              \"time\": \"anim nostrud ad molli\",\n              \"typeCode\": \"dolor consectetur\",\n              \"description\": \"cillum reprehenderit incididunt es\",\n              \"serviceArea\": [\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"signedBy\": \"cupidatat esse quis Excepteur\"\n            },\n            {\n              \"date\": \"\",\n              \"time\": \"cupidatat\",\n              \"typeCode\": \"ame\",\n              \"description\": \"dolore nulla \",\n              \"serviceArea\": [\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"signedBy\": \"nulla sint id sed\"\n            }\n          ],\n          \"number\": 1,\n          \"typeCode\": \"ea dolore dolore occaecat\",\n          \"shipmentTrackingNumber\": \"do aliqua sit\",\n          \"trackingNumber\": \"adipisicing veniam in\",\n          \"description\": \"commodo fugiat\",\n          \"weight\": 22.5,\n          \"dimensionalWeight\": 22.5,\n          \"actualWeight\": 22.5,\n          \"dimensions\": {\n            \"length\": 15,\n            \"width\": 15,\n            \"height\": 40\n          },\n          \"actualDimensions\": {\n            \"length\": 15,\n            \"width\": 15,\n            \"height\": 40\n          },\n          \"unitOfMeasurements\": \"do esse fugiat\",\n          \"shipperReferences\": [\n            {\n              \"value\": \"Customer reference\",\n              \"typeCode\": \"CU\"\n            },\n            {\n              \"value\": \"Customer reference\",\n              \"typeCode\": \"CU\"\n            }\n          ]\n        },\n        {\n          \"events\": [\n            {\n              \"date\": \"esse dolore\",\n              \"time\": \"tempor deserunt proident\",\n              \"typeCode\": \"sit do\",\n              \"description\": \"ipsum commodo sunt officia\",\n              \"serviceArea\": [\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"signedBy\": \"irure culpa\"\n            },\n            {\n              \"date\": \"Duis amet nostrud\",\n              \"time\": \"sit eu id\",\n              \"typeCode\": \"Lorem ad\",\n              \"description\": \"amet\",\n              \"serviceArea\": [\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                },\n                {\n                  \"code\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  },\n                  \"description\": {\n                    \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n                  }\n                }\n              ],\n              \"signedBy\": \"minim occaec\"\n            }\n          ],\n          \"number\": 1,\n          \"typeCode\": \"dolor Duis reprehenderit\",\n          \"shipmentTrackingNumber\": \"incididunt \",\n          \"trackingNumber\": \"cillum minim cupidatat\",\n          \"description\": \"sed voluptate\",\n          \"weight\": 22.5,\n          \"dimensionalWeight\": 22.5,\n          \"actualWeight\": 22.5,\n          \"dimensions\": {\n            \"length\": 15,\n            \"width\": 15,\n            \"height\": 40\n          },\n          \"actualDimensions\": {\n            \"length\": 15,\n            \"width\": 15,\n            \"height\": 40\n          },\n          \"unitOfMeasurements\": \"consequat exercitation nulla\",\n          \"shipperReferences\": [\n            {\n              \"value\": \"Customer reference\",\n              \"typeCode\": \"CU\"\n            },\n            {\n              \"value\": \"Customer reference\",\n              \"typeCode\": \"CU\"\n            }\n          ]\n        }\n      ],\n      \"estimatedDeliveryDate\": \"2020-06-12\",\n      \"childrenShipmentIdentificationNumbers\": [\n        \"1234567890\",\n        \"1234567890\"\n      ]\n    }\n  ]\n}"
    },
    {
      "name": "Wrong input parameters",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          },
          {
            "description": "Please provide message reference\n",
            "key": "Message-Reference",
            "value": "d0e7832e-5c98-11ea-bc55-0242ac13"
          },
          {
            "description": "Optional reference date in the  HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2",
            "key": "Message-Reference-Date",
            "value": "Wed, 21 Oct 2015 07:28:00 GMT"
          },
          {
            "key": "Accept-Language",
            "value": "eng"
          },
          {
            "description": "Please provide name of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the shipping platform(applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the shipping platform (applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Version",
            "value": " "
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shipments/:shipmentTrackingNumber/tracking?trackingView=all-checkpoints&levelOfDetail=all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shipments",
            ":shipmentTrackingNumber",
            "tracking"
          ],
          "query": [
            {
              "key": "trackingView",
              "value": "all-checkpoints"
            },
            {
              "key": "levelOfDetail",
              "value": "all"
            }
          ],
          "variable": [
            {
              "key": "shipmentTrackingNumber",
              "value": "dolor veniam officia non",
              "description": "(Required) DHL Express shipment identification number"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"instance\": \"/expressapi/shipments/1251820953/tracking?trackingView=shipment-details&levelOfDetail=shipment\",\n  \"detail\": \"Parameters not having correct format: trackingView (valid parameters for trackingView are [last-checkpoint, all-checkpoints, bbx-children, advance-shipment, shipment-details-only]\",\n  \"title\": \"Wrong format\",\n  \"message\": \"Bad request\",\n  \"status\": \"400\"\n}"
    },
    {
      "name": "No data found",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          },
          {
            "description": "Please provide message reference\n",
            "key": "Message-Reference",
            "value": "d0e7832e-5c98-11ea-bc55-0242ac13"
          },
          {
            "description": "Optional reference date in the  HTTP-date format https://tools.ietf.org/html/rfc7231#section-7.1.1.2",
            "key": "Message-Reference-Date",
            "value": "Wed, 21 Oct 2015 07:28:00 GMT"
          },
          {
            "key": "Accept-Language",
            "value": "eng"
          },
          {
            "description": "Please provide name of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the plugin (applicable to 3PV only)\n",
            "key": "Plugin-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the shipping platform(applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the shipping platform (applicable to 3PV only)\n",
            "key": "Shipping-System-Platform-Version",
            "value": " "
          },
          {
            "description": "Please provide name of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Name",
            "value": " "
          },
          {
            "description": "Please provide version of the webstore platform (applicable to 3PV only)\n",
            "key": "Webstore-Platform-Version",
            "value": " "
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shipments/:shipmentTrackingNumber/tracking?trackingView=all-checkpoints&levelOfDetail=all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shipments",
            ":shipmentTrackingNumber",
            "tracking"
          ],
          "query": [
            {
              "key": "trackingView",
              "value": "all-checkpoints"
            },
            {
              "key": "levelOfDetail",
              "value": "all"
            }
          ],
          "variable": [
            {
              "key": "shipmentTrackingNumber",
              "value": "dolor veniam officia non",
              "description": "(Required) DHL Express shipment identification number"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"instance\": \"/expressapi/shipments/1251820953/tracking?trackingView=shipment-details&levelOfDetail=shipment\",\n  \"detail\": \"No data found\",\n  \"title\": \"Not data found\",\n  \"message\": \"Not data found\",\n  \"status\": \"404\"\n}"
    }
  ]
}