Skip to main content
1

Authenticate and Get E-Invoice Session

Before generating an e-invoice, you must authenticate and create an E-Invoice session. Follow the steps in the Generate E-Invoice Session recipe to obtain an E-Invoice access token.This access token is required for all E-Invoice API calls and is valid for the duration specified in the authentication response.
2

Generate E-Invoice

Once you have the E-Invoice access token, you can generate an e-invoice using the Generate E-Invoice endpoint.Provide the complete invoice details including seller and buyer information, item list, transaction details, and valuation details. Upon successful generation, you’ll receive an Invoice Reference Number (IRN), a signed invoice, and a signed QR code.

cURL Request

When the e-invoice is generated successfully, the response will include:
  • IRN (Invoice Reference Number) - A unique identifier for the e-invoice
  • SignedInvoice - The digitally signed invoice in JWT format
  • SignedQRCode - The signed QR code containing invoice summary details
Save these values as they are required for generating the PDF in the next step.
3

Generate E-Invoice PDF

After successfully generating the e-invoice, you can generate a PDF using the Generate E-Invoice PDF endpoint.You need to provide the signed QR code, IRN, and signed invoice from the previous step’s response. The PDF generation uses the Sandbox JWT access token (not the E-Invoice access token).

cURL Request

The response will contain a signed URL to download the PDF. This URL is valid for a limited time, so download the PDF promptly.