Math-Verified Invoice & Bank PDF to QuickBooks/Xero JSON avatar

Math-Verified Invoice & Bank PDF to QuickBooks/Xero JSON

Pricing

$25.00 / 1,000 document pages audited

Go to Apify Store
Math-Verified Invoice & Bank PDF to QuickBooks/Xero JSON

Math-Verified Invoice & Bank PDF to QuickBooks/Xero JSON

Convert invoices, receipts, and bank statement PDFs into mathematically verified JSON + ready-to-import QuickBooks Online & Xero payloads. Dual-engine Gemini 2.5 Flash + deterministic pdfplumber parser with exact Python Decimal cross-footing & running-balance auditing.

Pricing

$25.00 / 1,000 document pages audited

Rating

0.0

(0)

Developer

xu zenon

xu zenon

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

16 hours ago

Last modified

Categories

Features

Limited permissions

Share

Math-Verified Invoice & Bank Statement PDF to QuickBooks/Xero JSON Converter

Turn raw commercial invoices, receipts, and multi-line bank statement PDFs into mathematically verified structured JSON, complete with ready-to-import QuickBooks Online (Bill / Purchase) and Xero (ACCPAY / BankTransactions) API payloads.

Unlike generic OCR or LLM wrappers that silently hallucinate digits ($1,280.00 read as $1,230.00 or dropped statement rows), every extracted document passes through a deterministic Python decimal.Decimal Cross-Footing & Continuity Audit Engine—never touching IEEE-754 floating-point arithmetic (float) for currency calculations.


Why Accounting Automation Teams Choose This Actor

  1. Dual-Engine Extraction (Zero-Key Ready + BYOK Multimodal)
    • Engine A — Gemini 2.5 Flash Multimodal Structured Engine: Handles scanned paper invoices, smartphone receipt photos, skewed PDFs, and complex multi-column bank statements using strict JSON Schema output. Works out-of-the-box via built-in service capacity or with your own geminiApiKey (BYOK).
    • Engine B — Deterministic pdfplumber Layout & Native Table Engine: Extracts native digital PDFs and raw invoice/statement text with zero external API calls, ensuring 100% deterministic reproducibility for electronic SaaS bills, ERP invoices, and digital bank exports.
  2. 4-Pillar decimal.Decimal Accounting Audit (mathAudit)
    • Invoice Row Cross-Footing: Verifies round(quantity * unit_price - line_discount, 2) == line_amount on every single line item and pinpoints the exact miscalculated row (ROW_TOTAL_MISMATCH).
    • Invoice Column Footing: Verifies sum(line_amounts) == subtotal (SUBTOTAL_MISMATCH) and subtotal + total_tax + shipping_fee - discount_total == grand_total (GRAND_TOTAL_MISMATCH).
    • Bank Statement Running-Balance Continuity: Verifies row-by-row prev_balance + credit - debit == running_balance (RUNNING_BALANCE_MISMATCH) and full-period reconciliation opening_balance + sum(credits) - sum(debits) == closing_balance (CLOSING_BALANCE_MISMATCH)—instantly catching skipped scan lines or transposed digits between specific dates.
    • Date & Effective Tax Sanity: Validates due_date >= issue_date, statement period ordering, and flags abnormal effective tax rates (effective_tax_rate_pct).
  3. Drop-In QuickBooks Online & Xero Payloads
    • Outputs quickbooksBillPayload (QuickBooks Online Accounting API v3 Bill / Purchase / Deposit schema) and xeroInvoicePayload (Xero Accounting API ACCPAY Invoices / BankTransactions schema) ready for n8n, Make, Zapier, or Pipedream.
    • Automatically marks discrepancies with [MATH_DISCREPANCY_HOLD] in DRAFT status so unbalanced bills never auto-post to your General Ledger.
  4. Fair Pay-Per-Event Pricing
    • Charged per successfully extracted and math-audited page (document-page-audited). Unreadable, empty, or corrupted files are never charged.

Input Configuration Example

{
"documentUrls": [
"https://example.com/invoices/INV-2026-1042.pdf"
],
"documentsBase64": [
{
"filename": "november_checking_statement.pdf",
"mimeType": "application/pdf",
"contentBase64": "JVBERi0xLjQK...",
"documentType": "bank_statement"
}
],
"documentType": "auto",
"extractionMode": "auto",
"mathTolerance": "0.02",
"defaultAccountCode": "400",
"defaultCurrency": "USD"
}

Output Example (With Caught $50.00 Line Discrepancy)

{
"documentId": "doc_8f31c9a210b4",
"sourceName": "invoice_discrepancy_50usd.pdf",
"documentType": "invoice",
"extractionEngine": "deterministic_pdfplumber",
"pageCount": 1,
"currency": "USD",
"documentNumber": "INV-2026-0902",
"counterpartyName": "Northstar Cloud Systems LLC",
"issueDate": "2026-11-05",
"dueDate": "2026-12-05",
"totalAmount": "1620.00",
"auditPassed": false,
"confidenceScore": 0.625,
"discrepancyCount": 2,
"mathAudit": {
"passed": false,
"confidenceScore": 0.625,
"checksRun": 8,
"checksPassed": 6,
"tolerance": "0.02",
"effectiveTaxRatePct": "8.00",
"discrepancies": [
{
"code": "ROW_TOTAL_MISMATCH",
"field": "lineItems[1].amount",
"expected": "450.00",
"actual": "400.00",
"delta": "-50.00",
"severity": "ERROR",
"message": "Line 2 ('Security Penetration Testing Hours'): round(5.00 * 90.00 - 0.00, 2) = 450.00, but stated line amount is 400.00 (delta -50.00)."
},
{
"code": "SUBTOTAL_MISMATCH",
"field": "subtotal",
"expected": "1450.00",
"actual": "1500.00",
"delta": "50.00",
"severity": "ERROR",
"message": "Sum of stated line item amounts (1450.00) does not match stated subtotal (1500.00) (delta +50.00)."
}
]
},
"quickbooksBillPayload": { "...": "QuickBooks Online v3 Bill JSON" },
"xeroInvoicePayload": { "...": "Xero ACCPAY Invoice JSON" }
}

Compliance & Data Privacy

  • 100% White-Hat Document Processor: Processes only user-supplied URLs, Base64 files, or raw text—zero third-party website scraping, zero cookie/session harvesting, and zero CAPTCHA circumvention.
  • Ephemeral In-Memory Parsing: Uploaded documents are parsed strictly in memory during the Actor run and are never persisted outside your private Apify Dataset.