Get RCM statement
curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/rcm \
--header 'authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/rcm"
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/rcm', 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/rcm",
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/rcm"
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/rcm")
.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/rcm")
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-000046983938",
"data": {
"status_cd": "1",
"data": {
"gstin": "24MAYAS0100E9Z9",
"frdt": "01/09/2024",
"todt": "01/10/2024",
"opnbal": {
"igst": 395,
"cgst": 50,
"sgst": 497,
"cess": 4997
},
"tr": [
{
"trandt": "03/09/2024",
"desc": "Opening Balance reported",
"refno": "1324",
"inwardsup_3_1d": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
},
"clsbal": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
}
},
{
"trandt": "03/09/2024",
"rtnprd": "082024",
"desc": "On filing of GSTR-3B/3BQ",
"refno": "AA0612214478854",
"itc4a2": {
"igst": 100,
"cess": 100
},
"itc4a3": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
},
"inwardsup_3_1d": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
},
"clsbal": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
}
}
],
"clsbal": {
"igst": 395,
"cgst": 50,
"sgst": 497,
"cess": 4997
}
}
}
}Get RCM statement
Get the detailed RCM Liability Ledger for the specified period.
GET
/
gst
/
compliance
/
tax-payer
/
ledgers
/
rcm
Get RCM statement
curl --request GET \
--url https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/rcm \
--header 'authorization: <api-key>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/rcm"
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/rcm', 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/rcm",
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/rcm"
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/rcm")
.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/rcm")
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-000046983938",
"data": {
"status_cd": "1",
"data": {
"gstin": "24MAYAS0100E9Z9",
"frdt": "01/09/2024",
"todt": "01/10/2024",
"opnbal": {
"igst": 395,
"cgst": 50,
"sgst": 497,
"cess": 4997
},
"tr": [
{
"trandt": "03/09/2024",
"desc": "Opening Balance reported",
"refno": "1324",
"inwardsup_3_1d": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
},
"clsbal": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
}
},
{
"trandt": "03/09/2024",
"rtnprd": "082024",
"desc": "On filing of GSTR-3B/3BQ",
"refno": "AA0612214478854",
"itc4a2": {
"igst": 100,
"cess": 100
},
"itc4a3": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
},
"inwardsup_3_1d": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
},
"clsbal": {
"igst": 100,
"cgst": 100,
"sgst": 100,
"cess": 100
}
}
],
"clsbal": {
"igst": 395,
"cgst": 50,
"sgst": 497,
"cess": 4997
}
}
}
}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.