Extract electronic invoice registration details from invoice documents using the RPCAPC E-Invoice OCR API. Retrieve seller and buyer GSTINs, document number, document type, invoice date, invoice value, HSN code, IRN, and registration validity in a structured JSON response.
Simplify invoice verification and integrate e-invoice data into accounting systems, GST workflows, ERP platforms, and automated document-processing applications.
The RPCAPC E-Invoice OCR API enables businesses to retrieve available electronic invoice registration details from an invoice document through a simple API integration.
The API returns structured information including seller and buyer GSTINs, document number, document type, document date, total invoice value, item count, HSN code, Invoice Reference Number (IRN), IRN date, issuer, and the returned validity indicator.
This structured response helps businesses automate invoice verification, support GST-related workflows, reduce manual data entry, and integrate electronic invoice information into existing business applications.
The API response may include the following information, depending on the response received:
Contains GST identification details of the invoice issuer.
Contains GST identification details of the invoice recipient.
Provides invoice identification and document details.
Provides total invoice value and item classification details.
Contains the unique Invoice Reference Number generated for the e-invoice.
Provides IRN registration date and issuing system information.
Indicates whether the e-invoice is valid according to the API response.
Submit the invoice document using the supported multipart file-upload format.
Use the uploaded document’s returned URL to submit the invoice to the E-Invoice OCR endpoint for processing.
Receive structured JSON containing extracted e-invoice details, document information, invoice values, and validation status.
Use the returned information in accounting systems, GST workflows, ERP platforms, and invoice management applications.
| Parameter | Type | Description |
|---|---|---|
| front | Multipart file | Invoice document uploaded to the file-upload service. The example uses a PDF file. |
| file | String (JSON) | URL returned by the upload service, passed to the OCR endpoint in the JSON request body. |
headers = {
"Authorization": "prod-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
files = [
(
"front",
(
"invoice.pdf",
open(r"C:\Users\Nagpur_it_hub\Downloads\invoice.pdf", "rb"),
"application/pdf"
)
)
]
# Get the uploaded invoice URL
file_url = res_json.get("url")
# Prepare the E-Invoice OCR API payload
final_payload = {
"file": file_url
}
| Field | Description |
|---|---|
| country | Country associated with the response. |
| billable | Indicates whether the request is billable. |
| output | Object containing extracted e-invoice information. |
| output.sellergstin | Seller’s GSTIN. |
| output.buyergstin | Buyer’s GSTIN. |
| output.docno | Invoice document number. |
| output.doctyp | Document type, such as INV. |
| output.docdt | Document date. |
| output.totinvval | Total invoice value returned by the service. |
| output.itemcnt | Number of invoice items. |
| output.mainhsncode | Main HSN code associated with the invoice. |
| output.irn | Invoice Reference Number. |
| output.irndt | IRN date and time. |
| output.iss | Issuer identifier, such as NIC. |
| output.is_valid | Validity indicator returned by the service. |
{
"status": "Success",
"country": "India",
"billable": "Yes",
"message": "Details extraction completed successfully.",
"output": {
"sellergstin": "07AAJCA9880A1ZL",
"buyergstin": "27AABCF9205A1Z3",
"docno": "AIN2425000357859",
"doctyp": "INV",
"docdt": "03/04/2024",
"totinvval": 1572.5,
"itemcnt": 1,
"mainhsncode": "998315",
"irn": "29526972635d1e6a977fc7855a03186a46addd6ec52ec693aabdbcfc53417968",
"irndt": "2024-04-03 14:37:00",
"iss": "NIC",
"is_valid": "Yes"
}
}
Illustrative response using dummy data. The API may return additional fields such as request ID, sequence ID and timestamps. Field availability and values may vary.
Retrieve invoice numbers, dates, values, and GSTINs to support accounting workflows.
Access seller and buyer GSTINs, HSN codes, document types, and returned invoice validity information.
Connect e-invoice details with enterprise resource planning and financial management systems.
Use the returned IRN, document details, and validity indicator in invoice review workflows.
Retrieve vendor and invoice information to support invoice intake and payable processing.
Common questions about the E-Invoice OCR API, its response fields, document processing, and integration.
Discover the fastest identity solution for startups to streamline customer verification, speed up onboarding, and support business growth.
Read More
Empower your applications with India's Enterprise Verification Intelligence Platform for faster, more reliable verification.