Integrate e-invoice generation into your business applications using the RPACPC Generate IRN API. Submit structured invoice details, including transaction, document, seller, buyer, item, and invoice value information, and retrieve the response containing the IRN and associated acknowledgement and signed payload fields.
The Generate IRN API enables applications to submit invoice data through a structured JSON request and receive the e-invoice generation response.
The request includes transaction details, document information, seller and buyer details, item-level information, tax amounts, and invoice totals. The response can include the acknowledgement number and date, Invoice Reference Number (IRN), signed invoice payload, signed QR code payload, invoice status, and e-way bill fields when available.
The API can be integrated into ERP platforms, accounting systems, billing applications, and invoice-management workflows that need to incorporate e-invoice generation.
The API response may include the following information, depending on the response received:
Submit transaction, document, seller, buyer, item, tax, and invoice value details in JSON format.
Retrieve the Invoice Reference Number returned by the API.
Access the acknowledgement number and date returned for the invoice.
Retrieve the signed invoice data when returned by the API.
Access the signed QR code data associated with the generated invoice.
Read the invoice status value provided in the API response.
Access associated e-way bill details when available in the response.
Assemble the transaction, document, seller, buyer, item, tax, and invoice value details.
Format the invoice data according to the expected JSON structure.
Include the configured token, secret key, GSTIN, and sandbox environment headers.
Send a POST request to the Generate IRN endpoint.
Process the acknowledgement details, IRN, signed payloads, status, and available e-way bill information.
Store or process the returned fields according to your application’s requirements.
| Parameter | Type | Description |
|---|---|---|
| Version | String | IRN schema version, e.g. 1.1. |
| TranDtls | Object | Transaction details, including tax scheme and supply type. |
| DocDtls | Object | Document type, number and date. |
| SellerDtls | Object | Seller GSTIN, legal name, address and state details. |
| BuyerDtls | Object | Buyer GSTIN, legal name, place of supply and address details. |
| ItemList | Array | Invoice line items, including descriptions, HSN/SAC codes, quantities, prices and taxes. |
| ValDtls | Object | Invoice taxable value, tax totals, discounts and total invoice value. |
{
"Version": "1.1",
"TranDtls": {
"TaxSch": "GST",
"SupTyp": "B2B",
"RegRev": "Y",
"EcmGstin": null,
"IgstOnIntra": "N"
},
"DocDtls": {
"Typ": "INV",
"No": "DUMMY-INV-001",
"Dt": "21/08/2026"
},
"SellerDtls": {
"Gstin": "07AAAAA0000A1Z5",
"LglNm": "DUMMY SELLER PRIVATE LIMITED",
"Addr1": "123 Sample Business Road",
"Loc": "New Delhi",
"Pin": 110001,
"Stcd": "07"
},
"BuyerDtls": {
"Gstin": "07BBBBB0000B1Z5",
"LglNm": "DUMMY BUYER PRIVATE LIMITED",
"Pos": "07",
"Addr1": "456 Sample Market",
"Addr2": "Sample Industrial Area",
"Loc": "New Delhi",
"Pin": 110002,
"Stcd": "07"
},
"ItemList": [
{
"ItemNo": 0,
"SlNo": "1",
"IsServc": "Y",
"PrdDesc": "Sample Consulting Service",
"HsnCd": "998314",
"Qty": 1,
"FreeQty": 0,
"Unit": "NOS",
"UnitPrice": 100,
"TotAmt": 100,
"Discount": 0,
"AssAmt": 100,
"GstRt": 18,
"IgstAmt": 0,
"CgstAmt": 9,
"SgstAmt": 9,
"CesRt": 0,
"CesAmt": 0,
"CesNonAdvlAmt": 0,
"TotItemVal": 118
}
],
"ValDtls": {
"AssVal": 100,
"CgstVal": 9,
"SgstVal": 9,
"IgstVal": 0,
"CesVal": 0,
"Discount": 0,
"OthChrg": 0,
"RndOffAmt": 0,
"TotInvVal": 118
}
}
| Field | Description |
|---|---|
| status | API response status. |
| status_code | Status code returned by the API. |
| message | Message describing the API response. |
| billable | Billing indicator returned by the API. |
| error | Error information, or null when no error is returned. |
| data | Object containing generated IRN and invoice details. |
| AckNo | Invoice acknowledgement number. |
| AckDt | Acknowledgement date and time. |
| Irn | Generated Invoice Reference Number. |
| SignedInvoice | Signed invoice payload returned by the API. |
| SignedQRCode | Signed QR code payload returned by the API. |
| Status | Invoice status value returned by the API. |
| EwbNo | E-way bill number, when available. |
| EwbDt | E-way bill date, when available. |
| EwbValidTill | E-way bill validity information, when available. |
| Remarks | Remarks returned by the API, when available. |
| request_id | Request identifier. |
| sequence_id | Sequence identifier associated with the transaction. |
| request_time | Timestamp indicating when the request was made. |
| response_time | Timestamp indicating when the response was returned. |
{
"status": "SUCCESS",
"status_code": "200",
"message": "Data fetch successfully",
"billable": "Y",
"error": null,
"data": {
"AckNo": 123456789012345,
"AckDt": "2026-08-21 10:30:00",
"Irn": "DUMMY-IRN-1234567890ABCDEF",
"SignedInvoice": "DUMMY-SIGNED-INVOICE-PAYLOAD",
"SignedQRCode": "DUMMY-SIGNED-QR-CODE-PAYLOAD",
"Status": "ACT",
"EwbNo": null,
"EwbDt": null,
"EwbValidTill": null,
"Remarks": null
},
"request_id": "DUMMY-REQ-001",
"sequence_id": "DUMMY-SEQ-001",
"request_time": "2026-08-21T10:30:00.000Z",
"response_time": "2026-08-21T10:30:01.000Z"
}
The signed invoice and QR code fields can contain long encoded payloads. The values shown above are placeholders, not usable signed data.
Connect invoice creation workflows with e-invoice generation, allowing applications to submit invoice information and process the returned IRN details.
Integrate IRN generation into supported billing processes to reduce the need for separate manual API calls.
Use the generated IRN and acknowledgement details to associate an invoice with its API response.
Use the signed invoice and signed QR code payloads returned by the API in downstream processes that support these fields.
Connect e-invoice generation with existing finance, tax, and business applications through a structured API request and response.
Common questions about the Generate IRN API — what it returns, how fast it is, and how to integrate.
Learn how a Vehicle Verification API for Loan Processing helps lenders verify vehicle details, reduce risks, and speed up loan approvals.
Read More
Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.