Deliver Waybill API is used to deliver the waybills or shipments by creating delivery run sheet and then delivering the waybills in it all at once. You can deliver maximum 10 waybills at a time.
VALID JSON STRING
{
"waybillDeliveryRequestData":
[
{
"waybillNumber": "528555",
"remarks": "VERY SOON ",
"deliveredTo": "naveen",
"deliveryTime": "2020-02-25 16:00:00",
"deliveryStatus": "RTO-Delivered"
},
{
"waybillNumber": "DELHI11626",
"remarks": "VERY SOON ",
"deliveredTo": "amit",
"deliveryTime": "2020-02-25 17:00:00",
"deliveryStatus": "Delivered"
}
]
}
Parameter | Data Type | Required/Optional | Description |
---|---|---|---|
SecureKey | int | Required | It is a Unique key for accessing the API. For secure key email to support team. |
waybillNumber | String | Required | Waybill number which is supposed to be deliver. |
remarks | String | Optional | Remarks for the waybill if user wants to give any special instruction. |
deliveredTo | String | Optional | Name of the person to whom waybill is delivered. |
deliveryTime | String | Optional | The time of delivering the waybill which will take date from the waybill’s booking date till current date. Its format is yyyy-mm-dd hh:mm:ss |
deliveryStatus | String | Required | delivery status is updated in the given format only (Un-Delivered / Delivered / RTO-Delivered / Partial-Delivered). |
customStatus | String | Optional | If user wants to give any status. |
ON SUCCESS
{
"drsDetails":
{
"creationDate": "2020-02-25T15:00:00",
"number": "Delhi/2020/1315"
},
"message": "Delivery Run Sheet created successfully",
"messageType": "Success"
}
ON ERROR
{
"message":"ERROR_MESSAGE",
"messageType":"Error"
}
Error Messages | Description |
---|---|
Duplicate waybill number is not allowed | When any waybill is sent multiple times in the same request. |
More than 10 waybills are not allowed. | When number of waybills sent in the request is more than 10. |
Date should not be after today's date | When date and time is given after the current date and time. |
Delivery Run Sheet creation failed | Some internal error occurred. |
import java.net.URL;
public class DeliverWaybill {
public static void main(String[] args) throws IOException {
con.setDoOutput(true);
"}";
access_url = "https://api.logixplatform.com/Rachna/webservice/v2/DeliverWaybill"
}
headers = {'Content-Type': 'application/json', 'AccessKey' : 'logixerp'}