Receipt OCR API that returns structured data
Photos from a phone, crumpled thermal paper, PDF receipts from online shops: Parsefox reads them and returns the merchant, date, total, tax, payment method and items in your schema. Values it cannot read with confidence are flagged, so expense flows do not book a guess.
/merchantSource: CAFÉ LINDEN
· page 1
The Receipt 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.
merchant- Shop or restaurant name.
date- Copied as printed.
currency, total- The final amount paid.
tax- Only when the receipt prints it.
payment_method- Card type or cash, without full card numbers.
items[]- Purchased items with quantity, price and amount.
Expense reports have their own template with one row per expense.
Two calls with a free test key
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=@cafe-linden-receipt.jpg | 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\": \"receipt\"}"Python and TypeScript versions are in the quickstart. Coding agents can follow /llms.txt.
Where plain OCR and quick prompts fall short
Each value is checked against the document. What cannot be confirmed is flagged, not filled in.
Faded thermal paper
Receipts are read from the image itself. A value that is hard to read is kept with a review flag, never silently trusted.
Handwritten tips and totals
Handwriting is read too, and marked for review when it is ambiguous.
Photos taken at an angle
Phone photos, rotated scans and screenshots work without preprocessing on your side.
No card numbers in your data
The template asks for the payment method only, so full card numbers stay out of your records.
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.
Receipts: what teams ask
Anything else? Write to support@parsefox.dev.
- What file types can I send?
- JPEG, PNG and TIFF images, PDF and screenshots. Send one receipt per document; for a batch, upload each file separately.
- Is this OCR?
- It goes further. OCR returns text; Parsefox returns the fields you ask for, checks each against the image and tells you where it came from.
- How much does a receipt cost?
- Usually a fraction of a cent to a few cents, depending on length. Test mode is free, and every live run shows an estimate first.
Other documents
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.