A delivery event is an event published by a seller that relates to the status of a delivery pre-allocation, such as an order being processed or awaiting payment.
Delivery events can be defined before a trackable item exists.
Delivery event has been published 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.
Unsupported media format.
The request failed due to an unsupported media type in the request.
Error code: PS-0415.
Internal Server Error.
The processing of the request failed due to an internal problem. The request needs to be retried.
Error code: PS-0500.
{- "deliveryRef": "REPLACE-WITH-YOUR-DELIVERY-REF",
- "eventCode": "ORDER_ACCEPTED",
- "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"
}
}
}
{- "message": "This is an error message",
- "errorCode": "PS-XXXX",
- "systemMessage": "This is a system message related to the error",
- "traceId": "4d1544c7-1977-4c03-82fa-ecacd1837532",
- "timestamp": "2019-08-24T14:15:22Z"
}