We’re excited to launch our latest product to simplify your business processes. Know More →
GST RPACPC GST SuitePublic GST, e-Invoice & e-Way Bill

Generate Invoice Reference Numbers from Structured Invoice Data.

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.

Sample verification Dummy data
1 You send
Checking
2 You get back
✓
ACTIVEValid & registered
482 ms
Acknowledgement Number123456789012345
Acknowledgement Date2026-08-21 10:30:00
Invoice Reference Number (IRN)DUMMY-IRN-1234567890ABCDEF
Signed InvoiceDUMMY-SIGNED-INVOICE-PAYLOAD
Signed QR CodeDUMMY-SIGNED-QR-CODE-PAYLOAD
Invoice StatusACT
E-Way Bill Numbernull
E-Way Bill Datenull
E-Way Bill Valid Tillnull
Remarksnull
API overview

Simplify Generate IRN API.

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.

Key Information Available

Access essential Generate IRN API details.

The API response may include the following information, depending on the response received:

01
Structured Invoice Submission

Submit transaction, document, seller, buyer, item, tax, and invoice value details in JSON format.

transaction
document
seller
buyer
02
IRN Response

Retrieve the Invoice Reference Number returned by the API.

Irn
03
Acknowledgement Details

Access the acknowledgement number and date returned for the invoice.

AckNo
AckDt
04
Signed Invoice Payload

Retrieve the signed invoice data when returned by the API.

SignedInvoice
05
Signed QR Code Payload

Access the signed QR code data associated with the generated invoice.

SignedQRCode
06
Invoice Status

Read the invoice status value provided in the API response.

Status
07
E-Way Bill Information

Access associated e-way bill details when available in the response.

EwbNo
EwbDt
EwbValidTill
How It Works

Simple API-based verification process.

Step 01

Prepare Invoice Information

Assemble the transaction, document, seller, buyer, item, tax, and invoice value details.

Step 02

Configure the Request

Format the invoice data according to the expected JSON structure.

Step 03

Provide Required Headers

Include the configured token, secret key, GSTIN, and sandbox environment headers.

Step 04

Submit the Invoice

Send a POST request to the Generate IRN endpoint.

Step 05

Read the Response

Process the acknowledgement details, IRN, signed payloads, status, and available e-way bill information.

Step 06

Integrate with Your Workflow

Store or process the returned fields according to your application’s requirements.

API Request

Step 1 Submit Generate IRN API details.

Request parameters
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.
This example illustrates the request structure; it is not a guarantee that the placeholder values will be accepted by the API or that the tax treatment is appropriate for a particular transaction. The required fields and business validations should be confirmed against the supported schema.
Sample request REQUEST
{
  "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
  }
}
API response

Step 2Receive structured Generate IRN API information.

Key response fields
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.
200 · Sample responseRESPONSE
{
  "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.

Use cases

Generate IRN API across business workflows.

ERP and Accounting Integration

Connect invoice creation workflows with e-invoice generation, allowing applications to submit invoice information and process the returned IRN details.

Automated Billing Workflows

Integrate IRN generation into supported billing processes to reduce the need for separate manual API calls.

Invoice Management Systems

Use the generated IRN and acknowledgement details to associate an invoice with its API response.

Digital Invoice Processing

Use the signed invoice and signed QR code payloads returned by the API in downstream processes that support these fields.

Business Application Integration

Connect e-invoice generation with existing finance, tax, and business applications through a structured API request and response.

FAQ

Frequently asked questions

Common questions about the Generate IRN API — what it returns, how fast it is, and how to integrate.

Still have a question? Talk to an expert
What does the Generate IRN API do?
It accepts structured invoice data and returns the response fields associated with e-invoice generation, including the IRN and acknowledgement details in the supplied successful example.
What information must be submitted?
The supplied request contains transaction details, document details, seller details, buyer details, an array of invoice items, and aggregate invoice values.
What is returned after a successful request?
The sample response includes the acknowledgement number, acknowledgement date, IRN, signed invoice payload, signed QR code payload, status, and optional e-way bill fields.
Can the request contain multiple invoice items?
Yes. The supplied request structure represents ItemList as an array and demonstrates multiple items.
Does the response always contain e-way bill information?
The supplied response includes e-way bill fields, but their values are null. Applications should handle these fields when they are empty.
What does the ACT status mean?
The sample response returns ACT. Confirm the precise meaning and supported status values in the API documentation before using them in business rules.
Is authentication required?
The supplied request includes token, secretKey, gstin, and sandbox headers. Use the current RPACPC integration instructions for the required header format and authentication process.
Blog

Government ID Check API: How Does It Help Banks, FinTechs, and NBFCs Streamline KYC?

Government ID Check API helps banks, FinTechs, and NBFCs streamline KYC with faster identity verification and reduced manual work.

Read More
Government ID Check API: How Does It Help Banks, FinTechs, and NBFCs Streamline KYC?

India's verification infrastructure is already here.

Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.