GST APIEnvironment:
Default OTP575757
API Reference
Overview
Public
Authentication
GSTR
GSTR1
GSTR1A
GSTR2A
GSTR2B
GSTR2X
GSTR3B
GSTR4
GSTR4A
GSTR4Annual
GSTR5
GSTR6
Get B2B InvoicesGET
GSTR6 Calculate R6POST
Save GSTR6 Cross ITC detailsPOST
Offset Liability GSTR6 Late feePUT
Save GSTR6 dataPUT
Get CDNR InvoicesGET
Get ISD DetailsGET
Get GSTR6 SummaryGET
Submit GSTR6 dataPOST
File GSTR6 dataPOST
File GSTR6 dataPOST
Get Late FeeGET
Get ITC DetailsGET
Get B2BA InvoicesGET
Get CDNRA InvoicesGET
Get Amendment ISD DetailsGET
GSTR6A
GSTR7
GSTR8
GSTR9
GSTR9A
GSTR9C
SPIKE
ALL
IMS
ITC03
ITC04
CMP
Payment
Ledger
e-Invoice
Notices
GST APIGSTR6Save GSTR6 data

Save GSTR6 data

PUThttps://apisandbox.whitebooks.in/gstr6/retsave

Used to save entire GSTR6 invoices.

Parameters

query parameters
emailstringrequired
User Email
header parameters
gstinstringrequired
GST Number
ret_periodstringrequired
Return Period (MMYYYY)
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
Supplier GSTIN
Example: "27AHQPA7588L1ZJ"
fpstringoptional
Financial Period
Example: "022024"
gtnumberoptional
Gross Turnover of the taxpayer in the previous FY
b2barray<object>optional
Array items:
ctinstringoptional
GSTIN/UID of the Receiver taxpayer/UN,Govt Bodies
Example: "01AABCE2207R1Z5"
invarray<object>optional
Array items:
flagstringoptional
Taxpayer action
Example: "R"
inumstringoptional
Supplier Invoice Number
Example: "S008400"
idtstringoptional
Supplier Invoice Date
Example: "24-01-2024"
valnumberoptional
Supplier Invoice Value
Example: 729248.16
posstringoptional
Maintained in GST System common database POS as provided in law / actual provision of service.
Example: "06"
chksumstringoptional
checksum value
Example: "AflJufPlFStqKBZ"
itmsarray<object>optional
b2baarray<object>optional
Array items:
ctinstringoptional
GSTIN/UID of the Receiver taxpayer/UN,Govt Bodies
Example: "01AABCE2207R1Z5"
invarray<object>optional
Array items:
flagstringoptional
Taxpayer action
Example: "R"
inumstringoptional
Supplier Invoice Number
Example: "S008400"
idtstringoptional
Supplier Invoice Date
Example: "24-01-2024"
valnumberoptional
Supplier Invoice Value
Example: 729248.16
posstringoptional
Maintained in GST System common database POS as provided in law / actual provision of service.
Example: "06"
chksumstringoptional
checksum value
Example: "AflJufPlFStqKBZ"
oinumstringoptional
Original invoice number
Example: "S008400"
oidtstringoptional
Original invoice date
Example: "24-01-2024"
itmsarray<object>optional
isdobjectoptional
inelglstarray<object>optional
Array items:
doclstarray<object>optional
cptystringoptional
Counter Party
Example: "05BJKPK5619P1ZN"
typstringoptional
Document Type
Example: "R"
statecdstringoptional
State Code
Example: "05"
elglstarray<object>optional
Array items:
doclstarray<object>optional
cptystringoptional
Counter Party
Example: "05BJKPK5619P1ZN"
typstringoptional
Document Type
Example: "R"
statecdstringoptional
State Code
Example: "05"
isdaobjectoptional
inelglstarray<object>optional
Array items:
doclstarray<object>optional
cptystringoptional
Counter Party
Example: "05BJKPK5619P1ZN"
typstringoptional
Document Type
Example: "R"
statecdstringoptional
State Code
Example: "05"
rcptystringoptional
revised Counter Party
Example: "05BJKPK5619P1ZN"
rstatecdstringoptional
revised State Code
Example: "05"
elglstarray<object>optional
Array items:
doclstarray<object>optional
cptystringoptional
Counter Party
Example: "05BJKPK5619P1ZN"
typstringoptional
Document Type
Example: "R"
statecdstringoptional
State Code
Example: "05"
rcptystringoptional
revised Counter Party
Example: "05BJKPK5619P1ZN"
rstatecdstringoptional
revised State Code
Example: "05"
cdnarray<object>optional
Array items:
ctinstringoptional
GSTIN/UID of the Receiver taxpayer/UN,Govt Bodies
Example: "01AABCE2207R1Z5"
ntarray<object>optional
Array items:
nt_dtstringoptional
Credit/debit note date
Example: "16-03-2024"
nt_numstringoptional
Credit/debit note number
Example: "cdn001"
nttystringoptional
Credit/debit note type
Example: "C"
valnumberoptional
Supplier Invoice Value
Example: 729248.16
posstringoptional
Maintained in GST System common database POS as provided in law / actual provision of service.
Example: "06"
itmsarray<object>optional
cdnaarray<object>optional
Array items:
ntarray<object>optional
Array items:
ont_dtstringoptional
Original Credit/debit note date
Example: "16-03-2024"
ont_numstringoptional
Original Credit/debit note number
Example: "cdn001"
chksumstringoptional
Checksum Value
Example: "e019706b5c029430c81cc4f620c72adf0fc43ceb1805099abe0f1a41a79cfbc5"
nt_dtstringoptional
Credit/debit note date
Example: "16-03-2024"
nt_numstringoptional
Credit/debit note number
Example: "cdn001"
nttystringoptional
Credit/debit note type
Example: "C"
valnumberoptional
Supplier Invoice Value
Example: 729248.16
posstringoptional
Maintained in GST System common database POS as provided in law / actual provision of service.
Example: "06"
itmsarray<object>optional
ctinstringoptional
GSTIN/UID of the Receiver taxpayer/UN,Govt Bodies
Example: "01AABCE2207R1Z5"

