Everything needed to file a GST return from your own CRM or billing system: authenticate, push the outward supplies, reconcile the credit the portal computed, settle the liability and file. Each step below names the call to make.
Three calls repeat everywhere
Almost every return follows the same shape: retsave to push data, retsum to read back what the portal computed, retfile to sign and submit. Learn it once and GSTR-1, 3B, 9 and 9C all behave the same way.
Saving is asynchronous
A save returns a reference id, not a result. The portal processes in the background; poll the status with that id until it reports success, then read the summary. Treat a save as accepted, never as done.
Filing needs a signature
The final call is signed with EVC, an OTP to the authorised signatory, or a DSC. retfile and retevcfile are the two routes to the same outcome.
One guide per return, written for somebody implementing it: the calls in order, what to store, how the save status behaves and where the flow forks. Open any of them and there is a way back to this page from the top of the guide.
The monthly filing cycle
One tax period, start to finish. Every box names the call your application makes; the dates are the statutory deadlines for a monthly filer.
Every return call carries a session token for the taxpayer you are acting for. Request an OTP, exchange it for a token, then reuse that token until it expires. The gateway adds the provider credentials on top, so your application never holds them.
Session management
What each return is for, who files it, when it is due, and the operations published here.
This is the heaviest call in the cycle. Build the payload in sections (b2b, b2cl, b2cs, cdnr, exp, hsn) and save them together.
Read the GSTR-1 guideUse this instead of carrying the correction into the next period, so the liability lands in the right month.
Good for chasing a supplier mid-month. Do not compute ITC from it — that is what 2B is for.
Static is the point: it does not change after generation, so a reconciliation run twice gives the same answer.
Read the GSTR-2B guideAnything left pending is simply not in this period's 2B. Silence is a decision.
Auto-populated from GSTR-1 and 2B, but you own the final figures. Offset before filing; it cannot be revised afterwards.
Read the GSTR-3B guidePull the auto-calculated figures first, then reconcile against your own books before saving.
Read the GSTR-9 guideNeeds a generated hash and certificate before filing — see gencert and genhash.
Read the GSTR-9C guideReturns and statements for specific registrations, plus the ledger and payment calls the cycle leans on.
| Return | Who it is for | Operations |
|---|---|---|
| GSTR-4 / CMP-08 | Composition scheme: CMP-08 each quarter, GSTR-4 once a year. | 0 |
| GSTR-5 | Non-resident taxable persons. | 0 |
| GSTR-6 / 6A | Input Service Distributors passing credit to their units. | 0 |
| GSTR-7 | TDS deducted under GST, filed by the deductor. | 0 |
| GSTR-8 | TCS collected by e-commerce operators. | 0 |
| GSTR-9A | Annual return for composition taxpayers. | 0 |
| ITC-03 / ITC-04 | Credit reversal on scheme changes, and goods sent for job work. | 1 |
| Ledgers | Cash, credit and liability ledgers, plus utilisation. | 0 |
| Payments | Challan generation, history and summaries. | 1 |
| Notices | Notices and orders raised against the taxpayer. | 0 |
Store the reference id
Every save hands back a reference id. Persist it against the period and the return, so a retry reads the existing result instead of pushing duplicate invoices.
Make saves idempotent
Key your outbound rows by invoice number and period. If a save times out, re-reading the summary is safer than saving again.
Reconcile against 2B, not 2A
Pull 2B once it exists for the period and freeze it in your database. 2A moves under you and will not reproduce the same answer twice.
Handle the offset separately
Offsetting and filing are different calls for a reason. Compute, offset, confirm the ledgers, and only then file — filing cannot be undone.
Watch the due dates
Late filing attracts interest and a late fee computed by the portal, not by you. Read the system-calculated interest rather than deriving it.
Test against mock mode first
While a provider is in mock mode the gateway answers from fixtures, so you can build the whole sequence before a contract is in place.
Ready to call these?
Membership gives you a key per client, quota control and a log of every call with the provider's own response.
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