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

Extract e-invoice advance details through a single API.

Convert invoice documents into structured, machine-readable data using the E-Invoice advance OCR API. Extract supplier and buyer details, GST information, invoice line items, tax calculations, IRN details, and validation results.
Integrate invoice data extraction into accounting systems, ERP platforms, GST workflows, and automated document-processing applications.

Live extraction Replay
1 You upload
gst_invoice.pdfPDF · 1.2 MB · 1 page
Processing invoice
2 You get back
✓
SUCCESSInvoice processed · data extracted
612 ms
Invoice number25-26/0348
Invoice date15/09/2026
Vendor nameApex Cooling Systems Pvt. Ltd.
Buyer nameWestern Climate Solutions Ltd.
Seller GSTIN27AABCT1234F1Z5
Buyer GSTIN27AABCP5678D1Z2
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 Advance OCR API.

The RPCAPC E-Invoice advance OCR API enables businesses to extract available invoice information from supported invoice documents and receive the results in a structured JSON response.

The API can return invoice header details, seller and buyer GSTINs, PAN numbers, invoice values, taxable amounts, GST components, line-item information, bank details where available, and electronic invoice registration details.

Key information available

Access essential E-invoice Advance OCR API details.

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

01
Invoice Summary

Key invoice identification and amount details.

invoice_no
invoice_date
invoice_value
02
Seller and Buyer Details

Identifies the seller and buyer involved in the transaction.

seller_gstin
buyer_gstin
vendor_name
03
Tax and Financial Details

Provides taxable amounts and applicable tax information.

taxable_value
total_tax
igst
04
Invoice Line Items

Extracts individual product or service details from the invoice.

invoice_items
hsn_code
quantity
05
Electronic Invoice Details

Captures e-invoice information and validation status.

einvoice
irn
is_valid
06
Confidence and Validation

Provides extraction confidence and summary validation details.

confidence_data
summary_validation
07
Bank and Payment Information

Captures banking details for invoice payment processing.

bank_account_number
ifsc_swift_code
bank_name
How it works

Simple API-based E-invoice Advance OCR API process.

Step 01

Submit Invoice

Provide the invoice document using the input format supported by your API endpoint.

Step 02

OCR Processing

Processes the document to identify invoice fields, tax information, line items, and electronic invoice details.

Step 03

Receive Structured Response

Receive the extracted information in JSON, including summary fields, item arrays, confidence data, and e-invoice details.

Step 04

Integrate into Your Workflow

Use the response in accounting, ERP, reconciliation, invoice management, and document-processing applications.

API Request

Step 1 Submit E-invoice Advance OCR API details.

Request parameters
Parameter Type Description
invoice_file File Invoice document to process, subject to the endpoint’s supported format.
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"
        )
    )
]
API response

Step 2Receive structured E-invoice Advance OCR API information.

