Invoice data extraction API

Send an invoice as PDF, scan, photo, Word or Excel file and get the supplier, invoice number, dates, tax, totals and every line item as JSON. Each value carries the quote it came from, so your bookkeeping or ERP import only takes values that are actually on the invoice.

factuur-2026-00187.pdfPage 1
FACTUUR
Prinsengracht 412, 1016 HX Amsterdam
Factuurnummer
Factuurdatum
Klant
OmschrijvingAantalPrijsBedrag
Tonercartridge zwart264,50129,00
Bureaulamp LED139,9539,95
Subtotaal
BTW 21%
Totaal ()
Verified/invoice_number

Source: 2026-00187 · page 1

What you get

The Invoice template

A ready-made JSON Schema to start from. Add, rename or remove fields, describe where to find them, and save it as your own versioned schema.

invoice_number
Kept exactly as printed, including leading zeros.
invoice_date
Copied as printed; ambiguous formats are not guessed.
supplier, customer
The invoicing party and the party being invoiced.
currency
Only when the invoice states it.
subtotal, tax, total
Printed amounts, never recalculated.
items[]
Description, quantity, unit price and amount for every line, kept on their own row.

Credit notes, quotations and utility bills have their own templates.

Two calls with a free test key

shell · curl + jq
export PARSEFOX_BASE_URL="https://parsefox.dev"
export PARSEFOX_API_KEY="pf_test_..."   # from the console

DOC=$(curl -s "$PARSEFOX_BASE_URL/v1/documents" \
  -H "Authorization: Bearer $PARSEFOX_API_KEY" \
  -F file=@factuur-2026-00187.pdf | jq -r .document_id)

curl -s "$PARSEFOX_BASE_URL/v1/extractions?wait=60" \
  -H "Authorization: Bearer $PARSEFOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"document_id\": \"$DOC\", \"template_id\": \"invoice\"}"

Python and TypeScript versions are in the quickstart. Coding agents can follow /llms.txt.

The hard parts

Where plain OCR and quick prompts fall short

Each value is checked against the document. What cannot be confirmed is flagged, not filled in.

  • Every supplier has a different layout

    No templates to draw per supplier. The schema describes the fields; Parsefox finds them wherever the supplier put them.

  • Line items that wrap or span pages

    Rows stay together across line breaks and page breaks, so a quantity never ends up on the neighbouring item.

  • Numbers in local formats

    1.234,56 and 1,234.56 both become 1234.56, and the quote keeps the original text for checking.

  • Totals that should not be invented

    If the tax amount is not printed, the field stays empty and is flagged instead of being calculated from the rate.

Test mode is free. Live runs are paid from prepaid credit by actual usage, typically a few cents per document, with an estimate before every run. See pricing and how we measure accuracy.

Questions

Invoices: what teams ask

Anything else? Write to support@parsefox.dev.

Which languages work?
One schema works for invoices in English, Dutch, German, French and many other languages. Field names stay as you defined them; values are copied as printed.
Can I add my own fields, such as a cost centre or PO number?
Yes. Save the Invoice template as your own schema and add fields with a short description of where to find them. Every saved version is pinned, so your integration never changes underneath you.
How do I handle values flagged for review?
The result lists them in unresolved_fields with the reason. Book the verified values automatically and send only the flagged ones to a person.

Other documents

Free pilot

We set it up on your documents

We are taking ten companies into a free pilot. Send a few sample documents and what you need from them; we tune the schema, run them and show you the results, accuracy and cost per document.

Apply for the pilot