Invoice & Receipt OCR API - Math-Verified Bookkeeping & MCP
Pricing
from $30.00 / 1,000 verified documents
Invoice & Receipt OCR API - Math-Verified Bookkeeping & MCP
Invoice & Receipt OCR API and MCP Server: Extract line items to JSON with Math-Verified Bookkeeping OCR. Audited by deterministic Python Decimal math checksums.
Pricing
from $30.00 / 1,000 verified documents
Rating
0.0
(0)
Developer
offthetoolsco
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Invoice, Receipt & Bank Statement OCR API — Math-Verified Bookkeeping OCR & MCP Server
Stop letting raw Vision LLMs silently hallucinate bookkeeping totals. Verified Invoice & Receipt OCR is a production-ready Bookkeeping OCR API and zero-install MCP Server engineered to extract invoices, receipts, and multi-page bank statements with deterministic mathematical certainty. Built for accountants, developers, and AI agents, it pairs multimodal Vision LLMs with a Python Decimal arithmetic verification engine that guarantees every line item and running bank balance reconciles before hitting Xero, QuickBooks, or MYOB.
⚡ Instant 1-Click Trial (Zero Setup)
Experience zero-friction verification in seconds:
- Navigate to the Input tab on this Apify Store page.
- For Invoices & Receipts, leave
presetasinvoiceanddocumentUrlsprefilled with our live Australian GST tax invoice:https://ocr-api.offthetoolsco.com.au/sample-invoice.jpg - For Multi-Page Bank Statements + Xero CSV, set
presettobank_statementand test with our live 2-page business statement PDF:https://ocr-api.offthetoolsco.com.au/sample-bank-statement.pdf - Click Save & Run (or Start) and inspect the verified JSON and
xero_csvoutput in the Dataset tab.
🧠 Why Math-Verified Bookkeeping OCR Beats Raw Vision LLMs
Raw Vision LLM prompts are impressive at recognizing messy layouts, but they have a fatal flaw for accounting: they hallucinate arithmetic.
- Digit Ambiguity & Smudges: A fold in a receipt or a low-resolution PDF scan easily turns
$18.25into$18.75. A raw LLM outputs the wrong digit without blinking. - Multi-Page Statement Drift: Skipping a single line across pages 1–10 of a bank statement throws off every subsequent balance unless checked with an exact running-balance walk.
- Silent Ledger Corruption: When unverified JSON is piped directly into Xero, QuickBooks, MYOB, or NetSuite, reconciliation errors compound and require costly manual audits.
How Our Deterministic Math Engine Works
- High-Resolution Vision Extraction: Single images or multi-page PDFs are parsed into strict JSON schemas.
- Deterministic
DecimalAuditing:- Invoices & Receipts (
preset="invoice"): Verifiesqty * unit_price == line_total,sum(line_total) == subtotal, andsubtotal + tax == total. - Bank Statements (
preset="bank_statement"): Runs arunning_balance_walkacross all pages—verifyingopening_balance, each transaction'scredit/debitdelta againstrunning_balance, andclosing_balance, automatically skipping zero-delta"BALANCE CARRIED FORWARD"/"BALANCE BROUGHT FORWARD"rows and supportingreverse_order=Truefor newest-first statements.
- Invoices & Receipts (
- Targeted Self-Healing Retries: If any row or total fails, the engine feeds the exact 1-based row index and dollar discrepancy back to the Vision LLM for a targeted re-read.
- Xero-Ready CSV Export (
xero_csv): Verified bank statements automatically emit clean chronological*Date,*Amount,Payee,Description,ReferenceCSV ready for direct Xero bank statement import—with zero$0.00carry-forward clutter. - Audit Protection: If digits remain irreconcilable after retries,
verification_passedisfalsewith exactaudit_errorsso corrupt numbers never enter your ledger.
🤖 Zero-Install Streamable HTTP & Stdio MCP Server
Connect this Actor directly to Cursor, Claude Desktop, Antigravity, Windsurf, or Claude Code:
extract_invoice: Extract structured line items and totals from invoices/receipts (or custom schemas).reconcile_bank_statement: Reconcile multi-page bank statement PDFs/images withrunning_balance_walk(reverse_ordersupported) and returnxero_csvplus exactaudit_errorsif any row mismatches.
Streamable HTTP Endpoint
https://mcp.apify.com/?tools=fetch-actor-details,offthetoolsco/verified-invoice-receipt-ocr
1-Click CLI Setup
# Add to Cursorapify mcp install cursor --tools fetch-actor-details,offthetoolsco/verified-invoice-receipt-ocr# Add to Claude Codeapify mcp install claude-code --tools fetch-actor-details,offthetoolsco/verified-invoice-receipt-ocr# Add to VS Codeapify mcp install vscode --tools fetch-actor-details,offthetoolsco/verified-invoice-receipt-ocr
Manual Configuration (claude_desktop_config.json / cursor.json)
{"mcpServers": {"verified-ocr": {"url": "https://mcp.apify.com/?tools=fetch-actor-details,offthetoolsco/verified-invoice-receipt-ocr","headers": {"Authorization": "Bearer YOUR_APIFY_TOKEN"}}}}
Local Stdio MCP (via uvx / pipx)
Prefer a local stdio MCP server? Run directly with uvx:
{"mcpServers": {"verified-ocr": {"command": "uvx","args": ["--from", "git+https://github.com/offthetoolsco/verified-invoice-receipt-ocr", "verified-ocr"],"env": {"OCR_API_KEY": "YOUR_OCR_API_KEY"}}}}
Or run from your terminal:
$uvx --from git+https://github.com/offthetoolsco/verified-invoice-receipt-ocr verified-ocr
💰 Transparent Pay-Per-Event Pricing
No recurring subscription fees. No seat minimums. No monthly credit expirations.
- $0.03 per verified document (Pay-Per-Event via Apify platform).
- $0.00005 Actor start fee (nominal compute charge).
- Zero Charge for Verification Retries: Multi-pass self-healing arithmetic audits are included in the single document fee.
- Pay only for successful extractions written to your dataset.
📥 Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
documentUrls | array of string | Optional* | Direct URLs to invoices, receipts, or multi-page PDFs. Prefilled with sample-invoice.jpg. |
preset | string | Optional | "invoice" (default) or "bank_statement" (multi-page reconciliation + Xero CSV). |
reverseOrder | boolean | Optional | Set true for newest-first (reverse chronological) bank statements (default false). |
fileBase64 | string | Optional* | Base64-encoded document or data URI (ideal for local files in AI Agent workflows). |
fileName | string | Optional | File name when providing fileBase64 (e.g. statement.pdf). Defaults to invoice.pdf. |
jsonSchema | string | Optional | Custom JSON Schema string. Omit to use the selected preset schema. |
mathRules | string | Optional | Custom arithmetic rules array. Omit to use the selected preset math checks. |
* Provide either documentUrls or fileBase64.
📤 Verified Output Schema
Invoice / Receipt Output
{"source": "https://ocr-api.offthetoolsco.com.au/sample-invoice.jpg","job_id": "job_8f2b3e41a9c0","status": "completed","verification_passed": true,"pages_processed": 1,"attempts": 1,"latency_ms": 1420,"data": {"vendor_name": "Apex Electrical Contracting Pty Ltd","tax_id": "ABN 84 123 456 789","invoice_number": "INV-2026-0842","invoice_date": "2026-11-20","currency": "AUD","items": [{"description": "Commercial Switchboard Upgrade & Safety Switch Installation","qty": 1.0,"unit_price": 850.00,"line_total": 850.00}],"subtotal": 850.00,"tax": 85.00,"total": 935.00},"audit_errors": []}
Multi-Page Bank Statement Output (preset="bank_statement")
{"source": "https://ocr-api.offthetoolsco.com.au/sample-bank-statement.pdf","job_id": "fb598638-8037-4161-82b4-3a5cf090b9a8","status": "completed","verification_passed": true,"pages_processed": 2,"attempts": 1,"data": {"institution": "SOUTHERN CROSS BUSINESS BANK","account_holder": "OFF THE TOOLS CO PTY LTD","currency": "AUD","opening_balance": 12450.00,"closing_balance": 14546.70,"transactions": [...]},"xero_csv": "*Date,*Amount,Payee,Description,Reference\n2026-10-02,1840.50,,Shopify Payout - Settlement 4812,SHP-4812\n...","audit_errors": []}
🔒 Enterprise Privacy & Zero Data Retention
- Ephemeral Processing: Uploaded images and PDFs are loaded into memory or transient ephemeral storage solely for the duration of the extraction request.
- Immediate Disk Purge: All temporary files are permanently wiped immediately upon completion of the verification pass.
- Zero Training: Your confidential invoices, bank statements, and financial data are never used to train machine learning models.
🚀 Getting Started
- Click Try for free or Save & Run above with the prefilled sample (or switch
presettobank_statementwithhttps://ocr-api.offthetoolsco.com.au/sample-bank-statement.pdf). - Integrate with Python, Node.js, cURL, or MCP using the Apify API client or
uvx. - For support or custom math rules, contact Off The Tools Co..