SendUpdateOrderStatus
Definition
Use this call to update the status of a package from shipped to delivered or delivery failed.
Request URI: https://sofp.lazada.sg/api/packages/statuses
Parameters
Field | Type | Description |
---|---|---|
status | string | Status of the package can be the following one: 1. Shipped 2. Delivered 3. Not_delivered |
tracking_number | string | Tracking number of the package as per SOFP. |
timestamp | string | DateTime string in the format "Y-m-d\TH:i:sP" https://www.ietf.org/rfc/rfc3339.txt |
Example
POST api/packages/statuses HTTP/1.1
Host: sofp-staging.lzd.co
Headers:
"Content-Type": "application/json"
"Authorization": "JWT <token>"
Body:
{
"status": "<current_package_status>", // "shipped", "delivered", "not_delivered" are available values as of now.
"tracking_number": "<tracking_number>",
"timestamp": "2016-12-22T04:45:11+00:00", // "Y-m-d\TH:i:sP" <RFC3339>
}
Result sample
Success
202 Accepted
Error messages
Error code | Message | Details |
---|---|---|
401 | Unauthorised | |
400 | Bad Request | "Package with the tracking number: %s doesn't exist." or "Data Error: There is required value missing." or "Status: %s is not registered in the system." |
Updated about 7 years ago