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
IMS
ITC03
ITC04
CMP
Get CMPGET
Save CMPPOST
File CMP dataPOST
File CMP dataPOST
Get validate turnover for CMPGET
Payment
Ledger
e-Invoice
Notices
GST APICMPSave CMP

Save CMP

POSThttps://apisandbox.whitebooks.in/cmp/savecmp

API call to save CMP details

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
GSTIN number
Example: "12AVVVH1234HA1X"
ret_periodstringoptional
return period
Example: "032019"
isnilstringoptional
Isnil action
Example: "Y"
table3objectoptional
out_supobjectoptional
txvalnumberoptional
Taxable Value
Example: 10000
camtnumberoptional
Cgst Amount
Example: 500
samtnumberoptional
Taxable Amount
Example: 900
in_supobjectoptional
txvalnumberoptional
Taxable Value
Example: 10000
iamtnumberoptional
Igst Amount
Example: 0
camtnumberoptional
Cgst Amount
Example: 500
samtnumberoptional
Taxable Amount
Example: 900
csamtnumberoptional
Taxable Amount
Example: 500
intr_payobjectoptional
iamtnumberoptional
Igst Amount
Example: 0
camtnumberoptional
Cgst Amount
Example: 500
samtnumberoptional
Taxable Amount
Example: 900
csamtnumberoptional
Taxable Amount
Example: 500

Response

Not Found. If requested entity is not found or if requested API is not found.
POST/cmp/savecmp
1const response = await fetch('https://apisandbox.whitebooks.in/cmp/savecmp?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 "gstin": "12AVVVH1234HA1X",
16 "ret_period": "032019",
17 "isnil": "Y",
18 "table3": {
19 "out_sup": {
20 "txval": 10000,
21 "camt": 500,
22 "samt": 900
23 },
24 "in_sup": {
25 "txval": 10000,
26 "iamt": 0,
27 "camt": 500,
28 "samt": 900,
29 "csamt": 500
30 },
31 "intr_pay": {
32 "iamt": 0,
33 "camt": 500,
34 "samt": 900,
35 "csamt": 500
36 }
37 }
38}),
39});
40
41const data = await response.json();
42console.log(data);
No example available.