Get Return Liability Ledger
curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month} \
--header 'authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}"
headers = {
"authorization": "<api-key>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {authorization: '<api-key>', 'x-api-key': '<api-key>'}};
fetch('https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}', 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.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: <api-key>",
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}")
.header("authorization", "<api-key>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["authorization"] = '<api-key>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 200,
"timestamp": 1795478400000,
"transaction_id": "00000000-0000-4000-8000-000040935242",
"data": {
"status_cd": "1",
"data": {
"gstin": "06AAAAA0000A1Z6",
"fr_dt": "122018",
"to_dt": "122018",
"tr": [
{
"dt": "09/12/2018",
"ref_no": "AM051216747183N",
"tot_rng_bal": 48,
"tot_tr_amt": 48,
"tr_typ": "Dr",
"desc": "Other than reverse charge",
"dschrg_typ": "",
"igst": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"sgst": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"cgst": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"cess": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"igstbal": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"sgstbal": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"cgstbal": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"cessbal": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
}
},
{
"dt": "10/12/2018",
"ref_no": "DI0506170000004",
"tot_rng_bal": 24,
"tot_tr_amt": 24,
"tr_typ": "Cr",
"desc": "Other than reverse charge",
"dschrg_typ": "credit",
"igst": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"sgst": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cgst": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cess": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"igstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"sgstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cgstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cessbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
}
}
],
"cl_bal": {
"tot_rng_bal": 24,
"desc": "Closing Balance",
"igstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"sgstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cgstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cessbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
}
}
}
}
}Return Liability Ledger
Get return related ledger for the specified date range.
GET
/
gst
/
compliance
/
tax-payer
/
ledgers
/
tax
/
{year}
/
{month}
Get Return Liability Ledger
curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month} \
--header 'authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}"
headers = {
"authorization": "<api-key>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {authorization: '<api-key>', 'x-api-key': '<api-key>'}};
fetch('https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}', 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.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: <api-key>",
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}")
.header("authorization", "<api-key>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/tax/{year}/{month}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["authorization"] = '<api-key>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 200,
"timestamp": 1795478400000,
"transaction_id": "00000000-0000-4000-8000-000040935242",
"data": {
"status_cd": "1",
"data": {
"gstin": "06AAAAA0000A1Z6",
"fr_dt": "122018",
"to_dt": "122018",
"tr": [
{
"dt": "09/12/2018",
"ref_no": "AM051216747183N",
"tot_rng_bal": 48,
"tot_tr_amt": 48,
"tr_typ": "Dr",
"desc": "Other than reverse charge",
"dschrg_typ": "",
"igst": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"sgst": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"cgst": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"cess": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"igstbal": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"sgstbal": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"cgstbal": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
},
"cessbal": {
"intr": 2,
"oth": 2,
"tx": 2,
"fee": 2,
"pen": 2,
"tot": 12
}
},
{
"dt": "10/12/2018",
"ref_no": "DI0506170000004",
"tot_rng_bal": 24,
"tot_tr_amt": 24,
"tr_typ": "Cr",
"desc": "Other than reverse charge",
"dschrg_typ": "credit",
"igst": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"sgst": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cgst": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cess": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"igstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"sgstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cgstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cessbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
}
}
],
"cl_bal": {
"tot_rng_bal": 24,
"desc": "Closing Balance",
"igstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"sgstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cgstbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
},
"cessbal": {
"intr": 1,
"oth": 1,
"tx": 1,
"fee": 1,
"pen": 1,
"tot": 6
}
}
}
}
}Response schema
For successful responses, these resources describe the GSTN payload atdata.data.
View JSON schema
View Excel field reference
Authorizations
GST taxpayer access token returned by Verify OTP.
Path Parameters
Response
200 - application/json
GSTN response. data.status_cd is "1" for success and "0" for a business error.
- Option 1
- GSTN business error
A GSTN success or GSTN business-failure response. Both variants use HTTP 200.