A working guide to the three annual-return flows, for a CRM or billing system calling the GST APIs. Authenticate, pull what the portal computed, let the user reconcile, save, check the save status, then sign and file for an ARN.
Three flows, one shape. GSTR-9 is the annual return for regular taxpayers, GSTR-9A the composition equivalent, and GSTR-9C the reconciliation that can only start once GSTR-9 for the same GSTIN and year is filed. Each follows the same pattern: authenticate, pull the system-computed data, let the user review and edit, save, check the save status, then sign and file.
Before you code the parsers
Paths, methods and parameters below come from the Postman collection and the OpenAPI document. Both list only placeholder 404 and 500 responses, so capture the success responses from one sandbox run and build your parsers from those.
Twenty endpoints across the three forms, plus three that are shared. Each form has two filing endpoints and the user picks one: retfile for DSC, retevcfile for EVC. There is no separate Proceed to File call — the summary with its chksum is what gets signed and filed.
No return API works without a live taxpayer session, so every flow starts with authentication and a pre-check of the year's earlier returns.
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.
Keep the raw response of every call in annual_return_calls. Support disputes and GSTN error tickets always ask for the txn id and the response.
A fixed sequence with two loops — polling while 8A generates, and re-saving until the status is P — and a fork at the end between DSC and EVC.
Read it in a snake: left to right along the top, then right to left along the second row. The dashed returns are the two loops — polling while the portal generates 8A, and saving again after a PE or ER status. Never call a filing endpoint while the latest save is not P.
Tax shown in Table 14 as additional liability is not paid through this flow — the taxpayer pays it separately through DRC-03.
A shorter GSTR-9: no 8A, no HSN, no separate proceed-to-file. Show it only for a composition GSTIN in a year where GSTR-9A applies — from FY 2019-20 onward, route composition taxpayers to GSTR-4 annual instead.
The reconciliation between the audited accounts and the filed GSTR-9. Seven calls, and for DSC it ends with a hash that must be signed.
Anything still payable after reconciliation goes through DRC-03, the same as GSTR-9 Table 14.
Drive the whole UI from one status column on annual_returns. Each API response moves the return to exactly one next state.
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 + FY + form so two users cannot save or file at once.
Audit
Store request, response, txn, reference id and error_cd for every call.
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 guidesWe 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