1const response = await fetch('https://apisandbox.whitebooks.in/gstr9c/retfile?email=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 "gstr9cdata": {
16 "audited_data": {
17 "gstin": "12AVVVH1234HA1X",
18 "fp": "032019",
19 "lgl_name": "Inf PVt LIMITED",
20 "trd_name": "Infrastucture Facility",
21 "act_name": "Trade Unions Act, 1926 ",
22 "table5": {
23 "turnovr": 9999999999999.99,
24 "unbil_rev_beg": 9999999999999.99,
25 "unadj_adv_end": 9999999999999.99,
26 "dmd_sup": 9999999999999.99,
27 "crd_nts_issued": 9999999999999.99,
28 "trd_dis": 9999999999999.99,
29 "turnovr_apr_jun": -9999999999999.99,
30 "unbil_rev_end": 9999999999999.99,
31 "unadj_adv_beg": 9999999999999.99,
32 "crd_note_acc": 9999999999999.99,
33 "adj_dta": 9999999999999.99,
34 "turnovr_comp": 9999999999999.99,
35 "adj_turn_sec": -9999999999999.99,
36 "adj_turn_fef": -9999999999999.99,
37 "adj_turn_othrsn": -9999999999999.99,
38 "annul_turn_adj": -1000000000000000,
39 "annul_turn_decl": -1000000000000000,
40 "unrec_turnovr": -1000000000000000
41 },
42 "table6": {
43 "rsn": [
44 {
45 "number": "...",
46 "desc": "..."
47 }
48 ]
49 },
50 "table7": {
51 "annul_turn_adj": -1000000000000000,
52 "othr_turnovr": -9999999999999.99,
53 "zero_sup": -9999999999999.99,
54 "rev_sup": -9999999999999.99,
55 "tax_turn_annul": -1000000000000000,
56 "tax_turn_adj": -1000000000000000,
57 "unrec_tax_turn": -1000000000000000
58 },
59 "table8": {
60 "rsn": [
61 {
62 "number": "...",
63 "desc": "..."
64 }
65 ]
66 },
67 "table9": {
68 "rate": [
69 {
70 "desc": "...",
71 "tax_val": "...",
72 "cgst": "...",
73 "sgst": "...",
74 "igst": "...",
75 "cess": "..."
76 }
77 ],
78 "inter": {
79 "cgst": 9999999999999.99,
80 "sgst": 9999999999999.99,
81 "igst": 9999999999999.99,
82 "cess": 9999999999999.99
83 },
84 "late_fee": {
85 "cgst": 9999999999999.99,
86 "sgst": 9999999999999.99,
87 "igst": 9999999999999.99,
88 "cess": 9999999999999.99
89 },
90 "pen": {
91 "cgst": 9999999999999.99,
92 "sgst": 9999999999999.99,
93 "igst": 9999999999999.99,
94 "cess": 9999999999999.99
95 },
96 "oth": {
97 "cgst": 9999999999999.99,
98 "sgst": 9999999999999.99,
99 "igst": 9999999999999.99,
100 "cess": 9999999999999.99
101 },
102 "tot_amt_payable": {
103 "cgst": 9999999999999.99,
104 "sgst": 9999999999999.99,
105 "igst": 9999999999999.99,
106 "cess": 9999999999999.99
107 },
108 "tot_amt_paid": {
109 "cgst": 9999999999999.99,
110 "sgst": 9999999999999.99,
111 "igst": 9999999999999.99,
112 "cess": 9999999999999.99
113 },
114 "unrec_amt": {
115 "cgst": 9999999999999.99,
116 "sgst": 9999999999999.99,
117 "igst": 9999999999999.99,
118 "cess": 9999999999999.99
119 }
120 },
121 "table10": {
122 "rsn": [
123 {
124 "number": "...",
125 "desc": "..."
126 }
127 ]
128 },
129 "table11": {
130 "rate": [
131 {
132 "desc": "...",
133 "tax_val": "...",
134 "cgst": "...",
135 "sgst": "...",
136 "igst": "...",
137 "cess": "..."
138 }
139 ],
140 "inter": {
141 "cgst": 9999999999999.99,
142 "sgst": 9999999999999.99,
143 "igst": 9999999999999.99,
144 "cess": 9999999999999.99
145 },
146 "late_fee": {
147 "cgst": 9999999999999.99,
148 "sgst": 9999999999999.99,
149 "igst": 9999999999999.99,
150 "cess": 9999999999999.99
151 },
152 "pen": {
153 "cgst": 9999999999999.99,
154 "sgst": 9999999999999.99,
155 "igst": 9999999999999.99,
156 "cess": 9999999999999.99
157 },
158 "oth": {
159 "cgst": 9999999999999.99,
160 "sgst": 9999999999999.99,
161 "igst": 9999999999999.99,
162 "cess": 9999999999999.99
163 }
164 },
165 "table12": {
166 "itc_avail": 9999999999999.99,
167 "itc_book_earl": 9999999999999.99,
168 "itc_book_curr": 9999999999999.99,
169 "itc_avail_audited": 1000000000000000,
170 "itc_claim": -1000000000000000,
171 "unrec_itc": -1000000000000000
172 },
173 "table13": {
174 "rsn": [
175 {
176 "number": "...",
177 "desc": "..."
178 }
179 ]
180 },
181 "table14": {
182 "items": [
183 {
184 "desc": "...",
185 "val": "...",
186 "itc_amt": "...",
187 "itc_avail": "..."
188 }
189 ],
190 "tot_elig_itc": {
191 "itc_avail": 1000000000000000
192 },
193 "itc_claim": {
194 "itc_avail": 1000000000000000
195 },
196 "unrec_itc": {
197 "itc_avail": 1000000000000000
198 }
199 },
200 "table15": {
201 "rsn": [
202 {
203 "number": "...",
204 "desc": "..."
205 }
206 ]
207 },
208 "table16": {
209 "cgst": 9999999999999.99,
210 "sgst": 9999999999999.99,
211 "igst": 9999999999999.99,
212 "cess": 9999999999999.99,
213 "inter": 9999999999999.99,
214 "pen": 9999999999999.99
215 },
216 "add_liab": {
217 "tax_pay": [
218 {
219 "desc": "...",
220 "val": "...",
221 "igst": "...",
222 "cgst": "...",
223 "sgst": "...",
224 "cess": "..."
225 }
226 ]
227 }
228 }
229 },
230 "dcupdtls": {
231 "balance_sheet": [
232 {
233 "doc_nam": "string",
234 "doc_id": "string"
235 }
236 ],
237 "profitloss": [
238 {
239 "doc_nam": "string",
240 "doc_id": "string"
241 }
242 ],
243 "otherdoc1": [
244 {
245 "doc_nam": "string",
246 "doc_id": "string"
247 }
248 ],
249 "otherdoc2": [
250 {
251 "doc_nam": "string",
252 "doc_id": "string"
253 }
254 ]
255 }
256}),
257});
258
259const data = await response.json();
260console.log(data);