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
Payment
Generate ChallanPOST
Get Challan HistoryGET
Get Challan SummaryGET
Validate Challan ReasonPOST
Ledger
e-Invoice
Notices
GST APIPaymentGenerate Challan

Generate Challan

POSThttps://apisandbox.whitebooks.in/payment/generateChallan

Generate Challan.

Parameters

query parameters
emailstringrequired
API Developer 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: "27AHQPA7588L1ZJ"
email_idstringoptional
email
Example: "abc@gmail.com"
mobile_numstringoptional
Mobile Number
Example: "9889898999"
tp_namestringoptional
Tax payer name
Example: "NEELAM NAIDU"
addressstringoptional
Address
Example: "1234,KamalaNagar,Delhi"
payment_modstringoptional
Payment mode
Example: "OTC"
bank_cdstringoptional
Bank Code
Example: "ICIC"
sub_pay_modstringoptional
Sub Payment mode
Example: "CQ"
ipAddrstringoptional
Ip address
Example: "12.8.91.80"
cgst_tax_amtnumberoptional
Cgst tax amount
Example: 42848
cgst_int_amtnumberoptional
Cgst interest amount
Example: 0
cgst_fee_amtnumberoptional
Cgst fee amount
Example: 0
cgst_oth_amtnumberoptional
Cgst other amount
Example: 0
cgst_pen_amtnumberoptional
Cgst penalty amount
Example: 0
igst_tax_amtnumberoptional
Igst tax amount
Example: 43202
igst_int_amtnumberoptional
Igst interest amount
Example: 0
igst_fee_amtnumberoptional
Igst fee amount
Example: 0
igst_oth_amtnumberoptional
Igst other amount
Example: 0
igst_pen_amtnumberoptional
Igst penalty amount
Example: 0
sgst_tax_amtnumberoptional
Sgst tax amount
Example: 42848
sgst_int_amtnumberoptional
Sgst interest amount
Example: 0
sgst_fee_amtnumberoptional
Sgst fee amount
Example: 0
sgst_oth_amtnumberoptional
Sgst other amount
Example: 0
sgst_pen_amtnumberoptional
Sgst penalty amount
Example: 0
cess_tax_amtnumberoptional
Cess tax amount
Example: 46738
cess_int_amtnumberoptional
Cess interest amount
Example: 0
cess_fee_amtnumberoptional
Cess fee amount
Example: 0
cess_oth_amtnumberoptional
Cess other amount
Example: 0
cess_pen_amtnumberoptional
Cess penalty amount
Example: 0
cgst_tot_amtnumberoptional
Cgst Total amount
Example: 42848
igst_tot_amtnumberoptional
Igst Total amount
Example: 43202
sgst_tot_amtnumberoptional
Sgst Total amount
Example: 42848
cess_tot_amtnumberoptional
Cess Total amount
Example: 46738
total_amtnumberoptional
Total amount
Example: 175636
chln_rsnstringoptional
Challan reason
Example: "QRMP35"
chln_prdstringoptional
Challan reason period
Example: "112020"

Response

Not Found. If requested entity is not found or if requested API is not found.
POST/payment/generateChallan
1const response = await fetch('https://apisandbox.whitebooks.in/payment/generateChallan?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": "27AHQPA7588L1ZJ",
16 "email_id": "abc@gmail.com",
17 "mobile_num": "9889898999",
18 "tp_name": "NEELAM NAIDU",
19 "address": "1234,KamalaNagar,Delhi",
20 "payment_mod": "OTC",
21 "bank_cd": "ICIC",
22 "sub_pay_mod": "CQ",
23 "ipAddr": "12.8.91.80",
24 "cgst_tax_amt": 42848,
25 "cgst_int_amt": 0,
26 "cgst_fee_amt": 0,
27 "cgst_oth_amt": 0,
28 "cgst_pen_amt": 0,
29 "igst_tax_amt": 43202,
30 "igst_int_amt": 0,
31 "igst_fee_amt": 0,
32 "igst_oth_amt": 0,
33 "igst_pen_amt": 0,
34 "sgst_tax_amt": 42848,
35 "sgst_int_amt": 0,
36 "sgst_fee_amt": 0,
37 "sgst_oth_amt": 0,
38 "sgst_pen_amt": 0,
39 "cess_tax_amt": 46738,
40 "cess_int_amt": 0,
41 "cess_fee_amt": 0,
42 "cess_oth_amt": 0,
43 "cess_pen_amt": 0,
44 "cgst_tot_amt": 42848,
45 "igst_tot_amt": 43202,
46 "sgst_tot_amt": 42848,
47 "cess_tot_amt": 46738,
48 "total_amt": 175636,
49 "chln_rsn": "QRMP35",
50 "chln_prd": "112020"
51}),
52});
53
54const data = await response.json();
55console.log(data);
No example available.