Skip to main content

Automatic IRP Reporting

E-invoicing (IRP) settings

E-invoicing (IRP) settings

India’s e-invoicing system requires businesses above the prescribed turnover threshold to report B2B invoices electronically to the Invoice Registration Portal (IRP) maintained by NIC (National Informatics Centre). Recurso integrates directly with the IRP to:
  • Auto-submit invoices to the IRP when they are finalized
  • Generate IRN (Invoice Reference Number) for each invoice
  • Attach signed QR codes for verification
  • Retry failed submissions automatically
  • Cancel e-invoices when needed
E-invoicing is mandatory for businesses with aggregate turnover exceeding the applicable threshold (currently Rs. 5 crore). Recurso handles the technical integration so you can focus on your business.

How It Works

Configure IRP Credentials

Before e-invoices can be submitted, configure your IRP connection credentials. Recurso supports both sandbox and production environments.

Update IRP Configuration

IRP Configuration Parameters

Always test with environment: "sandbox" before switching to production. Sandbox submissions are not reported to the GST portal and are safe for development and testing.

View Current Configuration

Retrieve the current IRP configuration. Secrets are returned in a masked format for security.

Test IRP Connection

Validate that your credentials are correct and the IRP portal is reachable before going live.

Automatic Submission

Once IRP credentials are configured and is_enabled is set to true, Recurso automatically submits every finalized invoice to the IRP. No additional API calls are needed.
1

Invoice is finalized

When an invoice transitions to the finalized status (via subscription billing or manual finalization), Recurso prepares the e-invoice payload in the NIC-prescribed JSON schema.
2

Submission to IRP

The payload is sent to the IRP. On success, the IRP returns an IRN, acknowledgement number, and a digitally signed QR code.
3

E-invoice data stored

Recurso attaches the IRN and QR code to the invoice record. The e-invoice status is updated accordingly.
4

Webhook notification

A webhook event is fired so your application can update its UI or trigger downstream processes.

Check E-Invoice Status

Retrieve the e-invoice status for any invoice.

E-Invoice Statuses

Retry Failed E-Invoices

If a submission fails (network error, IRP downtime, validation issue), retry it after fixing the underlying problem.
Common failure reasons include incorrect GSTIN, missing mandatory fields (buyer address, HSN/SAC code), or IRP downtime. Check the error details in the e-invoice status response before retrying.

Cancel an E-Invoice

E-invoices can be canceled within 24 hours of generation on the IRP. You must provide a cancellation code and reason.

Cancel Codes

E-invoice cancellation must be done within 24 hours of IRN generation. After 24 hours, you must issue a credit note instead. The reason field is mandatory and must clearly explain the cancellation.

Webhooks

Example Webhook Payload

IRP Configuration Object

Best Practices

Always configure environment: "sandbox" first. Submit a few test invoices to verify your GSTIN, address details, and SAC/HSN codes are accepted by the IRP before switching to production.
Use the POST /v1/settings/irp/test endpoint after every credential change. This validates connectivity without submitting an actual invoice.
Subscribe to the einvoice.failed webhook and set up alerts. Common issues include expired IRP tokens, incorrect buyer GSTIN, or missing address fields. Resolve errors promptly and use the retry endpoint.
If you need to cancel an e-invoice, act within 24 hours of IRN generation. After that, you must issue a credit note via POST /v1/credit-notes and generate a new e-invoice for the credit note.
E-invoice failures often stem from incorrect buyer GSTIN or address. Validate GSTIN at customer creation time using the GST portal’s public API and keep billing addresses up to date.
The IRN is your proof of compliance. Store it alongside the invoice in your system and include it on printed/PDF copies of the invoice. The signed QR code should also be embedded in invoice PDFs.

Next steps

GST returns

Where these IRNs end up at filing time

Set up the IRP connection

Connect your GSP credentials