We’re excited to launch our latest product to simplify your business processes. Know More →
OCR RPACPC OCR SuiteDocument Verification

Verify e-invoice details through a single API.

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.

Live extraction Replay
1 You upload
gst_invoice.pdfPDF · 1.2 MB
Processing invoice
2 You get back
✓
SUCCESSInvoice processed · fields extracted
612 ms
Invoice number 25-26/0348
Invoice date 15/09/2026
Vendor name Apex Cooling Systems Pvt. Ltd.
Buyer name Western Climate Solutions Ltd.
Seller GSTIN 27AABCT1234F1Z5
Buyer GSTIN 27AABCP5678D1Z2
Invoice value ₹4,74,434.88
Response time
<10s

Uptime SLA
99.9%+

Rate limit
500 req / sec

Auth
Authorization token

API overview

Simplify E-invoice OCR API.

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.

Key information available

Access essential E-invoice OCR API details.

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

01
Seller Information

Contains GST identification details of the invoice issuer.

sellergstin
02
Buyer Information

Contains GST identification details of the invoice recipient.

buyergstin
03
Document Information

Provides invoice identification and document details.

docno
doctyp
docdt
04
Invoice Value and Items

Provides total invoice value and item classification details.

totinvval
itemcnt
mainhsncode
05
Invoice Reference Number

Contains the unique Invoice Reference Number generated for the e-invoice.

irn
06
IRN Registration Details

Provides IRN registration date and issuing system information.

irndt
iss
07
Invoice Validity

Indicates whether the e-invoice is valid according to the API response.

is_valid
How it works

Simple API-based verification process.

Step 01

Upload Invoice

Submit the invoice document using the supported multipart file-upload format.

Step 02

API Processing

Use the uploaded document’s returned URL to submit the invoice to the E-Invoice OCR endpoint for processing.

Step 03

Receive Response

Receive structured JSON containing extracted e-invoice details, document information, invoice values, and validation status.

Step 04

Integrate into Your Workflow

Use the returned information in accounting systems, GST workflows, ERP platforms, and invoice management applications.

API Request

Step 1 Submit E-invoice OCR API details.

Request parameters
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.
The request values shown are illustrative dummy data.
Sample request REQUEST
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
}
API response

Step 2Receive structured verification information.

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

Use cases

E-invoice OCR API across business workflows.

Accounting and Bookkeeping

Retrieve invoice numbers, dates, values, and GSTINs to support accounting workflows.

GST and Tax Workflows

Access seller and buyer GSTINs, HSN codes, document types, and returned invoice validity information.

ERP Integration

Connect e-invoice details with enterprise resource planning and financial management systems.

Invoice Verification

Use the returned IRN, document details, and validity indicator in invoice review workflows.

Accounts Payable

Retrieve vendor and invoice information to support invoice intake and payable processing.

FAQ

Frequently asked questions

Common questions about the E-Invoice OCR API, its response fields, document processing, and integration.

Still have a question? Talk to an expert
What is the E-Invoice OCR API?
The E-Invoice OCR API extracts available electronic invoice registration details from submitted invoice documents and returns the results as structured JSON.
What information does the API return?
The API can return seller and buyer GSTINs, document number, document type, document date, invoice value, item count, main HSN code, IRN, IRN date, issuer identifier, and a validity indicator, along with processing metadata.
How quickly does the API return invoice details?
Response time depends on document size, upload time, processing requirements, and service load. The API response includes request_time and response_time, which can be used to analyze processing performance.
Can the API be adapted to specific business integration requirements?
Integration workflows can be designed around the fields returned by the API, including GSTINs, document identifiers, invoice values, IRN, and validity information. Contact the API provider to confirm support for any additional fields or custom requirements.
How does the API help improve invoice-processing efficiency?
By returning structured electronic invoice information, the API reduces the need for manual data entry and helps businesses streamline invoice intake, recordkeeping, invoice review, and integration with existing financial systems.
How can I integrate the API into my application?
Use Python, JavaScript, or another HTTP client to upload the document, obtain its URL, and submit that URL to the OCR endpoint. Parse the JSON response and map the returned fields into your application. Handle HTTP errors, missing values, and unsuccessful processing responses appropriately.
Blog

What Is the Fastest Identity Solution for a Rapidly Growing Startup?

Discover the fastest identity solution for startups to streamline customer verification, speed up onboarding, and support business growth.

Read More
What Is the Fastest Identity Solution for a Rapidly Growing Startup?

India's verification infrastructure is already here.

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