A parcel journey contains the full tracking history related to the delivery of a parcel.
It unifies in a normalised format all of the events that have been published for the parcel, both pre-allocation and post-allocation.
These events include deliveries, delivery legs, and carrier tracking events.
User-Agent | string The name of the client that interacts with the API. Example: REPLACE-WITH-YOUR-USER-AGENT |
Accept-Encoding | string Enables the compression of the content returned in the response. Supported content encodings are Example: gzip, deflate |
Accept-Language | string Use this header to retrieve parcel journeys with information localised in the requested language. The default format used is an ISO 639-1 language code in lowercase hyphenated with a country code in ISO 3166-1 alpha-2 format in UPPERCASE. For example, If this header is omitted, the parcel journeys will be returned with information localised in English. Note: Localised information will be returned only when requesting a supported language. Example: en-GB |
Parcel Journeys have been returned successfully
Bad request.
The request failed validation due to missing required information in the parameters or the body of the request.
Error code: PS-0400.
Unauthorized.
The request did not provide the credentials required to authorize access to the API.
Error code: PS-0401.
Forbidden.
The API user is not authorized to proceed with the processing of the request.
Error code: PS-0403.
Internal Server Error.
The processing of the request failed due to an internal problem. The request needs to be retried.
Error code: PS-0500.
[- {
- "order": {
- "orderRef": "REPLACE-WITH-YOUR-ORDER-REF",
- "orderDate": "2019-08-24T14:15:22Z",
- "marketplace": "Acme",
- "billingAddress": {
- "addressLine1": "200 Grays Inn Road",
- "addressLine2": "string",
- "postCode": "WC1X 8XZ",
- "countryCode": "GBR",
- "companyName": "Metapack",
- "city": "London",
- "stateProvince": "London",
- "timeZone": "Europe/London"
}, - "customer": {
- "customerRef": "REPLACE-WITH-YOUR-CUSTOMER-REF",
- "customerSegment": "VIP",
- "email": "john.doe@example.com",
- "name": "John Doe",
- "phone": "07814354765"
}, - "products": [
- {
- "productRef": "PRD-12345",
- "name": "Trainers",
- "description": "string",
- "longDescription": "string",
- "quantity": 1,
- "size": "39 / 6",
- "colour": "Blue",
- "images": {
- "altTag": "Picture of trainers"
}, - "salePrice": {
- "amount": 60.99,
- "currencyCode": "GBP"
}, - "items": [
- {
- "itemRef": "PRD-12345-BL-06"
}
]
}
], - "seller": {
- "brand": "Phasion for Men",
- "brandRef": "PH20MEN",
- "companyName": "Phasion",
- "id": "6a624ffb-1032-4941-ba4b-c23834bfc876",
- "parentOrg": "Metapack"
}
}, - "recipient": {
- "addressLine1": "200 Grays Inn Road",
- "addressLine2": "string",
- "postCode": "WC1X 8XZ",
- "countryCode": "GBR",
- "companyName": "Metapack",
- "city": "London",
- "stateProvince": "London",
- "timeZone": "Europe/London",
- "contact": {
- "name": "John Doe",
- "email": "johndoe@email.com",
- "phone": "07814354765",
- "identity": {
- "birthDate": "13/05/1978"
}
}
}, - "delivery": {
- "carrierPINCode": "2351",
- "carrierServiceType": "TRACKED",
- "direction": "OUTBOUND",
- "instructions": "Please collect your parcel from the pick up location",
- "returnType": "ON_DEMAND",
- "shippedDateTime": "2019-08-24T14:15:22Z",
- "type": "PUDO",
- "deliveryWindow": {
- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z"
}, - "selectedTimeSlot": {
- "from": "11:00:00",
- "to": "12:00:00"
}
}, - "collection": {
- "accessibility": true,
- "daysHeld": 7,
- "information": "Collection counter on 2nd floor next to womenswear",
- "locationId": "EASYCOLLECT-1234",
- "openingHours": [
- "Mo 08:00-12:00,14:00-17:00",
- "Tu 09:00-20:00",
- "We 09:00-20:00",
- "Th 09:00-20:00",
- "Fr 09:00-20:00",
- "Sa 09:00-17:00",
- "Su 09:00-17:00"
], - "parkingAvailability": true,
- "address": {
- "addressLine1": "200 Grays Inn Road",
- "addressLine2": "string",
- "postCode": "WC1X 8XZ",
- "countryCode": "GBR",
- "companyName": "Metapack",
- "city": "London",
- "stateProvince": "London",
- "timeZone": "Europe/London",
- "contact": {
- "email": "somebody@example.com",
- "phone": "0800155781"
}
}, - "location": {
- "latitude": 51.52325226913702,
- "longitude": -0.1146692876584629,
- "what3words": "lowest.homes.calm",
- "name": "Warehouse 11"
}
}, - "parcel": {
- "deliveryRef": "REPLACE-WITH-YOUR-DELIVERY-REF",
- "parcelRef": "REPLACE-WITH-YOUR-PARCEL-REF",
- "deliveryLegs": [
- {
- "carrierCode": "DPD_UK",
- "carrierDisplayName": "DPD UK",
- "carrierServiceCode": "DPD_UK_CLASSIC",
- "finalDeliveryLeg": true,
- "trackingIdentifier": "REPLACE-WITH-YOUR-TRACKING-IDENTIFIER"
}
], - "items": [
- {
- "itemRef": "PRD-12345-BL-06"
}
]
}, - "latestTrackingStatus": {
- "trackingIdentifier": "REPLACE-WITH-YOUR-TRACKING-IDENTIFIER",
- "deliveryRef": "REPLACE-WITH-YOUR-DELIVERY-REF",
- "eventCode": "AWAITING_COLLECTION_FROM_PICKUP_POINT",
- "eventDate": "2019-08-24T14:15:22Z",
- "eventSource": "STORE",
- "eventTimeZone": "Europe/London",
- "eventLocation": {
- "location": {
- "latitude": 51.52325226913702,
- "longitude": -0.1146692876584629,
- "what3words": "lowest.homes.calm",
- "name": "Warehouse 11"
}, - "address": {
- "addressLine1": "200 Grays Inn Road",
- "addressLine2": "string",
- "postCode": "WC1X 8XZ",
- "countryCode": "GBR",
- "companyName": "Metapack",
- "city": "London",
- "stateProvince": "London",
- "timeZone": "Europe/London"
}
}, - "eventDescription": "Ready to collect",
- "eventCategory": "HAPPY",
- "exceptionMessage": "The delivery company will provide instructions about where to collect your order.",
- "statusCode": "READY_TO_COLLECT",
- "statusDescription": "Ready to collect"
}, - "sender": {
- "addressLine1": "200 Grays Inn Road",
- "addressLine2": "string",
- "postCode": "WC1X 8XZ",
- "countryCode": "GBR",
- "companyName": "Metapack",
- "city": "London",
- "stateProvince": "London",
- "timeZone": "Europe/London"
}, - "trackingEvents": [
- {
- "trackingIdentifier": "REPLACE-WITH-YOUR-TRACKING-IDENTIFIER",
- "deliveryRef": "REPLACE-WITH-YOUR-DELIVERY-REF",
- "eventCode": "AWAITING_COLLECTION_FROM_PICKUP_POINT",
- "eventDate": "2019-08-24T14:15:22Z",
- "eventSource": "STORE",
- "eventTimeZone": "Europe/London",
- "eventLocation": {
- "location": {
- "latitude": 51.52325226913702,
- "longitude": -0.1146692876584629,
- "what3words": "lowest.homes.calm",
- "name": "Warehouse 11"
}, - "address": {
- "addressLine1": "200 Grays Inn Road",
- "addressLine2": "string",
- "postCode": "WC1X 8XZ",
- "countryCode": "GBR",
- "companyName": "Metapack",
- "city": "London",
- "stateProvince": "London",
- "timeZone": "Europe/London"
}
}, - "eventDescription": "Ready to collect",
- "eventCategory": "HAPPY",
- "exceptionMessage": "The delivery company will provide instructions about where to collect your order.",
- "statusCode": "READY_TO_COLLECT",
- "statusDescription": "Ready to collect"
}
]
}
]