Get DAT Invoice Detail

Overview

Service Unique Name GetDATInvoiceDetail
Request Method GET

Description

API is used to get DAT (Duties And Taxes) Invoice Details. Through this API user can get the details of paid duties and taxes customer wise.

Request Header

AccessKey : logixerp

Request Body

These are form parameters:

  • waybillNumber: WAYBILL NUMBER
  • referenceNumber: REFERENCE NUMBER
  • carrierWaybill: CARRIER WAYBILL 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.
waybillNumber String Optional It takes DAT Invoice details by waybill number.
referenceNumber String Optional It takes DAT Invoice details by waybill reference number.
carrierWaybill String Optional It takes DAT Invoice details by carrier waybill number.

Response Format

ON SUCCESS
{
"carrierWaybill": null,
"customerInvoiceAmount": 2300.0,
"customerInvoiceNumber": "XYZ/PQR/STV",
"message": "_detail_get_successfully",
"messageType": "Success",
"printUrl": "UrlOfPrint",
"purchaseAmount": 7300.0,
"referenceNumber": "reference",
"waybillNumber": "WAYBILLNUMBER"
}

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

Error Message String

Error Messages Description

Sample Code

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

import java.net.URL;

public class GetDATInvoiceDetail {

private static final String USER_AGENT = "Mozilla/5.0";
private static final String ACCESS_KEY = "logixerp";
private static final String API_URL = "https://webservice.logixerp.com/Rachna/webservice/v2/getDatInvoiceDetail?SecureKey=";
private static final int SECURE_KEY = SECURE KEY;
private static final String WAYBILLNUMBER = "DELHI12072";
private static final String REFERENCENUMBER = "";
private static final String CARRIERWAYBILL = "";

private static final String ACCESS_URL = API_URL+SECURE_KEY+"&waybillNumber="+WAYBILLNUMBER+"&referenceNumber=" +REFERENCENUMBER+"&carrierWaybill="+CARRIERWAYBILL;

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://webservice.logixerp.com/Rachna/webservice/v2/getDatInvoiceDetail"
payload = {
'SecureKey':'secure_key',
'waybillNumber':'DELHI12072',
'referenceNumber':None,
'carrierWaybill':None

}

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...