Oktana Shipping Component Sample API Callouts
Oktana Shipping Component Sample API Callouts
Oktana Shipping Component Sample API Callouts
DHL
Request:
https://api-eu.dhl.com/track/shipments?trackingNumber=7777777770
Headers:
DHL-API-Key: 9qioA8vJc51DSvchQX461UnZzNWTxxxx
Response:
{
"shipments": [
{
"id": "7777777770",
"service": "express",
"origin": {
"address": {
"addressLocality": "MILAN - PESCHIERA BORROMEO - ITALY"
}
},
"destination": {
"address": {
"addressLocality": "ZURICH - UNTERENGSTRINGEN - SWITZERLAND"
}
},
"status": {
"timestamp": "2020-12-07T21:30:00",
"location": {
"address": {
"addressLocality": "MILAN - ITALY"
}
},
"description": "Please contact DHL"
},
"details": {
"proofOfDelivery": {
"signatureUrl": "https://webpod.dhl.com/webPOD/DHLePODRequest?hwb=j9810tDFU8HZ2FQiTvG7Tg
%3D%3D&pudate=jiNPeY6aSw7abZB9N5hG3w%3D%3D&appuid=NeQLZmL2WBPaKWVDPTi1%2FA%3D
%3D&language=en&country=G0",
"documentUrl": "https://webpod.dhl.com/webPOD/DHLePODRequest?hwb=j9810tDFU8HZ2FQiTvG7Tg
%3D%3D&pudate=jiNPeY6aSw7abZB9N5hG3w%3D%3D&appuid=NeQLZmL2WBPaKWVDPTi1%2FA%3D
%3D&language=en&country=G0"
},
"totalNumberOfPieces": 1
},
"events": [
{
"timestamp": "2020-12-07T21:30:00",
"location": {
"address": {
"addressLocality": "MILAN - ITALY"
}
},
"description": "Please contact DHL"
},
{
"timestamp": "2020-12-07T21:00:00",
"location": {
"address": {
"addressLocality": "MILAN - ITALY"
}
},
"description": "Shipper has generated a shipment label, but the shipment has not yet been handed over
to DHL"
}
]
}
],
"possibleAdditionalShipmentsUrl": [
"/track/shipments?trackingNumber=7777777770&service=freight",
"/track/shipments?trackingNumber=7777777770&service=dgf",
"/track/shipments?trackingNumber=7777777770&service=ecommerce",
"/track/shipments?trackingNumber=7777777770&service=parcel-de",
"/track/shipments?trackingNumber=7777777770&service=parcel-nl",
"/track/shipments?trackingNumber=7777777770&service=parcel-pl"
]
}
FedEx
Request:
Response:
UPS
Request:
https://wwwcie.ups.com/track/v1/details/1Z5338FF0107231059
Headers:
transactionSrc: A_Test
AccessLicenseNumber: 2D916189F6E5xxxx
Content-Type: application/json
Accept: application/json
Response:
{
"trackResponse": {
"shipment": [
{
"package": [
{
"trackingNumber": "1Z5338FF0107231059",
"activity": [
{
"location": {
"address": {
"city": "BALDWIN",
"stateProvince": "MD",
"postalCode": "",
"country": "US"
}
},
"status": {
"type": "X",
"description": "DeliveryAttempted",
"code": "48"
},
"date": "20191121",
"time": "140400"
},
{
"location": {
"address": {
"city": "Sparks",
"stateProvince": "MD",
"postalCode": "",
"country": "US"
}
},
"status": {
"type": "X",
"description":
"Thereceiverwasnotavailablefordelivery.We'llmakeasecondattemptthenextbusinessday.",
"code": "48"
},
"date": "20191121",
"time": "135800"
},
{
"location": {
"address": {
"city": "",
"stateProvince": "",
"postalCode": "",
"country": "US"
}
},
"status": {
"type": "M",
"description": "OrderProcessed:ReadyforUPS",
"code": "MP"
},
"date": "20191119",
"time": "132642"
}
]
}
]
}
]
}
}
USPS
Request:
https://secure.shippingapis.com/shippingapi.dll?API=TrackV2&XML=<TrackRequest
USERID="863OKTANxxxx"><TrackID ID="9505511755661034338575"/></TrackRequest>
Response: