POST an invoice PDF, scan or photo and get its 19 fields, line items included, back as JSON, with each row, the subtotal, the tax and the amount due re-added. $0.02 a page, 50 pages free, 250 pages a job.

Invoice OCR API that checks the totals

A sum that misses by more than 0.01 on a 2-decimal invoice comes back as a discrepancy, with the number the other values give next to the number on the page. Every job also writes QuickBooks Online and Xero bill CSVs.

Updated

Example

A US invoice with sales tax and a deposit

invoice-ridgeback.pdf has five lines, shipping, sales tax and a deposit paid up front, so the amount due is less than the total. The EIN and the ABA routing number get their checks too.

POSTapi.parserkit.com/v1/parse?wait=60

curl "https://api.parserkit.com/v1/parse?wait=60" \
  -H "Authorization: Bearer $PARSERKIT_API_KEY" \
  -F file=@invoice-ridgeback.pdf \
  -F preset=invoice
response.jsonverified
{
  "id": "job_luq4apdooeslzzwn8pg1",
  "status": "succeeded",
  "preset": "invoice",
  "pages": 1,
  "cost_usd": 0.02,
  "verification_status": "verified",
  "data": {
    "invoice_number": "RB-2207",
    "issue_date": "2026-10-30",
    "due_date": "2026-11-29",
    "purchase_order": "LH-0912",
    "currency": "USD",
    "vendor": {
      "name": "Ridgeback Print Co.",
      "address": "1810 E 6th St, Austin, TX 78702",
      "tax_id": "47-3851902",
      "email": "billing@ridgebackprint.example"
    },
    "customer": {
      "name": "Larkhaven Coffee Roasters LLC",
      "address": "4420 Burnet Rd, Austin, TX 78756"
    },
    "ship_to": "2301 S Lamar Blvd, Austin, TX 78704",
    "line_items": [
      {
        "description": "Coffee bag labels, matte, 3 by 4 in",
        "quantity": 5000,
        "unit_price": 0.09,
        "total": 450
      },
      {
        "description": "Kraft gift boxes, 2-color print",
        "quantity": 300,
        "unit_price": 2.35,
        "total": 705
      },
      {
        "description": "Menu boards, foam core, 18 by 24 in",
        "quantity": 6,
        "unit_price": 38.5,
        "total": 231
      }
    ],
    "subtotal": 2043.5,
    "shipping": 64,
    "taxes": [
      {
        "label": "Sales tax 8.25% on",
        "rate": 8.25,
        "base": 2043.5,
        "amount": 168.59
      }
    ],
    "tax_total": 168.59,
    "grand_total": 2276.09,
    "amount_paid": 500,
    "amount_due": 1776.09,
    "payment": {
      "terms": "Net 30",
      "account_number": "2093 8816 4417",
      "routing_number": "541030924"
    },
    "notes": "Thank you for your business. Questions about this invoice: billing@ridgebackprint.example"
  },
  "verification": {
    "status": "verified",
    "math_balanced": true,
    "coverage": {
      "values": 46,
      "checked": 46
    },
    "checks": [
      {
        "kind": "line_total",
        "path": "line_items[0].total",
        "status": "pass",
        "expected": 450,
        "actual": 450,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "line_items[1].total",
        "status": "pass",
        "expected": 705,
        "actual": 705,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "line_items[2].total",
        "status": "pass",
        "expected": 231,
        "actual": 231,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "line_items[3].total",
        "status": "pass",
        "expected": 275,
        "actual": 275,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "line_items[4].total",
        "status": "pass",
        "expected": 382.5,
        "actual": 382.5,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "taxes[0].amount",
        "status": "pass",
        "expected": 168.58875,
        "actual": 168.59,
        "difference": 0.00125,
        "message": "tax base x rate"
      }
    ]
  },
  "outputs": [
    {
      "name": "output.json",
      "bytes": 15390
    },
    {
      "name": "output.xlsx",
      "bytes": 10688
    },
    {
      "name": "output.csv",
      "bytes": 626
    },
    {
      "name": "quickbooks.csv",
      "bytes": 628
    },
    {
      "name": "xero.csv",
      "bytes": 1415
    }
  ],
  "warnings": []
}

Real response from . Trimmed to 3 of 5 line items and 6 of 12 checks, with bounding boxes, empty fields and file links left out.

Try it on this file

Invoice APIs side by side

List prices from each vendor's own pricing page, as of November 2026.

Invoice APIs side by side
APIPriceFree to startHow you pay
parserkit$0.02 a page, $0.01 past 5,000 pages a month50 pages, no cardPrepaid credit from $10 that never expires
Mindee$0.06 a page in credits, plus the platform fee14-day trialStarter is $29 a month plus credits, and credits expire
Nanonets$0.02 to $0.30 a block run, 4 to 6 blocks for a typical invoice$50 of credit$100 a month for 100 credits
Affinda ExtractPrice per page not publishedTwo-week trial with 200 creditsBilled per page at a quoted rate; annual commitment optional
Google Document AI$0.10 a document for the Invoice parser, up to 10 pages$300 Google Cloud credit for new customersA 1-page invoice costs $0.10

