Update Waybill API is used to update the waybill status and Cancel the waybill. Delivered Waybills can not be cancelled or updated.
These are form parameters:
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 | Unique waybill number should be same as available in ERP. Waybill status should not be Delivered. |
consigneeName | String | Optional | Receiver's Name. |
consigneeAddress | String | Optional | receiver's Address. |
consigneeCity | String | Optional | Receiver's City. |
consigneeState | String | Optional | Receiver's State. |
consigneeCountry | String | Optional | Consignee Country code. It should be two digits’ country code. Reference is given here. https://goo.gl/wgg9s |
consigneePhone | String | Optional | Consignee Phone Number which you want to update |
numberOfPackages | String | Optional | Enter number of packages which you want to update. |
actualWeight | String | Optional | Weight of the package |
chargedWeight | String | Optional | Charged weight is that which you charge as per contract. It should be same or greater then Actual weight. |
waybillStatus | String | Optional | Waybill status you can update it as Cancelled. |
cancelledRemarks | String | Optional/Required | If you are cancelling any waybill then you have to give remarks that why are you cancelling waybill. |
consigneeWhat3Words | Optional | To add W3W | |
consigneeGeoLocation | Optional | To update geolocation | |
paymentType | Optional | To update the waybill from cod to prepaid |
ON SUCCESS
{
"message":"Waybill updated successfully",
"messageType":"Success",
“waybillNumber”: “DELHI12565”
}
ON ERROR
{
"message": "Error_Message",
"messageType" : "Error"
}
Error Messages | Description |
---|---|
Waybill not found | Waybill details not available in the system |
Cancelled waybill can not be updated | Waybill status is already cancelled and it can’t be further updated |
Waybill status can not be updated | Waybill status is other than Data. |
import java.util.Map;
public class UpdateWaybill {
public static void main(String[] args) throws IOException {
params.put("consigneeCountry", "EG");
}
import requests
access_url = "https://api.logixplatform.com/Rachna/webservice/v2/UpdateWaybill"
}