Get GSTR-3B Details
curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month} \
--header 'authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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-000040935190",
"data": {
"status_cd": "1",
"data": {
"gstin": "29HJKPS9689A8Z4",
"ret_period": "032020",
"sup_details": {
"osup_det": {
"txval": 250,
"iamt": 100,
"camt": 200,
"samt": 300,
"csamt": 400
},
"osup_zero": {
"txval": 250,
"iamt": 100,
"csamt": 400
},
"osup_nil_exmp": {
"txval": 250
},
"isup_rev": {
"txval": 250,
"iamt": 100,
"camt": 200,
"samt": 300,
"csamt": 400
},
"osup_nongst": {
"txval": 250
}
},
"inter_sup": {
"unreg_details": [
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
}
],
"comp_details": [
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
}
],
"uin_details": [
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
}
]
},
"eco_dtls": {
"eco_sup": {
"txval": 250,
"iamt": 100,
"camt": 200,
"samt": 300,
"csamt": 400
},
"eco_reg_sup": {
"txval": 250
}
},
"itc_elg": {
"itc_avl": [
{
"ty": "IMPG",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "IMPS",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "ISRC",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "ISD",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "OTH",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
}
],
"itc_rev": [
{
"ty": "RUL",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "OTH",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
}
],
"itc_net": {
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
"itc_inelg": [
{
"ty": "RUL",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "OTH",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
}
]
},
"inward_sup": {
"isup_details": [
{
"ty": "GST",
"inter": 100,
"intra": 200
},
{
"ty": "NONGST",
"inter": 300,
"intra": 400
}
]
},
"tx_pmt": {
"tx_py": [
{
"trans_typ": 30002,
"tran_desc": "Other than Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
},
{
"trans_typ": 30003,
"tran_desc": "Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
}
],
"adjnegliab": [
{
"trans_typ": 30002,
"tran_desc": "Other than Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
},
{
"trans_typ": 30003,
"tran_desc": "Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
}
],
"pdcash": [
{
"liab_ldg_id": 1233,
"trans_typ": 30002,
"ipd": 3517817,
"cpd": 3517817,
"spd": 3517817,
"cspd": 3517817,
"i_intrpd": 20,
"c_intrpd": 30,
"s_intrpd": 10,
"cs_intrpd": 15,
"c_lfeepd": 13,
"s_lfeepd": 13
},
{
"liab_ldg_id": 1233,
"trans_typ": 30003,
"ipd": 3517817,
"cpd": 3517817,
"spd": 3517817,
"cspd": 3517817,
"i_intrpd": 20,
"c_intrpd": 30,
"s_intrpd": 10,
"cs_intrpd": 15,
"c_lfeepd": 13,
"s_lfeepd": 13
}
],
"pditc": {
"liab_ldg_id": 12321,
"trans_typ": 30002,
"i_pdi": 3517817,
"i_pdc": 2290459,
"i_pds": 2290459,
"c_pdi": 3517817,
"c_pdc": 2290459,
"s_pdi": 3517817,
"s_pds": 2290459,
"cs_pdcs": 2290459
},
"pdnls": [
{
"trans_typ": 30002,
"tran_desc": "Other than Reverse Charge",
"liab_ldg_id": 11191,
"ipd": 100,
"spd": 100,
"cpd": 100,
"cspd": 100
},
{
"trans_typ": 30003,
"tran_desc": "Reverse Charge",
"liab_ldg_id": 11191,
"ipd": 100,
"spd": 100,
"cpd": 100,
"cspd": 100
}
],
"net_tax_pay": [
{
"trans_typ": 30002,
"tran_desc": "Other than Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
},
{
"trans_typ": 30003,
"tran_desc": "Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
}
]
},
"intr_ltfee": {
"intr_details": {
"iamt": 10,
"camt": 20,
"samt": 30,
"csamt": 40
},
"ltfee_details": {
"camt": 50,
"samt": 60
}
},
"liab_breakup": [
{
"ret_period": "032020",
"liability": {
"iamt": 1000,
"camt": 150,
"samt": 200,
"csamt": 300
}
},
{
"ret_period": "022020",
"liability": {
"iamt": 1000,
"camt": 150,
"samt": 200,
"csamt": 300
}
}
]
}
}
}Get GSTR-3B Details
Get all GSTR-3B details from GST portal for the authenticated taxpayer.
GET
/
gst
/
compliance
/
tax-payer
/
gstrs
/
gstr-3b
/
{year}
/
{month}
Get GSTR-3B Details
curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month} \
--header 'authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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/gstrs/gstr-3b/{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-000040935190",
"data": {
"status_cd": "1",
"data": {
"gstin": "29HJKPS9689A8Z4",
"ret_period": "032020",
"sup_details": {
"osup_det": {
"txval": 250,
"iamt": 100,
"camt": 200,
"samt": 300,
"csamt": 400
},
"osup_zero": {
"txval": 250,
"iamt": 100,
"csamt": 400
},
"osup_nil_exmp": {
"txval": 250
},
"isup_rev": {
"txval": 250,
"iamt": 100,
"camt": 200,
"samt": 300,
"csamt": 400
},
"osup_nongst": {
"txval": 250
}
},
"inter_sup": {
"unreg_details": [
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
}
],
"comp_details": [
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
}
],
"uin_details": [
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
},
{
"pos": "07",
"txval": 250,
"iamt": 200
}
]
},
"eco_dtls": {
"eco_sup": {
"txval": 250,
"iamt": 100,
"camt": 200,
"samt": 300,
"csamt": 400
},
"eco_reg_sup": {
"txval": 250
}
},
"itc_elg": {
"itc_avl": [
{
"ty": "IMPG",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "IMPS",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "ISRC",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "ISD",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "OTH",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
}
],
"itc_rev": [
{
"ty": "RUL",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "OTH",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
}
],
"itc_net": {
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
"itc_inelg": [
{
"ty": "RUL",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
},
{
"ty": "OTH",
"iamt": 136.53,
"camt": 274,
"samt": 162.99,
"csamt": 103
}
]
},
"inward_sup": {
"isup_details": [
{
"ty": "GST",
"inter": 100,
"intra": 200
},
{
"ty": "NONGST",
"inter": 300,
"intra": 400
}
]
},
"tx_pmt": {
"tx_py": [
{
"trans_typ": 30002,
"tran_desc": "Other than Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
},
{
"trans_typ": 30003,
"tran_desc": "Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
}
],
"adjnegliab": [
{
"trans_typ": 30002,
"tran_desc": "Other than Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
},
{
"trans_typ": 30003,
"tran_desc": "Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
}
],
"pdcash": [
{
"liab_ldg_id": 1233,
"trans_typ": 30002,
"ipd": 3517817,
"cpd": 3517817,
"spd": 3517817,
"cspd": 3517817,
"i_intrpd": 20,
"c_intrpd": 30,
"s_intrpd": 10,
"cs_intrpd": 15,
"c_lfeepd": 13,
"s_lfeepd": 13
},
{
"liab_ldg_id": 1233,
"trans_typ": 30003,
"ipd": 3517817,
"cpd": 3517817,
"spd": 3517817,
"cspd": 3517817,
"i_intrpd": 20,
"c_intrpd": 30,
"s_intrpd": 10,
"cs_intrpd": 15,
"c_lfeepd": 13,
"s_lfeepd": 13
}
],
"pditc": {
"liab_ldg_id": 12321,
"trans_typ": 30002,
"i_pdi": 3517817,
"i_pdc": 2290459,
"i_pds": 2290459,
"c_pdi": 3517817,
"c_pdc": 2290459,
"s_pdi": 3517817,
"s_pds": 2290459,
"cs_pdcs": 2290459
},
"pdnls": [
{
"trans_typ": 30002,
"tran_desc": "Other than Reverse Charge",
"liab_ldg_id": 11191,
"ipd": 100,
"spd": 100,
"cpd": 100,
"cspd": 100
},
{
"trans_typ": 30003,
"tran_desc": "Reverse Charge",
"liab_ldg_id": 11191,
"ipd": 100,
"spd": 100,
"cpd": 100,
"cspd": 100
}
],
"net_tax_pay": [
{
"trans_typ": 30002,
"tran_desc": "Other than Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
},
{
"trans_typ": 30003,
"tran_desc": "Reverse Charge",
"liab_ldg_id": 11191,
"sgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cgst": {
"intr": 100,
"tx": 100,
"fee": 100
},
"cess": {
"intr": 100,
"tx": 100
},
"igst": {
"intr": 100,
"tx": 100
}
}
]
},
"intr_ltfee": {
"intr_details": {
"iamt": 10,
"camt": 20,
"samt": 30,
"csamt": 40
},
"ltfee_details": {
"camt": 50,
"samt": 60
}
},
"liab_breakup": [
{
"ret_period": "032020",
"liability": {
"iamt": 1000,
"camt": 150,
"samt": 200,
"csamt": 300
}
},
{
"ret_period": "022020",
"liability": {
"iamt": 1000,
"camt": 150,
"samt": 200,
"csamt": 300
}
}
]
}
}
}Example return periods
| Response example | year | month |
|---|---|---|
| GSTR-3B details for the return period | 2020 | 3 |
| Saved return details for December 2023 | 2023 | 12 |
| GSTR-1 not filed | 2024 | 4 |
| Details after offsetting liabilities | 2024 | 11 |
Response schema
For successful responses, these resources describe the GSTN payload atdata.data.
View response 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.