Sources: Mindee pricing, Nanonets pricing, Affinda Extract pricing, Google Document AI pricing

Checks

What gets checked on every page

  • Every row

    Quantity x unit price = line total, also tried with the printed discount and tax rate.

  • Subtotal and total

    The lines add up to the subtotal, and subtotal plus tax and shipping, minus discounts, equals the grand total.

  • Amount due

    Grand total minus amount paid equals amount due, so deposits and part payments reconcile.

  • Tax lines

    Base x rate = amount on each tax line, and the tax lines add up to tax_total.

  • Bank details

    IBAN check digits, the ABA routing check digit, and RF and Swiss QR payment references.

  • Tax IDs

    EU VAT numbers by country format, and US EINs against the prefixes the IRS issues.

How the totals are checked

Every row has to satisfy quantity x unit price = line total, and when it does not, the check tries again with the printed discount and tax rate. The line totals have to add up to the subtotal, and the subtotal plus every tax line and shipping, minus discounts, has to equal the grand total. Grand total minus amount paid has to equal the amount due, so an invoice with a deposit still balances. A sum passes within one minor unit of the currency: 0.01 for dollars or euros.

When a check fails, the fields it names are re-read from a 400 DPI crop, and a new reading is kept only if it is printed on the page and fixes the sum. Otherwise the failure stays, verification_status is discrepancy, and the check says what the other values give, what the document says and how far apart they are. The job.discrepancy_flagged event goes to your webhook.

QuickBooks and Xero bills

Every invoice job writes quickbooks.csv with the QuickBooks Online bill import columns: Bill no., Supplier, Bill Date, Due Date, Account, Line Description, Line Amount and Line Tax Code. QuickBooks Online imports up to 100 bills at a time, so a bigger file comes with an EXPORT_LIMIT warning. xero.csv carries the 26 Xero bill columns from ContactName to Currency. Both files write dates as DD/MM/YYYY, whatever the currency. Send up to 500 account codes and names in gl_accounts and every line comes back with gl_code, gl_name and gl_confidence. The export reference lists every column.

What it costs

Pay as you go is $0.02 a page, and $0.01 a page past 5,000 pages in a UTC month. 2,000 one-page invoices a month cost $40, or $34 on Pro, where $29 covers 1,500 pages and the other 500 cost $0.01 each. Failed jobs and exact duplicates cost nothing, credits never expire, and Google sign-in gives $1 of credit: 50 pages free, no card. Pricing has the rest.

What the other invoice APIs leave to you

Mindee's Starter is $29 a month plus credits at $0.06 a page, and the credits expire. Nanonets bills $0.02 to $0.30 a block run, with 4 to 6 blocks for a typical invoice, and Affinda quotes its per-page rate on request. Google's Invoice parser charges $0.10 for a 1-page invoice. AWS Textract returns label text and value text with a confidence score, and Azure Document Intelligence returns a confidence score per field that its own docs tell you to use to accept a value or flag it for human review.

parserkit hands you no score to triage. It re-adds every row, the subtotal, each tax line, the grand total and the amount due, re-reads a failing field from a 400 DPI crop, and writes QuickBooks and Xero bills, at $20 per 1,000 pages.

FAQ

Common questions

What happens when an invoice does not add up?

The job comes back with verification_status set to discrepancy and the failing check in verification.checks, with what the other values give and what the page says. The named fields are re-read from a 400 DPI crop first, and a new reading is kept only if it fixes the sum.

Does it read scanned and photographed invoices?

Yes. Scanned pages are read with OCR, and photos can be JPEG, PNG, WebP, HEIC or TIFF. Files go up to 25 MB as multipart, or 100 MB through file_url or /v1/uploads, with up to 250 pages a job.

Can it code lines to my chart of accounts?

Yes. Send up to 500 account code and name pairs in gl_accounts, and every line item comes back with gl_code, gl_name and gl_confidence.

Which bank details and tax IDs does it check?

IBAN check digits, US ABA routing numbers, EU VAT numbers by country format, US EINs, RF creditor references and Swiss QR references. A masked number is skipped, not failed.

How much does the invoice parser API cost?

$0.02 a page, and $0.01 past 5,000 pages in a UTC month, prepaid with no monthly minimum. Pro is $29 a month with 1,500 pages, then $0.01 a page. Google sign-in gives 50 pages free, no card.

How does it compare with Mindee, Google Document AI or Azure?

Mindee adds a $29 monthly Starter fee to credits that expire, Google's Invoice parser bills $0.10 for a 1-page invoice, and Azure returns a confidence score per field for you to accept or send to human review. parserkit re-adds every sum on the invoice, names the one that fails with both numbers, and costs $0.02 a page with credits that never expire.

Start free

Send us your worst scan

Your first $1 is free: 50 pages with every check and export, no card.

Crumpled receipts and a printed bank statement with one line marked in green highlighter, on a dark desk