LEOPARDS PUSH API DOCUMENTATION
Version 1.0
Leopards API Documentation
API Method: Push Consignment Status (version: 1.0)
Introduction
This document describes the push consignment status API. The API will push the status updates
when new status is updated on any of your consignments on the LCS ECOM Portal via provided
callback URL.
Because the Leopards API is based on open standards, you can use any web development
language to implement this on your end.
To implement this, you have to create a callback URL. And it will be the standard HTTP method
like POST.
Please provide the following details:
API callback URL, which accepts POST requests.
API Credentials including API key and API secret key, if any. It will be sent in request
headers.
Custom request headers, if any.
Request
We will post data in JSON format like:
{
"data": [
"cn_number": "string",
"status": "string",
"receiver_name": "string",
"reason": "string",
"activity_date": "yyyy-mm-dd H:i:s"
},
"cn_number": "string",
"status": "string",
"receiver_name": "string",
"reason": "string",
"activity_date": "yyyy-mm-dd H:i:s"
]
}
Response
In case of success your API method will return the following:
Status_code 202
The result in JSON format like:
[
"status": 1,
"errors": []
]
In case of error your API method will return the following:
In case of Unauthorized request
status_code: 401
In case of Bad/Invalid or unprocessable request
status_code: 400
The result in JSON format like:
[
"status": 0,
"errors": [
"String"
},
]
Shipment Journey
Following statuses will be pushed from LCS to the web hook.
Serial
Status Name Status short code
No.
1 Consignment Booked (Shipment Scanned In LCS Facility) RC
2 Assigned To Courier (Out For Delivery) AC
3 Delivered (Terminal Status) DV
4 First Attempt In Forward Leg PN1
5 Second Attempt In Forward Leg PN2
6 Being Return RO
7 First Attempt In Reverse Leg RN1
8 Second Attempt In Reverse Leg RN2
9 Returned to Warehouse (Terminal Status) RW
10 Delivered to Warehouse (Terminal Status) DW
11 Returned to Shipper (Terminal Status) RS
12 Delivered to Vendor (Terminal Status) DR
13 Arrived At Station AR
14 Dispatched DP
15 Ready for Return NR
16 Shipment Picked SP