GSTNexa

E-Invoice API

1 operation

Register an invoice with the Invoice Registration Portal, get back an IRN and a signed QR code, and read registered invoices later. Required above the turnover threshold for B2B supplies.

What an IRN is

A 64 character hash of the supplier GSTIN, document number, document type and financial year. It is unique: register the same invoice twice and the portal returns the original, not a new one.

The signed QR code

Returned with the IRN as a signed JWT. It must be printed on the invoice; that signature is what makes the document valid in transit and for your buyer's credit.

A duplicate is not a failure

GSN-409-DUPLICATE means the document already carries an IRN. Read the existing IRN from the response and carry on — never retry with a new invoice number.

Registering an invoice

The sequence from a finished invoice in your system to a compliant e-invoice.

  1. 1

    Build the invoice payload

    Seller and buyer GSTINs, document number and date, line items with HSN codes, and the taxable and total values.

    your system
  2. 2

    Validate before sending

    Check the body against the endpoint schema so a malformed document never spends an upstream call.

    JSON studio
  3. 3

    Register for an IRN

    Post the invoice. The portal validates it, generates the IRN and returns the acknowledgement number, date and signed QR code.

    POST einvoice-irn
  4. 4

    Store what comes back

    Persist the IRN, acknowledgement number and QR against your invoice record. Print the QR on the document.

    your system
  5. 5

    Read it back when needed

    Fetch the JSON for an IRN, list IRNs for a period, or pull the e-invoice HSN summary that flows into GSTR-1.

    GET einvoice/irndtl

Published operations

MethodPathWhat it does
GET /v1/gst/einvoice/irnjsons Get list of IRN Jsons

E-invoices feed GSTR-1

Registered invoices are auto-populated into your outward supplies, so the returns flow picks up from here.

See the returns flow

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.