Response

Not Found. If requested entity is not found or if requested API is not found.
PUT/gstr6/retsave
1const response = await fetch('https://apisandbox.whitebooks.in/gstr6/retsave?email=value', {
2 method: 'PUT',
3 headers: {
4 gstin: "value",
5 ret_period: "value",
6 gst_username: "value",
7 state_cd: "value",
8 ip_address: "value",
9 txn: "value",
10 client_id: "value",
11 client_secret: "value",
12 Content-Type: "application/json"
13},
14 body: JSON.stringify({
15 "gstin": "27AHQPA7588L1ZJ",
16 "fp": "022024",
17 "gt": 0,
18 "b2b": [
19 {
20 "ctin": "01AABCE2207R1Z5",
21 "inv": [
22 {
23 "flag": "R",
24 "inum": "S008400",
25 "idt": "24-01-2024",
26 "val": 729248.16,
27 "pos": "06",
28 "chksum": "AflJufPlFStqKBZ",
29 "itms": [
30 "..."
31 ]
32 }
33 ]
34 }
35 ],
36 "b2ba": [
37 {
38 "ctin": "01AABCE2207R1Z5",
39 "inv": [
40 {
41 "flag": "R",
42 "inum": "S008400",
43 "idt": "24-01-2024",
44 "val": 729248.16,
45 "pos": "06",
46 "chksum": "AflJufPlFStqKBZ",
47 "oinum": "S008400",
48 "oidt": "24-01-2024",
49 "itms": [
50 "..."
51 ]
52 }
53 ]
54 }
55 ],
56 "isd": {
57 "inelglst": [
58 {
59 "doclst": [
60 {
61 "chksum": "...",
62 "isd_docty": "...",
63 "docnum": "...",
64 "docdt": "...",
65 "iamti": "...",
66 "iamts": "...",
67 "iamtc": "...",
68 "samts": "...",
69 "samti": "...",
70 "camti": "...",
71 "camtc": "...",
72 "csamt": "..."
73 }
74 ],
75 "cpty": "05BJKPK5619P1ZN",
76 "typ": "R",
77 "statecd": "05"
78 }
79 ],
80 "elglst": [
81 {
82 "doclst": [
83 {
84 "chksum": "...",
85 "isd_docty": "...",
86 "docnum": "...",
87 "docdt": "...",
88 "iamti": "...",
89 "iamts": "...",
90 "iamtc": "...",
91 "samts": "...",
92 "samti": "...",
93 "camti": "...",
94 "camtc": "...",
95 "csamt": "..."
96 }
97 ],
98 "cpty": "05BJKPK5619P1ZN",
99 "typ": "R",
100 "statecd": "05"
101 }
102 ]
103 },
104 "isda": {
105 "inelglst": [
106 {
107 "doclst": [
108 {
109 "cpty": "...",
110 "rcrddt": "...",
111 "chksum": "...",
112 "isd_docty": "...",
113 "docnum": "...",
114 "docdt": "...",
115 "rdocnum": "...",
116 "rdocdt": "...",
117 "odocnum": "...",
118 "odocdt": "...",
119 "iamti": "...",
120 "iamts": "...",
121 "iamtc": "...",
122 "samts": "...",
123 "samti": "...",
124 "camti": "...",
125 "camtc": "...",
126 "csamt": "..."
127 }
128 ],
129 "cpty": "05BJKPK5619P1ZN",
130 "typ": "R",
131 "statecd": "05",
132 "rcpty": "05BJKPK5619P1ZN",
133 "rstatecd": "05"
134 }
135 ],
136 "elglst": [
137 {
138 "doclst": [
139 {
140 "cpty": "...",
141 "rcrddt": "...",
142 "chksum": "...",
143 "isd_docty": "...",
144 "docnum": "...",
145 "docdt": "...",
146 "rdocnum": "...",
147 "rdocdt": "...",
148 "odocnum": "...",
149 "odocdt": "...",
150 "iamti": "...",
151 "iamts": "...",
152 "iamtc": "...",
153 "samts": "...",
154 "samti": "...",
155 "camti": "...",
156 "camtc": "...",
157 "csamt": "..."
158 }
159 ],
160 "cpty": "05BJKPK5619P1ZN",
161 "typ": "R",
162 "statecd": "05",
163 "rcpty": "05BJKPK5619P1ZN",
164 "rstatecd": "05"
165 }
166 ]
167 },
168 "cdn": [
169 {
170 "ctin": "01AABCE2207R1Z5",
171 "nt": [
172 {
173 "nt_dt": "16-03-2024",
174 "nt_num": "cdn001",
175 "ntty": "C",
176 "val": 729248.16,
177 "pos": "06",
178 "itms": [
179 "..."
180 ]
181 }
182 ]
183 }
184 ],
185 "cdna": [
186 {
187 "nt": [
188 {
189 "ont_dt": "16-03-2024",
190 "ont_num": "cdn001",
191 "chksum": "e019706b5c029430c81cc4f620c72adf0fc43ceb1805099abe0f1a41a79cfbc5",
192 "nt_dt": "16-03-2024",
193 "nt_num": "cdn001",
194 "ntty": "C",
195 "val": 729248.16,
196 "pos": "06",
197 "itms": [
198 "..."
199 ]
200 }
201 ],
202 "ctin": "01AABCE2207R1Z5"
203 }
204 ]
205}),
206});
207
208const data = await response.json();
209console.log(data);
No example available.