← All projects

Python · FastAPI · OCR

Invoice & Document Extraction Service

Upload invoices, receipts or forms and get structured JSON back. Large batches go through a queue and results are delivered by webhook.

PythonFastAPIOCRLLMCeleryS3
extract.example.com/documents/20931Sample dataMeridian Supplies LtdWholesale stationeryINVOICEINV-20931Billed toAcme RetailAccounts payableDate08 Feb 2026Net 30DescriptionQtyPriceTotalA4 paper, 5 reams20$18$360Ink cartridges12$24$288Archive boxes9$12$108Subtotal$756.00Total$756.00Extracted fieldsJSONVendorMeridian Supplies Ltd98%Invoice numberINV-2093199%Invoice date2026-02-0897%Due dateNet 30 → 2026-03-1081%ReviewTax$126.0093%Total$756.0099%
Invoice with extracted fields highlighted
extract.example.com/batches/118Sample dataBatchesReviewWebhooksAPI keysSettingsBatch #118240 documents · completedAllNeeds reviewDeliveredSearch fileFileVendorTotalConfidenceStatusinv_20931.pdfMeridian Supplies$756.0097%Deliveredinv_20932.pdfOrbit Freight$1,240.…99%Deliveredscan_0417.jpgPinecrest Foods$318.2078%Reviewinv_20934.pdfLumen Energy$402.0096%Deliveredreceipt_88.pngCorner Cafe$24.8084%Reviewinv_20936.pdfBlueRiver IT$2,150.…98%Delivered
Batch results with confidence scores
extract.example.com/admin/pipelineSample dataQueued extraction pipelineBatches scale by adding workers1Upload APIFastAPI + S32QueueCelery workers22 waiting3OCRtext and layout4Extractionrules + LLM fields5Review queuelow-confidence items5 to review6WebhookJSON to your systemDelivered
Queued extraction pipeline

Illustrative screens with sample data. Client data is confidential, so none is shown.

Overview

What it is

A document-processing API. Upload invoices, receipts or forms and receive structured data with confidence scores. Large batches are queued and delivered by webhook.

The problem

Why it was needed

Finance teams were keying invoice data by hand. Generic OCR returned raw text, with no structure or way to know what was uncertain.

StructuredJSON fields instead of raw text
Confidencelow-certainty fields flagged for review
Batchqueue and webhook delivery

Features

What We Built

Upload API

Single files or batches by API or dashboard.

OCR and extraction

Text recognition plus LLM-assisted field extraction.

Confidence scores

Per-field scores, with a review queue for uncertain ones.

Webhooks

Idempotent delivery with retries.

Exports

CSV or direct push to accounting tools.

Review UI

Correct a field and the fix is stored for later tuning.

Architecture

How It Fits Together

  1. Upload APIFastAPI + S3
  2. QueueCelery workers
  3. OCRtext and layout
  4. Extractionfields via rules + LLM
  5. Review queuelow-confidence items
  6. Webhook / exportstructured JSON, CSV

Every document moves through the same queued steps, so large batches scale by adding workers.

Roadmap

From Idea to Launch

A typical delivery roadmap for a project of this kind.

  1. 1

    Document study

    3-5 days
    • Collect sample documents and layouts
    • Define the target fields
    • Agree accuracy targets
  2. 2

    Extraction core

    2 weeks
    • OCR and layout parsing
    • Field extraction and validation
    • Confidence scoring
  3. 3

    API and queue

    1-2 weeks
    • FastAPI endpoints and auth
    • Celery batches
    • Webhooks and idempotency
  4. 4

    Review and export

    1 week
    • Review UI for low-confidence fields
    • CSV and accounting integration
    • Feedback storage
  5. 5

    Launch

    1 week
    • Accuracy benchmark on real documents
    • Monitoring
    • Handover

Want something like this?

Tell us what it should do and we'll come back with a stack, a scope and a timeline.