Skip to main content
File a monthly, non-nil GSTR-3B through the API. Save the return figures, pay the liability, then file with an Electronic Verification Code, or EVC, sent to the authorized signatory. For a nil return, use File nil GSTR-3B.

Before you start

  • Reconcile the return figures with GSTR-1 and GSTR-2B. File GSTR-1 for this period and any outstanding earlier GSTR-3B returns. If GSTR-1 is not filed for the period, GSTN returns RT-R3BQ1004.
  • Create a taxpayer session. The taxpayer must enable API access in the GST Portal. Keep the session valid throughout payment and filing.
  • Confirm that the taxpayer can file through EVC. Have the authorized signatory’s PAN ready and arrange for them to share the filing OTP.
Every call below uses the taxpayer access token in authorization and your Sandbox API key in x-api-key. Endpoint paths are relative to https://api.sandbox.co.in/gst/compliance/tax-payer. Use the same GSTIN and return period throughout. Pass {year}/{month} in the path and MMYYYY in the body’s ret_period.
If you are resuming work on a return, call Get GSTR-3B Details to review the figures and payment information already recorded. Check Track returns for its filing status before saving or paying again.
Read the existing return
A filed return needs no further filing action. If payment is already complete, continue with the filing steps rather than sending Offset again.

File the return

1

Save the return figures

Send the taxpayer’s reviewed figures to Save GSTR-3B. Include gstin, ret_period and the applicable return sections from the request schema.Save records the input tax credit, or ITC, claimed for this period. For example, a net IGST credit claim of ₹200 after reversals goes in itc_elg.itc_net.iamt. Include the supporting credit and reversal details in the return.
gstr-3b.json contains your complete Save body. Save is asynchronous. Keep data.data.reference_id to check processing in the next step.
2

Wait for Save to finish

Call GST return status with the reference returned by Save.
Check Save processing
Check that data.status_cd is "1", then read the processing status in data.data.status_cd.
  • REC: Wait, then check the same reference again.
  • P: GSTN has processed the return. Continue to payment review.
  • PE or ER: Read data.data.error_report, correct the figures and save again.
Increase the interval between checks if processing continues. Keep the same reference and avoid submitting another Save while the first is processing. Review any unrecognized status before continuing.
3

Review the payment

Work out the credit and cash amounts before you pay. Use the processed return for the amount due and the ledgers for the balances available.

Read the amount payable

After Save reaches P, call Get GSTR-3B Details again. Read data.data.tx_pmt.net_tax_pay for the net amounts payable under each tax head and component.
Read the processed return

Check the credit and cash balances

Call Get cash and ITC balance for the same period.
Read the ledger balances
  • data.data.itc_bal: Review the credit balance alongside any blocked credit in data.data.itc_blck_bal.
  • data.data.cash_bal: Check cash by tax head and component, such as cash_bal.igst.tx for IGST tax.
Allocate eligible ITC according to the GST Portal’s credit-use rules, then work out the cash needed for each tax head and component. ITC cannot pay reverse-charge tax, interest or late fees.
Use Auto-calculated liability to inspect GSTN’s figures. Call Validate with your return figures to compare them with GSTN’s calculation.
Compare the return figures
Review differences before approving payment. Validate can return data.data.isValid = "N" even when the request succeeds.

Deposit any cash shortfall

Compare the planned cash payment with the cash already available under each head and component. If a balance is short, ask the taxpayer to deposit the difference through a challan on the GST Portal.For example, if IGST tax needs ₹800 in cash and cash_bal.igst.tx holds ₹300, the taxpayer deposits ₹500.After a deposit, fetch the balances again and wait for it to appear. If the existing cash balance covers the payment, continue without a deposit.Get the taxpayer’s approval for the credit and cash amounts before sending Offset.
4

Pay the liability with Offset

Send the approved payment split to Offset liability. Build the body from the complete request schema. Use pditc for credit used, pdcash for cash paid and nettaxpay for the amounts payable.For the return’s first Offset, set liab_ldg_id to 0 in each pdcash and nettaxpay entry. If you send pditc, set its liab_ldg_id to 0 as well.For example, ₹1,800 ordinary IGST tax can be paid with ₹1,000 eligible IGST credit and ₹800 cash. The fields for that split are:
  • IGST payable: ₹1,800 in nettaxpay[].igst.tx.
  • IGST paid with IGST credit: ₹1,000 in pditc.i_pdi.
  • IGST paid with cash: ₹800 in pdcash[].ipd.
These fields illustrate the allocation. Include the remaining fields from the Offset schema in your request.Use trans_typ = 30002 for tax other than reverse charge and 30003 for reverse-charge tax. Put each amount in its matching category row. Credit and cash must cover the full liability exactly.Details uses net_tax_pay and tran_desc. Offset uses nettaxpay and trans_desc, so use those names in the payment request.
A successful Offset locks the return figures. Send the full payment once.
Pay the approved liability
A data.status_cd of "1" confirms payment. Offset returns the payment result in the response.If GSTN returns RT-3BAS1070, recheck the payable amounts and payment split. GSTN rejects partial or excess payment.
5

Fetch the return to file

After payment, ask the taxpayer to check “Tax Liability Breakup, As Applicable” on this return’s payment page in the GST Portal. If it contains auto-populated values, they must save them before filing. The GSTR-3B filing manual shows the screen.Call Get GSTR-3B Details again after payment and any breakup update. Copy its data.data object, including the payment information. Convert the payment descriptions to the format File expects.
Select the File body
6

Generate the EVC OTP

Call Generate EVC OTP with gstr=gstr-3b and the authorized signatory’s PAN. Ask the signatory for the OTP they receive. This filing OTP is separate from the OTP used to create the taxpayer session.
Request the filing OTP
7

File with EVC

Send fileBody to File GSTR-3B. Use the same PAN as the EVC OTP request and the OTP supplied by the signatory.
File with EVC
Check that data.status_cd is "1", even when HTTP status is 200. Store data.data.ack_num, then confirm the filing with Track returns.
8

Confirm the filing

Call Track returns with return_type=gstr-3b.
Check the filing record
Check that data.status_cd is "1". In data.data.EFiledlist, find the entry for the selected period in ret_prd and GSTR-3B return type in rtntype. The matching entry must have status = "Filed".Keep its arn separately from File’s ack_num. If the matching record is absent or File’s response is missing, check Track again. Do not repeat File while its result is unclear.