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

FieldTypeDescription
statusstringStatus of the package can be the following one:
1. Shipped
2. Delivered
3. Not_delivered
tracking_numberstringTracking number of the package as per SOFP.
timestampstringDateTime 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 codeMessageDetails
401Unauthorised
400Bad 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."