1
Authenticate and Get Taxpayer Session
Before fetching an E-Invoice using the Taxpayer API, you must authenticate and create a taxpayer session. Follow the steps in the Generate Taxpayer Session recipe to obtain a Taxpayer access token.This access token is required for all GST Taxpayer API calls and is valid for 6 hours. Unlike the regular E-Invoice API which can only fetch invoices generated within the last 3 days, the Taxpayer API allows you to fetch E-Invoices generated within the last 6 months.
2
Fetch E-Invoice by IRN
Once you have the Taxpayer access token, you can fetch an E-Invoice using the Get E-Invoice by IRN endpoint.Provide the Invoice Reference Number (IRN) as a path parameter. The authenticated taxpayer must be a party in the transaction (either the seller or the buyer) to fetch the E-Invoice.
When the E-Invoice is fetched successfully, the response will include:
cURL Request
cURL Request
- IRN (Invoice Reference Number) - The unique identifier for the E-Invoice
- SignedInvoice - The digitally signed invoice in JWT format
- SignedQRCode - The signed QR code containing invoice summary details
- AckDt - Acknowledgment date
- AckNo - Acknowledgment number
- Status - Current status of the invoice (e.g., “ACT” for active)
Important: This endpoint can fetch E-Invoices that are up to 6 months old, making it ideal for retrieving invoices that are older than the 3-day limit of the regular E-Invoice API.