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.
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.
The API response may include the following information, depending on the response received:
Key invoice identification and amount details.
Identifies the seller and buyer involved in the transaction.
Provides taxable amounts and applicable tax information.
Extracts individual product or service details from the invoice.
Captures e-invoice information and validation status.
Provides extraction confidence and summary validation details.
Captures banking details for invoice payment processing.
Provide the invoice document using the input format supported by your API endpoint.
Processes the document to identify invoice fields, tax information, line items, and electronic invoice details.
Receive the extracted information in JSON, including summary fields, item arrays, confidence data, and e-invoice details.
Use the response in accounting, ERP, reconciliation, invoice management, and document-processing applications.
| Parameter | Type | Description |
|---|---|---|
| invoice_file | File | Invoice document to process, subject to the endpoint’s supported format. |
headers = {
"Authorization": "prod-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
files = [
(
"front",
(
"invoice.pdf",
open(r"C:\Users\Nagpur_it_hub\Downloads\invoice.pdf", "rb"),
"application/pdf"
)
)
]
| 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. |
{
"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.
Extract invoice details to support accounting entries and reduce manual data entry.
Organize GSTINs, taxable values, tax rates, HSN codes, and tax amounts for further checks.
Integrate structured invoice data with ERP, inventory, and financial management systems.
Compare extracted totals with calculated values and flag potential discrepancies for review.
Capture vendor information, invoice numbers, amounts, and line items to support payable processing.
Common questions about the E-Invoice OCR API, its response fields, validation, 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.