GST
Update GST Configuration
Update your organization’s GST configuration for tax compliance and e-invoicing.
PUT
/
v1
/
settings
/
gst
Update GST configuration
curl --request PUT \
--url https://billing.example.com/v1/settings/gst \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"gstin": "<string>",
"state_code": "<string>",
"state_name": "<string>",
"sac_code": "998314",
"gst_rate": 18,
"pan": "<string>",
"legal_name": "<string>",
"trade_name": "<string>",
"address": "<string>",
"has_lut": true
}
'import requests
url = "https://billing.example.com/v1/settings/gst"
payload = {
"gstin": "<string>",
"state_code": "<string>",
"state_name": "<string>",
"sac_code": "998314",
"gst_rate": 18,
"pan": "<string>",
"legal_name": "<string>",
"trade_name": "<string>",
"address": "<string>",
"has_lut": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
gstin: '<string>',
state_code: '<string>',
state_name: '<string>',
sac_code: '998314',
gst_rate: 18,
pan: '<string>',
legal_name: '<string>',
trade_name: '<string>',
address: '<string>',
has_lut: true
})
};
fetch('https://billing.example.com/v1/settings/gst', 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/gst",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'gstin' => '<string>',
'state_code' => '<string>',
'state_name' => '<string>',
'sac_code' => '998314',
'gst_rate' => 18,
'pan' => '<string>',
'legal_name' => '<string>',
'trade_name' => '<string>',
'address' => '<string>',
'has_lut' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/settings/gst"
payload := strings.NewReader("{\n \"gstin\": \"<string>\",\n \"state_code\": \"<string>\",\n \"state_name\": \"<string>\",\n \"sac_code\": \"998314\",\n \"gst_rate\": 18,\n \"pan\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"trade_name\": \"<string>\",\n \"address\": \"<string>\",\n \"has_lut\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://billing.example.com/v1/settings/gst")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"gstin\": \"<string>\",\n \"state_code\": \"<string>\",\n \"state_name\": \"<string>\",\n \"sac_code\": \"998314\",\n \"gst_rate\": 18,\n \"pan\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"trade_name\": \"<string>\",\n \"address\": \"<string>\",\n \"has_lut\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/settings/gst")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"gstin\": \"<string>\",\n \"state_code\": \"<string>\",\n \"state_name\": \"<string>\",\n \"sac_code\": \"998314\",\n \"gst_rate\": 18,\n \"pan\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"trade_name\": \"<string>\",\n \"address\": \"<string>\",\n \"has_lut\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"gstin": "<string>",
"state_code": "<string>",
"state_name": "<string>",
"sac_code": "998314",
"gst_rate": 18,
"pan": "<string>",
"legal_name": "<string>",
"trade_name": "<string>",
"address": "<string>",
"has_lut": true
},
"message": "<string>"
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
gstin | string | Yes | The 15-character GST Identification Number. Must match the standard GSTIN format. |
legal_name | string | Yes | The registered legal name of your business as per GST records. |
trade_name | string | No | The trade or brand name of your business. |
state_code | string | Yes | The two-digit state code (e.g., "29" for Karnataka, "27" for Maharashtra). |
sac_code | string | Yes | The Services Accounting Code for your primary service category. This determines the GST rate — the rate follows the SAC/HSN classification. |
gst_rate | number | No | Fallback rate (percentage, e.g. 18.0) applied only when sac_code isn’t a recognized classification. A recognized sac_code always takes precedence; 0 uses the built-in default. |
Example Request
curl -X PUT https://api.recurso.dev/v1/settings/gst \
-H "Authorization: Bearer rsk_live_7f3a9b2c1d4e8f0a" \
-H "Content-Type: application/json" \
-d '{
"gstin": "29AABCT1332L1ZM",
"legal_name": "Recurso Technologies Pvt Ltd",
"trade_name": "Recurso",
"state_code": "29",
"sac_code": "998314",
"gst_rate": 18.0
}'
Response
{
"gstin": "29AABCT1332L1ZM",
"legal_name": "Recurso Technologies Pvt Ltd",
"trade_name": "Recurso",
"state_code": "29",
"sac_code": "998314",
"gst_rate": 18.0,
"einvoice_enabled": true,
"created_at": "2025-08-12T06:30:00Z",
"updated_at": "2026-06-23T15:20:00Z"
}
Notes
- The
gstinformat is validated against the standard 15-character pattern: 2 digits (state code) + 10 characters (PAN) + 1 digit (entity number) + 1 character (Z) + 1 check digit. - Changing the
state_codewill affect CGST/SGST vs IGST calculations on all future invoices. - This endpoint does not control
einvoice_enabled. Use the IRP Configuration endpoint to manage e-invoicing settings.
Updating GST configuration applies to all future invoices. Existing finalized invoices are not retroactively modified.
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.
Body
application/json
Required string length:
15Two-digit Indian state code (derived from the GSTIN when omitted).
Example:
"998314"
Example:
18
Letter of Undertaking on file (zero-rated exports).
⌘I
Update GST configuration
curl --request PUT \
--url https://billing.example.com/v1/settings/gst \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"gstin": "<string>",
"state_code": "<string>",
"state_name": "<string>",
"sac_code": "998314",
"gst_rate": 18,
"pan": "<string>",
"legal_name": "<string>",
"trade_name": "<string>",
"address": "<string>",
"has_lut": true
}
'import requests
url = "https://billing.example.com/v1/settings/gst"
payload = {
"gstin": "<string>",
"state_code": "<string>",
"state_name": "<string>",
"sac_code": "998314",
"gst_rate": 18,
"pan": "<string>",
"legal_name": "<string>",
"trade_name": "<string>",
"address": "<string>",
"has_lut": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
gstin: '<string>',
state_code: '<string>',
state_name: '<string>',
sac_code: '998314',
gst_rate: 18,
pan: '<string>',
legal_name: '<string>',
trade_name: '<string>',
address: '<string>',
has_lut: true
})
};
fetch('https://billing.example.com/v1/settings/gst', 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/gst",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'gstin' => '<string>',
'state_code' => '<string>',
'state_name' => '<string>',
'sac_code' => '998314',
'gst_rate' => 18,
'pan' => '<string>',
'legal_name' => '<string>',
'trade_name' => '<string>',
'address' => '<string>',
'has_lut' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/settings/gst"
payload := strings.NewReader("{\n \"gstin\": \"<string>\",\n \"state_code\": \"<string>\",\n \"state_name\": \"<string>\",\n \"sac_code\": \"998314\",\n \"gst_rate\": 18,\n \"pan\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"trade_name\": \"<string>\",\n \"address\": \"<string>\",\n \"has_lut\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://billing.example.com/v1/settings/gst")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"gstin\": \"<string>\",\n \"state_code\": \"<string>\",\n \"state_name\": \"<string>\",\n \"sac_code\": \"998314\",\n \"gst_rate\": 18,\n \"pan\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"trade_name\": \"<string>\",\n \"address\": \"<string>\",\n \"has_lut\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/settings/gst")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"gstin\": \"<string>\",\n \"state_code\": \"<string>\",\n \"state_name\": \"<string>\",\n \"sac_code\": \"998314\",\n \"gst_rate\": 18,\n \"pan\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"trade_name\": \"<string>\",\n \"address\": \"<string>\",\n \"has_lut\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"gstin": "<string>",
"state_code": "<string>",
"state_name": "<string>",
"sac_code": "998314",
"gst_rate": 18,
"pan": "<string>",
"legal_name": "<string>",
"trade_name": "<string>",
"address": "<string>",
"has_lut": true
},
"message": "<string>"
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}