Quote TCS and all-in total for a remittance
curl --request POST \
--url https://api-pacb-uat.eximpe.com/pg/lrs/quote/ \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--header 'X-Merchant-ID: <api-key>' \
--data '
{
"pan": "ABCDE1234F",
"amount": 1200000,
"purpose_code": "S0305"
}
'import requests
url = "https://api-pacb-uat.eximpe.com/pg/lrs/quote/"
payload = {
"pan": "ABCDE1234F",
"amount": 1200000,
"purpose_code": "S0305"
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-Merchant-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'X-Merchant-ID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({pan: 'ABCDE1234F', amount: 1200000, purpose_code: 'S0305'})
};
fetch('https://api-pacb-uat.eximpe.com/pg/lrs/quote/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-pacb-uat.eximpe.com/pg/lrs/quote/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'pan' => 'ABCDE1234F',
'amount' => 1200000,
'purpose_code' => 'S0305'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-ID: <api-key>",
"X-Client-Secret: <api-key>",
"X-Merchant-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-pacb-uat.eximpe.com/pg/lrs/quote/"
payload := strings.NewReader("{\n \"pan\": \"ABCDE1234F\",\n \"amount\": 1200000,\n \"purpose_code\": \"S0305\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Merchant-ID", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-pacb-uat.eximpe.com/pg/lrs/quote/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("X-Merchant-ID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pan\": \"ABCDE1234F\",\n \"amount\": 1200000,\n \"purpose_code\": \"S0305\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/lrs/quote/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["X-Merchant-ID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pan\": \"ABCDE1234F\",\n \"amount\": 1200000,\n \"purpose_code\": \"S0305\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "LRS amount quoted",
"data": {
"pan": "ABCDE1234F",
"purpose_code": "S0305",
"financial_year": "2025-26",
"committed_inr": "0.00",
"remittance_inr": "1200000.00",
"taxable_inr": "200000.00",
"tcs_rate": "2%",
"tcs_inr": "4000.00",
"total_payable_inr": "1211080.00",
"tcs_threshold_breached_before": false,
"tcs_threshold_breached_after": true,
"tcs_reason": "partial_above_threshold",
"tcs_category": "STANDARD",
"refusal_reason": null
}
}LRS
Quote LRS Amount
Quote the TCS due and the all-in total a buyer pays for a proposed LRS remittance. Requires a verified PAN.
POST
/
pg
/
lrs
/
quote
/
Quote TCS and all-in total for a remittance
curl --request POST \
--url https://api-pacb-uat.eximpe.com/pg/lrs/quote/ \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--header 'X-Merchant-ID: <api-key>' \
--data '
{
"pan": "ABCDE1234F",
"amount": 1200000,
"purpose_code": "S0305"
}
'import requests
url = "https://api-pacb-uat.eximpe.com/pg/lrs/quote/"
payload = {
"pan": "ABCDE1234F",
"amount": 1200000,
"purpose_code": "S0305"
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"X-Merchant-ID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'X-Merchant-ID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({pan: 'ABCDE1234F', amount: 1200000, purpose_code: 'S0305'})
};
fetch('https://api-pacb-uat.eximpe.com/pg/lrs/quote/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-pacb-uat.eximpe.com/pg/lrs/quote/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'pan' => 'ABCDE1234F',
'amount' => 1200000,
'purpose_code' => 'S0305'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-ID: <api-key>",
"X-Client-Secret: <api-key>",
"X-Merchant-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-pacb-uat.eximpe.com/pg/lrs/quote/"
payload := strings.NewReader("{\n \"pan\": \"ABCDE1234F\",\n \"amount\": 1200000,\n \"purpose_code\": \"S0305\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Merchant-ID", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-pacb-uat.eximpe.com/pg/lrs/quote/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("X-Merchant-ID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pan\": \"ABCDE1234F\",\n \"amount\": 1200000,\n \"purpose_code\": \"S0305\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-pacb-uat.eximpe.com/pg/lrs/quote/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["X-Merchant-ID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pan\": \"ABCDE1234F\",\n \"amount\": 1200000,\n \"purpose_code\": \"S0305\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "LRS amount quoted",
"data": {
"pan": "ABCDE1234F",
"purpose_code": "S0305",
"financial_year": "2025-26",
"committed_inr": "0.00",
"remittance_inr": "1200000.00",
"taxable_inr": "200000.00",
"tcs_rate": "2%",
"tcs_inr": "4000.00",
"total_payable_inr": "1211080.00",
"tcs_threshold_breached_before": false,
"tcs_threshold_breached_after": true,
"tcs_reason": "partial_above_threshold",
"tcs_category": "STANDARD",
"refusal_reason": null
}
}Errors
Every refusal uses the standard envelope and carries40359 Invalid LRS request. — a malformed body and a refused quote alike. details is keyed by the request field the refusal is about, the same way Create Order keys a bad field, so read the key and fix that field before retrying.
details | When |
|---|---|
{"purpose_code": "Invalid Purpose code given."} | purpose_code is unknown or inactive. |
{"purpose_code": "Purpose code is not enabled for this merchant."} | purpose_code is valid but not enabled on your account. |
{"purpose_code": "This purpose code is not enabled for LRS on this account."} | purpose_code is enabled, but not for LRS. |
{"purpose_code": "The S0306 travel type (tour package or other travel) is not configured for this account, ..."} | S0306 is priced by your account’s travel type, and none is set. Contact EximPe. |
{"pan": "PAN is not verified. Verify the PAN before making an LRS request."} | Call Verify PAN first. |
{"payment_id": "Payment is not in a state that accepts verification details. Payment not found."} | No such payment for this merchant — the same answer whether it does not exist or belongs to someone else. |
A string: "The amount to be settled is derived from the credit for this merchant, so there is no amount to quote." | Your account settles an amount derived from the credit, so there is nothing to quote. This is about the account, not a field. |
Purpose code not enabled
{
"success": false,
"error": {
"code": 40359,
"message": "Invalid LRS request.",
"details": {
"purpose_code": "Purpose code is not enabled for this merchant."
}
}
}
200 with refusal_reason: "lrs_remittance_cap_exceeded" and the seven figures remittance_inr, taxable_inr, tcs_rate, tcs_inr, total_payable_inr, tcs_reason and tcs_category set to null. Check refusal_reason before you read the figures.
Branch on the
details key, not on code. code is 40359 for every refusal; the key names the field to fix.Authorizations
Headers
Body
application/json