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 APIGSTR6File GSTR6 data

File GSTR6 data

POSThttps://apisandbox.whitebooks.in/gstr6/retfile

Used to File GSTR6 invoices.

Parameters

query parameters
emailstringrequired
API Developer User Email
panstringrequired
PAN Number
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"
ret_periodstringoptional
Return Period
Example: "022024"
chksumstringoptional
Checksum Value
Example: "e019706b5c029430c81cc4f620c72adf0fc43ceb1805099abe0f1a41a79cfbc5"
itcDetailsobjectoptional
ret_periodstringoptional
Return Period
Example: "022024"
gstinstringoptional
Supplier GSTIN
Example: "27AHQPA7588L1ZJ"
totalItcobjectoptional
iamtnumberoptional
IGST Amount as per invoice
Example: 325
camtnumberoptional
CGST Amount as per invoice
Example: 0
samtnumberoptional
SGST Amount as per invoice
Example: 0
csamtnumberoptional
Cess Amount as per invoice
Example: 500
inelgitcobjectoptional
iamtnumberoptional
IGST Amount as per invoice
Example: 325
camtnumberoptional
CGST Amount as per invoice
Example: 0
samtnumberoptional
SGST Amount as per invoice
Example: 0
csamtnumberoptional
Cess Amount as per invoice
Example: 500
elgitcobjectoptional
iamtnumberoptional
IGST Amount as per invoice
Example: 325
camtnumberoptional
CGST Amount as per invoice
Example: 0
samtnumberoptional
SGST Amount as per invoice
Example: 0
csamtnumberoptional
Cess Amount as per invoice
Example: 500
isdItcCrossobjectoptional
iamtinumberoptional
Integrated to Integrated tax Value
Example: 700
iamtsnumberoptional
Integrated to state tax value
Example: 0
iamtcnumberoptional
Integrated to Central tax value
Example: 0
samtsnumberoptional
State to state tax value
Example: 0
samtinumberoptional
State to Integrated tax value
Example: 0
camtinumberoptional
Central to Integrated tax value
Example: 700
camtcnumberoptional
Central to State tax value
Example: 0
cessnumberoptional
Cess Value
Example: 200
iamtnumberoptional
IGST Amount as per invoice
Example: 325
camtnumberoptional
CGST Amount as per invoice
Example: 0
samtnumberoptional
SGST Amount as per invoice
Example: 0
csamtnumberoptional
Cess Amount as per invoice
Example: 500
lateFeemainobjectoptional
latefeeobjectoptional
debitIdstringoptional
Cess Amount
Example: "DC0901200000004"
cLamtnumberoptional
Cess Amount
Example: 500
sLamtnumberoptional
Cess Amount
Example: 500
section_summaryarray<object>optional
Array items:
sec_nmstringoptional
Return Section
Example: "B2B"
chksumstringoptional
Invoice Check Sum value
Example: "e019706b5c029430c81cc4f620c72adf0fc43ceb1805099abe0f1a41a79cfbc5"
rcnumberoptional
Record Count
Example: 10
ttl_txpd_cessnumberoptional
Total Tax Paid CESS
Example: 10
ttl_txpd_cgstnumberoptional
Total Tax Paid CGST
Example: 124.99
ttl_txpd_igstnumberoptional
Total Tax Paid IGST
Example: 124.99
ttl_txpd_sgstnumberoptional
Total Tax Paid SGST
Example: 124.99
ttl_valnumberoptional
Total Invoice Value
Example: 12345
offsetobjectoptional
cLamtnumberoptional
CESS Late Fee Amount
Example: 5000
sLamtnumberoptional
CESS Late Fee Amount
Example: 5000

Response

Not Found. If requested entity is not found or if requested API is not found.
POST/gstr6/retfile
1const response = await fetch('https://apisandbox.whitebooks.in/gstr6/retfile?email=value&pan=value', {
2 method: 'POST',
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 "ret_period": "022024",
17 "chksum": "e019706b5c029430c81cc4f620c72adf0fc43ceb1805099abe0f1a41a79cfbc5",
18 "itcDetails": {
19 "ret_period": "022024",
20 "gstin": "27AHQPA7588L1ZJ",
21 "totalItc": {
22 "iamt": 325,
23 "camt": 0,
24 "samt": 0,
25 "csamt": 500
26 },
27 "inelgitc": {
28 "iamt": 325,
29 "camt": 0,
30 "samt": 0,
31 "csamt": 500
32 },
33 "elgitc": {
34 "iamt": 325,
35 "camt": 0,
36 "samt": 0,
37 "csamt": 500
38 },
39 "isdItcCross": {
40 "iamti": 700,
41 "iamts": 0,
42 "iamtc": 0,
43 "samts": 0,
44 "samti": 0,
45 "camti": 700,
46 "camtc": 0,
47 "cess": 200,
48 "iamt": 325,
49 "camt": 0,
50 "samt": 0,
51 "csamt": 500
52 }
53 },
54 "lateFeemain": {
55 "latefee": {
56 "debitId": "DC0901200000004",
57 "cLamt": 500,
58 "sLamt": 500
59 }
60 },
61 "section_summary": [
62 {
63 "sec_nm": "B2B",
64 "chksum": "e019706b5c029430c81cc4f620c72adf0fc43ceb1805099abe0f1a41a79cfbc5",
65 "rc": 10,
66 "ttl_txpd_cess": 10,
67 "ttl_txpd_cgst": 124.99,
68 "ttl_txpd_igst": 124.99,
69 "ttl_txpd_sgst": 124.99,
70 "ttl_val": 12345
71 }
72 ],
73 "offset": {
74 "cLamt": 5000,
75 "sLamt": 5000
76 }
77}),
78});
79
80const data = await response.json();
81console.log(data);
No example available.