Key response fields
Field Description
country Country associated with the invoice, such as India.
billable Indicates whether the request is billable, as returned by the API.
output Object containing the extracted invoice information.
output.seller_gstin GST Identification Number of the seller issuing the invoice.
output.buyer_gstin GST Identification Number of the buyer receiving the invoice.
output.vendor_name Name of the seller or supplier issuing the invoice.
output.receiver_name Name of the buyer or recipient mentioned in the invoice.
output.invoice_no Unique invoice number assigned to the invoice.
output.invoice_date Date on which the invoice was issued.
output.invoice_value Total invoice amount, including applicable taxes and charges.
output.taxable_value Total value of goods or services before GST and other applicable taxes.
output.total_tax Total tax amount applied to the invoice.
output.cgst Central Goods and Services Tax amount charged on the invoice.
output.sgst State Goods and Services Tax amount charged on the invoice.
output.igst Integrated Goods and Services Tax amount charged on the invoice.
output.place_of_supply State code or location where the goods or services are considered supplied for GST purposes.
output.invoice_items Contains line-item details, including item descriptions, HSN codes, quantities, unit prices, taxable amounts, and applicable GST.
output.einvoice.irn Invoice Reference Number (IRN) generated for the e-invoice.
output.einvoice.doctyp Type of document, such as INV for an invoice.
output.einvoice.docdt Date of the document recorded in the e-invoice details.
output.einvoice.totinvval Total invoice value recorded in the e-invoice details.
output.einvoice.is_valid Indicates whether the e-invoice validation status is valid, as reported by the API.
output.confidence_data.confidence_score Overall confidence score indicating the reliability of the extracted invoice information.
output.confidence_data.summary_validation Provides calculated and extracted totals, along with differences, to help validate invoice amounts and taxes.
output.no_of_pages Total number of pages processed from the submitted invoice document.
200 · Sample responseRESPONSE
{
  "status": "Success",
  "country": "India",
  "billable": "Yes",
  "message": "Details extraction completed successfully.",
  "output": {
    "invoice_summary": {
      "seller gstin": "27AABCT1234F1Z5",
      "hsn/sac": "84151090",
      "buyer gstin": "27AABCP5678D1Z2",
      "seller msme no": "UDYAM-MH-12-0012345",
      "invoice no": "25-26/0348",
      "invoice date": "15-09-2026",
      "credit note no": "",
      "credit note date": "",
      "other taxes": "0.00",
      "po no": "PO-2026-0087",
      "ro no": "",
      "ro date": "",
      "invoice value": "474434.88",
      "taxable value": "402062.50",
      "total tax": "72372.38",
      "cgst": "36186.19",
      "sgst": "36186.19",
      "igst": "0.00",
      "other_charges": "0.00",
      "vendor name": "Apex Cooling Systems Pvt. Ltd.",
      "vendor name 2": "",
      "receiver name": "Western Climate Solutions Ltd.",
      "vendor address": "Plot No. 114, Industrial Estate, MIDC Area, Pune, Maharashtra - 411019",
      "receiver address": "Unit 204, Business Park, Andheri East, Mumbai, Maharashtra - 400069",
      "receiver location": "Mumbai, Maharashtra",
      "buyer pan": "AABCP5678D",
      "seller pan": "AABCT1234F",
      "cgst %": "9.00",
      "sgst %": "9.00",
      "igst %": "0.00",
      "bank acc no": "123456789012",
      "ifsc/swift code": "HDFC0001234",
      "bank name": "HDFC Bank",
      "bank branch name": "Pune Industrial Area",
      "vendor email": "",
      "vendor state": "27",
      "receiver state": "27",
      "place of supply": "27"
    },
    "invoice_items": {
      "sr no.": [
        "1",
        "2"
      ],
      "item": [
        "AC-1001 - Three Phase Controller",
        "AC-1002 - 2.0 Ton Inverter AC Unit"
      ],
      "hsn_code": [
        "85371000",
        "84151090"
      ],
      "quantity": [
        90,
        25
      ],
      "unit_price": [
        4033,
        1563.70
      ],
      "price": [
        "362970.00",
        "39092.50"
      ],
      "%cgst": [
        "9.00",
        "9.00"
      ],
      "%sgst": [
        "9.00",
        "9.00"
      ],
      "%igst": [
        "0.00",
        "0.00"
      ],
      "%gst": [
        "18.00",
        "18.00"
      ],
      "cgst": [
        "32667.30",
        "3518.33"
      ],
      "sgst": [
        "32667.30",
        "3518.33"
      ],
      "igst": [
        "0.00",
        "0.00"
      ],
      "gst": [
        "65334.60",
        "7036.65"
      ],
      "%discount": [
        "",
        ""
      ]
    },
    "confidence_data": {
      "confidence_score": 0.99,
      "summary_validation": {
        "calculated_taxable": "402062.50",
        "extracted_taxable": "402062.50",
        "taxable_difference": "0.00",
        "calculated_total_gst": "72371.25",
        "extracted_total_tax": "72372.38",
        "gst_difference": "1.13",
        "calculated_invoice_value": "474433.75",
        "extracted_invoice_value": "474434.88",
        "invoice_value_difference": "1.13"
      },
      "buyer_gstin_confidence": 0.99,
      "seller_gstin_confidence": 0.99,
      "is_baseamount_calculated": false,
      "gst_percentage_confidence": 0.99
    },
    "einvoice": {
      "sellergstin": "27AABCT1234F1Z5",
      "buyergstin": "27AABCP5678D1Z2",
      "docno": "25-26/0348",
      "doctyp": "INV",
      "docdt": "15/09/2026",
      "totinvval": 474434.88,
      "itemcnt": 2,
      "mainhsncode": "85371000",
      "irn": "83db5cbbe1df780c330c6d7597349345",
      "irndt": "2026-09-15 16:36:00",
      "iss": "NIC",
      "is_valid": "Yes"
    },
    "no_of_pages": 1
  }
}

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 Advance OCR API across business workflows.

Accounting and Bookkeeping

Extract invoice details to support accounting entries and reduce manual data entry.

GST and Tax Workflows

Organize GSTINs, taxable values, tax rates, HSN codes, and tax amounts for further checks.

ERP and Enterprise Systems

Integrate structured invoice data with ERP, inventory, and financial management systems.

Invoice Reconciliation

Compare extracted totals with calculated values and flag potential discrepancies for review.

Accounts Payable

Capture vendor information, invoice numbers, amounts, and line items to support payable processing.

FAQ

Frequently asked questions

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

Still have a question? Talk to an expert
What is the E-Invoice OCR API?
The E-Invoice OCR API extracts available information from supported invoice documents and returns it as structured JSON for use in accounting, tax, ERP, and document-processing applications.
What information does the API return?
The response can include invoice summary fields, seller and buyer information, GST and PAN details, invoice line items, tax calculations, confidence data, electronic invoice registration details, and request metadata.
Can the API extract bank and vendor information?
Yes. The response schema includes vendor name, address, email, bank account number, IFSC or SWIFT code, bank name, and branch name. Availability depends on the source document and the extraction results.
How can I integrate the API into my application?
Send the invoice using the input format and authentication method required by your configured endpoint, parse the JSON response, and map the returned fields into your application. Handle errors, missing fields, validation discrepancies, and retries 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.