Receive Trip Manifest

Overview

Service Unique Name ReceiveTripManifest
Request Method GET

Description

Receive Waybill API is used to receive the waybills or shipments from a particular Trip manifest all at once available in the ERP.

Request Header

AccessKey : logixerp

Request Body

These is form parameters:

  • tripManifestNumber : Trip Manifest Number

Request Details

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.
tripManifestNumber String Required The trip manifest number which is to be received.

Response Format

ON SUCCESS
{
"message" : "Trip Manifest receive successfully",
"messageType" : "Success"
}

ON ERROR
{
"message" : "ERROR_MESSAGE",
"messageType" : "Error"
}

Error Message String

Error Messages Description
Trip Manifest is not found When Trip Manifest value is not provided in the request or trip manifest number provided does not exist.
Trip Manifest already received When given Trip Manifest is already received.

Sample Code

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;

import java.net.URL;

public class ReceiveTripManifest {

private static final String USER_AGENT = "Mozilla/5.0";
private static final String ACCESS_KEY = "logixerp";
private static final String API_URL = "https://api.logixplatform.com/Rachna/webservice/v2/ReceiveTripManifest?secureKey=";
private static final int SECURE_KEY = SECURE KEY;
private static final String TRIPMAINFESTNUMBER = "LTPL/TC/2019-20/8";

private static final String ACCESS_URL = API_URL+SECURE_KEY+"&tripManifestNumber="+TRIPMAINFESTNUMBER;

public static void main(String[] args) throws IOException {

URL obj = new URL(ACCESS_URL);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("User-Agent", USER_AGENT);
con.setRequestProperty("AccessKey", ACCESS_KEY);
int responseCode = con.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) { // success
BufferedReader in = new BufferedReader(new InputStreamReader(
con.getInputStream()));
String inputLine;

StringBuffer response = new StringBuffer();

while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}

in.close();

// print result
System.out.println(response.toString());
} else {
System.out.println("GET request not worked");

}

}
}
import requests

access_url = "https://api.logixplatform.com/Rachna/webservice/v2/ReceiveTripManifest"
payload = {
'SecureKey':'secure_key',
'tripManifestNumber':'LTPL/TC/2019-20/8',

}

headers={'AccessKey':'logixerp'}

try:
r = requests.get(access_url, params=payload, headers=headers)
print (r.text)
except requests.exceptions.RequestException as err:
print (err)
please wait...