Skip to content
FinHubBy HabileLabs

Document Intelligence

Turn scanned or photographed invoices into clean, structured data in seconds, without manual keying or double-entry errors.

api · POST /v1/kyc/verify
POST /v1/kyc/verify
Authorization: Bearer sk_live_••••
{ "pan": "XXXXX1234F", "consent_artifact": "ca_9f2c…" }

Overview

What the Invoice OCR API does

FinHub's Invoice OCR API reads an uploaded invoice image or PDF and returns vendor details, invoice number, dates and line-level totals as structured JSON. Built-in quality checks flag blurry or incomplete scans before they reach your finance workflow, and every extraction is logged for audit purposes.

Inputs

  • Invoice image (JPEG/PNG) or PDF
  • Optional expected vendor GSTIN for cross-check
  • Optional currency hint

Returns

  • Vendor name and GSTIN
  • Invoice number and date
  • Line items and total amount
  • Tax breakup (CGST/SGST/IGST)
  • Document quality score

POST /v1/ocr/invoice

How it works

Three steps to a verified result

01

Upload the document

Send the invoice image or PDF to the endpoint over an authenticated, encrypted connection.

02

Extract and validate

The engine reads vendor, amount and date fields, checks internal consistency and flags low-confidence extractions.

03

Receive structured output

Get a structured JSON response with extracted fields, a quality score and a tamper-evident log entry.

Use cases

Where teams use Invoice OCR

  • Accounts payable automation
  • Vendor onboarding and invoice reconciliation
  • Expense audit and GST input credit checks
  • Loan disbursement documentation for supply-chain finance

FAQ

Invoice OCR API — FAQs

Common questions about FinHub's Invoice OCR API.

The API accepts scanned or camera-captured JPEG and PNG images as well as digital and scanned PDFs, including multi-page invoices.

Ready to add Invoice OCR to your flow?

Book a demo and see the API return a verified result on your own test data in minutes.