GSTNexa

GST Returns API

7 operations

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.

Integration guides

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.

How a filing flows

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.

YOU GSTN YOU MONEY 1 · Authenticate otprequest authtoken token lasts 6 hours 2 · Save GSTR-1 PUT gstr1/retsave B2B, B2CL, CDNR, HSN… returns a reference id 3 · Check and total GET gstr1/retsum poll the ref id until processing completes 4 · File GSTR-1 POST gstr1/retfile sign with EVC or DSC due 11th 5 · The portal generates GSTR-2B A static ITC statement built from your suppliers' filings. You do not call this — it appears on the 14th. 2A is the live view. GET gstr2b/all · GET gstr2a/b2b 6 · Act on IMS Accept, reject or keep each supplier invoice pending. What you accept is what lands in the next GSTR-2B. GET ims/invoices · PUT ims/save 7 · Reconcile ITC Match GSTR-2B against your purchase register. Anything unmatched is credit you cannot claim this period. GET ledgers/itc 8 · Draft GSTR-3B GET gstr3b/autoliab PUT gstr3b/retsave auto-filled from 1 and 2B 9 · Offset the liability PUT gstr3b/retoffset credit first, then cash. Short? Pay by challan. 10 · File GSTR-3B POST gstr3b/retfile tax is paid at this point due 20th Period closed Track status with public/rettrack Next: GSTR-9 Cash shortfall POST payment/generatechallan GET ledgers/bal Pay, then come back Cash ledger credited, then re-run step 9 and file.
A step that changes your filing status Done for the period The portal acts, not you

Before anything: authentication

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

MethodPathWhat it does
Nothing published in this group yet.

Return by return

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 guide
MethodPathWhat it does
POST /v1/gstr1/retfile File GSTR1 data

Use this instead of carrying the correction into the next period, so the liability lands in the right month.

MethodPathWhat it does
No GSTR-1A operations are published on this install.

Good for chasing a supplier mid-month. Do not compute ITC from it — that is what 2B is for.

MethodPathWhat it does
No GSTR-2A operations are published on this install.

Static is the point: it does not change after generation, so a reconciliation run twice gives the same answer.

Read the GSTR-2B guide
MethodPathWhat it does
No GSTR-2B operations are published on this install.

Anything left pending is simply not in this period's 2B. Silence is a decision.

MethodPathWhat it does
No IMS operations are published on this install.

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 guide
MethodPathWhat it does
POST /v1/gstr3b/retfile File GSTR3B data

Pull the auto-calculated figures first, then reconcile against your own books before saving.

Read the GSTR-9 guide
MethodPathWhat it does
POST /v1/gstr9/retfile File GSTR9

Needs a generated hash and certificate before filing — see gencert and genhash.

Read the GSTR-9C guide
MethodPathWhat it does
POST /v1/gstr9c/retfile File GSTR9C

The rest of the family

Returns and statements for specific registrations, plus the ledger and payment calls the cycle leans on.

ReturnWho it is forOperations
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

Implementing this in your own application

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

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.