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