GST APIEnvironment:
Default OTP575757
API Reference
Overview
Public
Authentication
GSTR
GSTR1
GSTR1A
GSTR2A
GSTR2B
GSTR2X
GSTR3B
GSTR4
GSTR4A
GSTR4Annual
GSTR5
GSTR6
GSTR6A
GSTR7
GSTR8
GSTR9
GSTR9A
GSTR9C
SPIKE
ALL
Save User MastersPOST
Get User MastersGET
Get File DetailsGET
Get Large File DetailsGET
Late FeeGET
Get additional late fee breakupGET
Document DownloadGET
Proceed To FileGET
New Proceed To File(GSTR1,GSTR5,GSTR6)GET
Document UploadPOST
Get Return StatusGET
Save PreferencePUT
Get PreferenceGET
IMS
ITC03
ITC04
CMP
Payment
Ledger
e-Invoice
Notices
GST APIALLSave Preference

Save Preference

PUThttps://apisandbox.whitebooks.in/all/savepref

Used to Save Preference

Parameters

query parameters
emailstringrequired
API Developer User Email
header parameters
gstinstringrequired
GST Number
gst_usernamestringrequired
GST UserName
state_cdstringrequired
State Code
ip_addressstringrequired
IP Address
txnstringrequired
Transaction
client_idstringrequired
Client ID
client_secretstringrequired
Client Secret

Request Body

application/jsonrequired
gstinstringoptional
GSTIN
Example: "02SUPHP0001A1ZI"
fystringoptional
Example: "2019-20"
quarterstringoptional
quarter value
Example: "Q1"
preferencestringoptional
Preference value
Example: "Q"

Response

Not Found. If requested entity is not found or if requested API is not found.
PUT/all/savepref
1const response = await fetch('https://apisandbox.whitebooks.in/all/savepref?email=value', {
2 method: 'PUT',
3 headers: {
4 gstin: "value",
5 gst_username: "value",
6 state_cd: "value",
7 ip_address: "value",
8 txn: "value",
9 client_id: "value",
10 client_secret: "value",
11 Content-Type: "application/json"
12},
13 body: JSON.stringify({
14 "gstin": "02SUPHP0001A1ZI",
15 "fy": "2019-20",
16 "quarter": "Q1",
17 "preference": "Q"
18}),
19});
20
21const data = await response.json();
22console.log(data);
No example available.