GSTNexa

GSTR-3B: the summary return

integration guide

Where the tax is actually computed, offset and paid. GSTR-3B is pre-filled from your GSTR-1 and your GSTR-2B, but the final figures are yours — and once filed it cannot be revised.

All GST return guides

Overview

GSTR-3B is a summary return, due on the 20th for monthly filers, the 22nd or 24th for quarterly ones depending on the state. Two returns feed it: GSTR-1 gives the outward liability, GSTR-2B gives the credit you may claim. Your job in between is the reconciliation, and then the settlement — applying credit and cash until the payable is zero.

Offset is a separate call

Filing a 3B is two calls, not one. retoffset applies credit and cash against the liability; only then will a filing call succeed. A UI that hides this confuses everybody.

Auto-calculated is a suggestion

The portal pre-fills from GSTR-1 and 2B, and validateautocalculatedata tells you where you differ. You are allowed to differ — but your user should know they are doing it.

No revision, ever

A filed 3B stands. Corrections are carried into a later period, which is exactly why the 2B reconciliation is worth doing properly the first time.

The tables

TableWhat it carriesNotes
3.1 Outward supplies and reverse charge Taxable, zero-rated, nil and exempt supplies, plus what you owe under reverse charge.
3.1.1 Supplies through an e-commerce operator Split between what the operator pays and what you do.
3.2 Inter-state supplies to unregistered persons A break-up of part of 3.1, by place of supply.
4 Eligible ITC Credit available, credit reversed, and what is left. This is the table 2B drives.
5 Exempt, nil and non-GST inward supplies Informational; no tax effect.
5.1 Interest and late fee The portal computes interest; you can recompute it.
6.1 Payment of tax Where cash and credit are actually applied — the offset step.

API inventory

MethodPathPurpose
GET /gstr3b/autoliab Liability auto-calculated from your filed GSTR-1
POST /gstr3b/validateautocalculatedata Compares what you are about to save against those auto-calculated values
PUT /gstr3b/retsave Saves the return; returns a reference id
GET /gstr3b/retsum Summary of what is saved, with the chksum
GET /gstr3b/syscalcintrst Interest the portal has computed
POST /gstr3b/cmpint Ask the portal to recompute the interest
PUT /gstr3b/liabilitybreakup Break up a past-period liability being declared now
GET /gstr3b/openingbal Opening balance for ITC reversal and re-claim
GET /gstr3b/closingbal Closing balance of the reversal ledger
GET /gstr3b/rcmopeningbal Reverse-charge opening balance
GET /gstr3b/rcmclosingbal Reverse-charge closing balance
POST /gstr3b/savercmopnbal Declare the reverse-charge opening balance, once
PUT /gstr3b/retoffset Offset the liability against cash and credit — the step before filing
POST /gstr3b/retfile File with DSC
POST /gstr3b/retevcfile File with EVC

Before any call

No return API works without a live taxpayer session. Every flow on this site starts the same way, and the session is shared across returns — authenticate once per taxpayer, not once per return.

  1. 1 The taxpayer enables API access On the GST portal: My Profile → Manage API Access, choosing a session duration.
  2. 2 Request the OTP GET /authentication/otprequest?email= with headers gst_username, state_cd, ip_address, client_id, client_secret.
  3. 3 Exchange it for a token GET /authentication/authtoken?email=&otp= with the same headers plus txn. The sandbox OTP is 575757.
  4. 4 Keep it alive GET /authentication/refreshtoken before expiry. If the refresh fails, request a new OTP. Never retry a filing call on an expired session.
  5. 5 Pre-check Use GET /gstr/rettrack to confirm GSTR-1 for the period is filed before you start.

The one that catches everyone: GET calls carry the period in the query string as retperiod, while PUT and POST carry it as a header named ret_period.

Filing lifecycle

The same save-and-poll loop as every other return, with one extra step that only 3B has: the offset.

GSTR-3B, start to ARN 10 steps
  1. 1 Open a session authentication/authtoken
  2. 2 Check GSTR-1 is filed GET /gstr/rettrack The auto-calculated liability comes from it.
  3. 3 Pull the auto liability GET /gstr3b/autoliab From GSTR-1; table 4 you build from 2B.
  4. 4 Build the tables 3.1, 3.2, 4, 5 and 5.1 from your books and the 2B reconciliation.
  5. 5 Validate against auto POST /gstr3b/validateautocalculatedata Differences are allowed but must be deliberate.
  6. 6 Save PUT /gstr3b/retsave Returns a reference id.
  7. 7 Poll the save GET /gstr/retstatus PE or ER sends you back to step 4.
  8. 8 Read the summary GET /gstr3b/retsum Totals, interest and late fee; store the chksum.
  9. 9 Offset the liability PUT /gstr3b/retoffset Apply credit and cash. Nothing files until this is done.
  10. 10 File with DSC POST /gstr3b/retfile
  11. 10 or file with EVC POST /gstr3b/retevcfile
  12. ✓ ARN The period is settled. Store the ARN.

The offset at step 9 is not optional and not part of filing — it is its own call, and the filing call fails without it.

Interest and balances

Four sets of figures carry across periods, and getting them wrong is the most common source of a 3B that will not reconcile a year later.

System-calculated interest

Read it with syscalcintrst. If the taxpayer disputes it, cmpint asks the portal to recompute rather than letting the user simply type over it.

Past liability break-up

liabilitybreakup declares which earlier period a liability belongs to. Without it, interest is computed as though the whole amount arose now.

ITC reversal balance

openingbal and closingbal track credit reversed and later re-claimed. Store both each period — the closing of one is the opening of the next.

Reverse-charge opening balance

rcmopeningbal, rcmclosingbal and the one-time savercmopnbal. Declare it once; guard against a re-send.

Save status and errors

A save never returns a result — it returns a reference id. Poll GET /gstr/retstatus?gstin=&returnperiod=&refid= with that id until the portal reports one of these, and never call a filing endpoint while the latest save is not P.

CodeMeaningWhat your application does
REC Received, not processed yet Poll after a short delay
IP In progress Poll, backing off after a few tries
P Processed Move to the next step
PE Processed with errors Show error_report per section; fix and save again
ER Error, nothing saved Show error_cd and message; fix and save again

Session expired

Try one refresh. If that fails, ask for a new OTP. Never auto-retry a File call.

A File call that timed out

Do not send it again. Check return track first — if it already shows Filed, store the ARN from there.

Polling

Exponential back-off with a maximum number of attempts, in a queue job rather than the web request.

Concurrency

One txn per call, and a lock per GSTIN + period + form so two users cannot save or file at once.

Audit

Store request, response, txn, reference id and error_cd for every call. Support tickets always ask for the txn.

Developer checklist

The ticks are yours alone — nothing is saved or sent anywhere.

Stuck on one of these calls against a sandbox GSTIN? The agent knows these flows.

Ask the GST AI Agent All return guides

We use cookies to give you the best possible experience while you browse through our website. By pursuing the use of our website you implicitly agree to the usage of cookies on this site. Learn more

Your Cookie Preference

We use different types of cookies to optimize your experience on our website. Click on the categories that you want to allow. Visit our website to learn more about our Cookie Policy.

Essential

These cookies are necessary for the basic functionality of the website. Without these cookies, certain functions, like sign-in and your saved preferences, will not work.

Performance

These cookies are used to enhance your browsing experience and assist us with support tools, such as live chat.

Analytics

These cookies help us understand how our website is used, so we can improve it over time.