E-Invoice
Get IRP Configuration
Retrieve the current Invoice Registration Portal (IRP) configuration for e-invoicing.
GET
/
v1
/
settings
/
irp
Get IRP (e-invoicing) configuration
curl --request GET \
--url https://billing.example.com/v1/settings/irp \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/settings/irp"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/settings/irp', 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://billing.example.com/v1/settings/irp",
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: Bearer <token>"
],
]);
$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://billing.example.com/v1/settings/irp"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/settings/irp")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/settings/irp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"tenant_id": "<string>",
"environment": "sandbox",
"client_id": "<string>",
"client_secret": "<string>",
"username": "<string>",
"password": "<string>",
"gstin": "<string>",
"is_enabled": true
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}Example Request
curl https://api.recurso.dev/v1/settings/irp \
-H "Authorization: Bearer rsk_live_7f3a9b2c1d4e8f0a"
Response
Returns the IRP configuration object. Sensitive fields are masked for security.{
"client_id": "ABCD****EF",
"client_secret": "sk_irp_****3210",
"username": "recurso_einv",
"password": "****",
"gstin": "29AABCT1332L1ZM",
"environment": "production",
"is_enabled": true,
"last_token_refresh": "2026-06-23T16:30:00Z",
"created_at": "2025-11-01T08:00:00Z",
"updated_at": "2026-06-23T16:30:00Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
client_id | string | The OAuth client ID, partially masked. |
username | string | The IRP portal login username. |
gstin | string | The 15-character GSTIN associated with this configuration. |
environment | string | Target environment. One of: sandbox, production. |
is_enabled | boolean | Whether e-invoicing is currently enabled. |
last_token_refresh | string | ISO 8601 timestamp of the last OAuth token refresh. null if credentials have not been validated. |
Sensitive fields (
client_id, client_secret, password) are partially masked in the response. Full credentials are never returned by the API.Use the Update IRP Configuration endpoint to modify credentials or toggle the
is_enabled flag.Authorizations
Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.
Query Parameters
Legal entity to scope the tax config to (Multi-Entity Books). Omit for the tenant's primary entity / default config.
Response
IRP configuration (client secret and password masked).
Show child attributes
Show child attributes
⌘I
Get IRP (e-invoicing) configuration
curl --request GET \
--url https://billing.example.com/v1/settings/irp \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/settings/irp"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/settings/irp', 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://billing.example.com/v1/settings/irp",
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: Bearer <token>"
],
]);
$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://billing.example.com/v1/settings/irp"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/settings/irp")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/settings/irp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"tenant_id": "<string>",
"environment": "sandbox",
"client_id": "<string>",
"client_secret": "<string>",
"username": "<string>",
"password": "<string>",
"gstin": "<string>",
"is_enabled": true
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}