Deren Api Dokumentation ist ein witz...
Mit der Dokumentation habe ich es auch nicht zum laufen bekommen, da man auf der Startseite aber auch ein Paket abfragen kann habe ich einfach mal geschaut was dort gemacht wird und das kurz nachgebaut.
Code:
{
"data":[
{
"result":40,
"track":"35244172210188",
"code":"DEEXPHEU",
"fromKey":"www.myhermes.de",
"toKey":"",
"fromCode":"Germany",
"toCode":"DE",
"wms":[
{
"ondate":"2018-09-02 00:40:04",
"status":"Order Created.",
"address":"ShenZhen"
},
{
"ondate":"2018-09-02 02:06:12",
"status":"Confirmed & Prepared For Packing.",
"address":"ShenZhen"
},
{
"ondate":"2018-09-02 02:06:14",
"status":"Shipping Label Printed.",
"address":"ShenZhen"
},
{
"ondate":"2018-09-02 04:04:55",
"status":"Departure in Location Warehouse Sorting Centre.",
"address":"ShenZhen"
}
],
"frist":[
{
"ondate":"2018-09-03 18:00:33",
"status":"Sent to HongKong Sorting Centre.",
"address":"ShenZhen"
},
{
"ondate":"2018-09-04 06:00:25",
"status":"Arrived at Hongkong Sorting Centre.",
"address":"Hongkong"
},
{
"ondate":"2018-09-05 02:00:23",
"status":"Departed Hongkong Sorting Centre.",
"address":"Hongkong"
},
{
"ondate":"2018-09-06 03:00:27",
"status":"Parcel arrived at the airport.",
"address":""
},
{
"ondate":"2018-09-06 09:00:00",
"status":"Parcel is in clearance.",
"address":""
},
{
"ondate":"2018-09-06 15:00:00",
"status":"Customs clearance processing complete.",
"address":""
},
{
"ondate":"2018-09-06 16:00:00",
"status":"Shipment in transit-delivered to destination country.",
"address":""
}
],
"from":[
{
"ondate":"2018-09-01 18:49:31",
"status":"The parcel has been announced electronically to Hermes. ",
"address":""
},
{
"ondate":"2018-09-07 20:51:54",
"status":"The parcel has been sorted at a Hermes Logistic Hub. ",
"address":""
},
{
"ondate":"2018-09-10 04:17:42",
"status":"The parcel has been sorted at a Hermes Logistic Hub. ",
"address":""
},
{
"ondate":"2018-09-10 04:17:42",
"status":"The parcel has been received at the Hermes depot LC Berlin.",
"address":""
},
{
"ondate":"2018-09-10 09:55:16",
"status":"The Parcel is out for delivery today ",
"address":""
},
{
"ondate":"2018-09-10 12:05:41",
"status":"The parcel has been delivered. ",
"address":""
}
],
"to":[
],
"latest":{
"ondate":"2018-09-10 12:05:41",
"status":"The parcel has been delivered. "
},
"expect":{
"ondate":"2018-09-02 04:04:55",
"expectDate":"",
"expectDays":0
},
"origin":"02",
"uuid":"0.1288423471849872-1543422605000"
}
],
"packTracks":[
],
"errKey":[
],
"errTracks":[
],
"isAd":true,
"status":{
"code":0,
"msg":"Success!"
}
}