Get GSTR-3B negative liability details
curl --request GET \
--url https://api.example.com/gst/compliance/tax-payer/ledgers/negative-liability \
--header 'authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/gst/compliance/tax-payer/ledgers/negative-liability"
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.example.com/gst/compliance/tax-payer/ledgers/negative-liability', 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.example.com/gst/compliance/tax-payer/ledgers/negative-liability",
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.example.com/gst/compliance/tax-payer/ledgers/negative-liability"
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.example.com/gst/compliance/tax-payer/ledgers/negative-liability")
.header("authorization", "<api-key>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/gst/compliance/tax-payer/ledgers/negative-liability")
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-000046983939",
"data": {
"status_cd": "1",
"data": {
"openbal": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 36425,
"cgst": 36425,
"sgst": 36425,
"cess": 36425
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 36425,
"cgst": 36425,
"sgst": 36425,
"cess": 36425
}
],
"closebal": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 36425,
"cgst": 36425,
"sgst": 36425,
"cess": 36425
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 36425,
"cgst": 36425,
"sgst": 36425,
"cess": 36425
}
],
"negliabdtls": [
{
"rtnprd": "092019",
"refno": "ab125632512123c",
"trantyp": "Debit",
"trandate": "12/10/2019",
"desc": "Negative liability for GSTR3B/3BQ",
"negliab": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 0,
"cgst": 2323,
"sgst": 656,
"cess": 656
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 0,
"cgst": 2323,
"sgst": 656,
"cess": 656
}
],
"negliabal": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 0,
"cgst": 2323,
"sgst": 656,
"cess": 656
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 0,
"cgst": 2323,
"sgst": 656,
"cess": 656
}
]
},
{
"rtnprd": "092019",
"refno": "ab125632512123c",
"trantyp": "Credit",
"trandate": "12/10/2019",
"desc": "Negative liability for GSTR3B/3BQ",
"negliab": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 1212,
"cgst": 0,
"sgst": 0,
"cess": 0
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 1212,
"cgst": 0,
"sgst": 0,
"cess": 0
}
],
"negliabal": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 1212,
"cgst": 0,
"sgst": 0,
"cess": 0
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 1212,
"cgst": 0,
"sgst": 0,
"cess": 0
}
]
}
]
}
}
}Get GSTR-3B negative liability details
Get negative liability details for GSTR-3B.
GET
/
gst
/
compliance
/
tax-payer
/
ledgers
/
negative-liability
Get GSTR-3B negative liability details
curl --request GET \
--url https://api.example.com/gst/compliance/tax-payer/ledgers/negative-liability \
--header 'authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/gst/compliance/tax-payer/ledgers/negative-liability"
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.example.com/gst/compliance/tax-payer/ledgers/negative-liability', 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.example.com/gst/compliance/tax-payer/ledgers/negative-liability",
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.example.com/gst/compliance/tax-payer/ledgers/negative-liability"
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.example.com/gst/compliance/tax-payer/ledgers/negative-liability")
.header("authorization", "<api-key>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/gst/compliance/tax-payer/ledgers/negative-liability")
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-000046983939",
"data": {
"status_cd": "1",
"data": {
"openbal": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 36425,
"cgst": 36425,
"sgst": 36425,
"cess": 36425
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 36425,
"cgst": 36425,
"sgst": 36425,
"cess": 36425
}
],
"closebal": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 36425,
"cgst": 36425,
"sgst": 36425,
"cess": 36425
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 36425,
"cgst": 36425,
"sgst": 36425,
"cess": 36425
}
],
"negliabdtls": [
{
"rtnprd": "092019",
"refno": "ab125632512123c",
"trantyp": "Debit",
"trandate": "12/10/2019",
"desc": "Negative liability for GSTR3B/3BQ",
"negliab": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 0,
"cgst": 2323,
"sgst": 656,
"cess": 656
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 0,
"cgst": 2323,
"sgst": 656,
"cess": 656
}
],
"negliabal": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 0,
"cgst": 2323,
"sgst": 656,
"cess": 656
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 0,
"cgst": 2323,
"sgst": 656,
"cess": 656
}
]
},
{
"rtnprd": "092019",
"refno": "ab125632512123c",
"trantyp": "Credit",
"trandate": "12/10/2019",
"desc": "Negative liability for GSTR3B/3BQ",
"negliab": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 1212,
"cgst": 0,
"sgst": 0,
"cess": 0
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 1212,
"cgst": 0,
"sgst": 0,
"cess": 0
}
],
"negliabal": [
{
"desc": "Other than reverse charge",
"trancd": 30002,
"igst": 1212,
"cgst": 0,
"sgst": 0,
"cess": 0
},
{
"desc": "Reverse charge and supplies made u/s 9(5)",
"trancd": 30003,
"igst": 1212,
"cgst": 0,
"sgst": 0,
"cess": 0
}
]
}
]
}
}
}Response schema
For successful responses, this schema describes the GSTN payload atdata.data.
View response JSON schema
Excel field reference
View Excel field reference
Authorizations
GST taxpayer access token returned by Verify OTP.
Query 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.