Invoice parsing API
Invoices in, clean JSON out. The arithmetic is checked for you.
Send Quickinvoice a PDF, a scan or a phone photo of an invoice. You get the seller, buyer, number, dates, totals and every line item, each with a confidence and a status. Fields the checks can't confirm are flagged for a person instead of slipping through.
Beta. English-language invoices. No large language model: your documents never go to a third party.
- seller_name
- Acme Supplies Ltd
- ok
- invoice_number
- INV-20931
- ok
- invoice_date
- 2026-10-14
- ok
- subtotal
- 173.00checked: lines add up
- ok
- tax
- 34.60checked: subtotal + tax = total
- ok
- total
- 207.60 GBPchecked: subtotal + tax = total
- ok
Live demo
Don't take our word for it. Upload an invoice.
Use your own invoice or one of the samples. You see exactly what the API returns: each field with its confidence, the arithmetic checks, and what would go to a person.
No invoice to hand? Try one of ours:
See the scanned sampleNo key needed. The demo reads up to 5 pages a day per visitor. Files are read in memory and not stored.
How it works
Read, label, check.
No large language model and no outside AI service. A small layout model runs on our own server, so documents stay with us and answers don't drift.
Read the page
PDFs with a text layer are read directly, in well under a second. Scans and photos go through OCR, and tilted pages are straightened so table rows stay rows.
- PDF text layer, or OCR
- words + positions
Label every word
A layout model trained on invoices looks at each word and where it sits on the page, and tags it: seller, buyer, invoice number, dates, subtotal, tax, total, or a line-item column.
- LiLT layout model
- 13 field types
Check the numbers
Quantity times price must equal each line amount, the lines must add up to the subtotal, and subtotal plus tax must equal the total. Anything unconfirmed or unsure is marked review.
- "check": "passed"
- "status": "ok" | "review"
Accuracy
97.1% of fields right on 100 test invoices.
None of these documents were used in training. We publish the weak spots too.
| Test documents | Docs | Fields | Correct |
|---|---|---|---|
| Scan-damaged invoices (tilt, blur, JPEG), with line items | 30 | 1,282 | 98.7% |
| FATURA2 invoices (50 layouts) | 35 | 140 | 97.9% |
| SROIE scanned shop receipts | 35 | 105 | 77.1% |
| All 100 invoices | 100 | 1,527 | 97.1% |
Scored field by field: dates as calendar dates, amounts to the cent, names ignoring case and punctuation. The FATURA2 test pages use the same 50 layouts the model was trained on, so that row flatters. Shop receipts are the weakest case today.
Code
One POST per invoice.
Send the file as multipart form data with your key. The response is the same JSON whether the invoice was a PDF or a photo.
curl -X POST "https://quickinvoice-api.msrisktec.co.in/v1/invoice" \
-H "Authorization: Bearer inv_..." \
-F "file=@invoice.pdf"Response
{
"fields": {
"seller_name": { "value": "Acme Supplies Ltd", "confidence": 1.0, "page": 1,
"box": [84, 47, 214, 61], "check": "none", "status": "ok" },
"invoice_number": { "value": "INV-20931", "confidence": 1.0, "status": "ok", ... },
"invoice_date": { "value": "2026-10-14", ... },
"due_date": { "value": "2026-11-13", ... },
"buyer_name": { "value": "Globex Trading LLP", ... },
"subtotal": { "value": 173.0, "check": "passed", "status": "ok", ... },
"tax": { "value": 34.6, "check": "passed", "status": "ok", ... },
"total": { "value": 207.6, "check": "passed", "status": "ok", ... },
"currency": { "value": "GBP", "confidence": 1.0, "status": "ok" }
},
"line_items": [
{ "item_code": null, "description": "Copper pipe 15mm", "quantity": 10.0,
"unit_price": 12.5, "amount": 125.0, "confidence": 1.0, "page": 1,
"check": "passed", "status": "ok" },
...
],
"checks": { "lines_match_subtotal": true, "subtotal_plus_tax_equals_total": true },
"needs_review": [],
"pages": 1,
"read_from": ["text"],
"ms": 675
}Pricing
Pay by the page.
Three plans. During the beta, paid plans are by request.
Free
$0
100 pages/month
For trying it in a prototype. Stops at 100.
Request a free keyStarter
$19/month
2,000 pages
By request during the beta.
Request StarterPro
$49/month
10,000 pages
By request during the beta.
Request Pro
- What counts
- One page of a PDF, or one image. A 3-page PDF is 3 pages.
- Going over
- Free stops at 100 pages. Paid plans keep working; extra pages by arrangement.
- During the beta
- Paid plans are by request. Keys are issued manually.
Beta access
Request an API key
Tell us what the invoices are and roughly how many. During the beta every key is issued by hand, so this form is the whole sign-up.
- Free: $0, 100 pages/month.
- Starter and Pro are by request while the beta runs.
- English-language invoices and receipts.