GST APIEnvironment:
Default OTP575757
API Reference
Overview
Public
Search TaxpayerGET
View and Track ReturnsGET
Get PreferenceGET
Unregistered Applicants APIGET
Unregistered Applicants ValidationGET
Authentication
GSTR
GSTR1
GSTR1A
GSTR2A
GSTR2B
GSTR2X
GSTR3B
GSTR4
GSTR4A
GSTR4Annual
GSTR5
GSTR6
GSTR6A
GSTR7
GSTR8
GSTR9
GSTR9A
GSTR9C
SPIKE
ALL
IMS
ITC03
ITC04
CMP
Payment
Ledger
e-Invoice
Notices
GST APIPublicGet Preference

Get Preference

GEThttps://apisandbox.whitebooks.in/public/pref

This API is called for get Preference

Parameters

query parameters
gstinstringrequired
GSTIN of the taxpayer
fystringrequired
Financial Year (YYYY-YY)
emailstringrequired
Email
header parameters
state_cdstringrequired
State Code
ip_addressstringrequired
IP Address
client_idstringrequired
Client ID
client_secretstringrequired
Client Secret

Response

Not Found. If requested entity is not found or if requested API is not found.
GET/public/pref
1const response = await fetch('https://apisandbox.whitebooks.in/public/pref?gstin=value&fy=value&email=value', {
2 method: 'GET',
3 headers: {
4 state_cd: "value",
5 ip_address: "value",
6 client_id: "value",
7 client_secret: "value"
8},
9});
10
11const data = await response.json();
12console.log(data);
No example available.