Skip to content
QuickinvoiceBeta

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.

POST /v1/invoice  invoice.pdf675 ms
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
+ 3 line items, each with quantity × price = amount checked

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 sample

No key needed. The demo reads up to 5 pages a day per visitor. Files are read in memory and not stored.

The fields, line items and checks will show here.

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.

  1. 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
  2. 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
  3. 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.

Field accuracy on the test set
Test documentsDocsFieldsCorrect
Scan-damaged invoices (tilt, blur, JPEG), with line items301,28298.7%
FATURA2 invoices (50 layouts)3514097.9%
SROIE scanned shop receipts3510577.1%
All 100 invoices1001,52797.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.

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.

Paid plans are by request during the beta.