Create Trip Manifest API is used to create and send the trip manifest for the waybills or shipments from one operating unit to another operating unit.Multiple shipments can be sent in the trip manifest at one time.
VALID JSON STRING
{
"create TripManifest Data":
{
"from OU" : "NAGPUR",
"to OU" : "DELHI",
"dispatch Mode" : "BYROAD",
"waybill Numbers" : ["101314","102018"]
}
}
Parameter | Data Type | Required/Optional | Description |
---|---|---|---|
SecureKey | Required | It is a Unique key for accessing the API. For secure key email to support team. | |
fromOU | Required | Code of operating unit from where trip manifest is meant to be created. | |
toOU | Required | Code of operating unit the trip manifest is meant to receive. | |
dispatchMode | Required |
Dispatch mode (By Rail / FreightNX Air / By Road / By Air). It only takes the above mentioned values. |
|
waybillNumbers | Required | It takes waybill numbers in the form of array, ex: ["101314”,”102018”]. It can take single as well as multiple values. |
ON SUCCESS
{
"message" : "Trip Manifest created successfully: 123XXXXX877",
"messageType" : "Success"
}
ON ERROR
{
"message" : "From OU not found",
"messageType" : "Error"
}
Error Messages | Description |
---|---|
From OU missing | When from OU is given blank or wrong |
To OU missing | When to OU is given blank or wrong |
Dispatch Mode is missing | When dispatch mode is blank in the request |
Duplicate Waybill is not Allowed: [10XXXX] | When duplicate waybill exists in the array of waybill Numbers |
No such dispatch mode found | Wrong dispatch mode text is given in the request |
import java.net.URL;
public class CreateTripManifest {
public static void main(String[] args) throws IOException {
con.setDoOutput(true);
"}";
access_url = "https://api.logixplatform.com/Rachna/webservice/v2/CreateTripManifest"
headers = {'Content-Type': 'application/json', 'AccessKey' : 'logixerp'}