Use case

Automate Bookkeeping with the DocuParse API

Turn incoming invoices and receipts into clean ledger entries — vendor, date, totals, tax, and line items as JSON, without manual data entry. Rule-based parsing reads every field, then an AI model checks the result and corrects what it finds wrong before you get it.
97%

97% field-level accuracy

Tested on 500+ real receipts and invoices

Every result also carries confidence and needs_review.
How we test →

The workflow

1

Receive

Invoices and receipts arrive by email, upload, or storage bucket.

2

Extract

Call the endpoint to get vendor, totals, tax, and line items.

3

Reconcile

Totals are checked (subtotal + tax = total) before they hit your books.

4

Post

Create the ledger entry and flag low-confidence documents for review.

Code

Submit the file, then fetch the JSON.

Every sample submits the file, then fetches the result until its status is completed or failed. On Starter and Pro, a webhook can deliver it instead.

# 1. Submit the document
curl -X POST https://docuparseapi.com/api/v1/extract \
  -H "Authorization: Bearer $DOCUPARSE_API_KEY" \
  -F "file=@document.pdf"
# → {"success": true, "document_id": "<id>", "status": "queued"}

# 2. Fetch the result (repeat until "status" is "completed" or "failed")
curl https://docuparseapi.com/api/v1/documents/<id> \
  -H "Authorization: Bearer $DOCUPARSE_API_KEY"

Fields you get

merchantinvoice_iddatecurrencysubtotaltaxtotalline_items[]confidenceneeds_review

Try it on your own document

Upload an invoice or receipt and see the structured JSON. No signup needed.

↑

Drop your receipt or invoice here, or click to choose

PDF · JPG · PNG · up to 10 pages · one document

Or try a sample: sample receipt · sample invoice

Sign up to use the API, bulk uploads and the spend dashboard.

How the extraction works
  1. Read — the document is converted to text with OCR (for images) or parsed directly (for digital PDFs).
  2. Parse — deterministic rules pull out each field and line item and normalize dates and amounts.
  3. Check — the result is scored for confidence: totals are reconciled (subtotal + tax = total), required fields are verified, and formats are validated.
  4. Review — an AI model then reviews every document and corrects the fields it finds wrong, looking hardest at the ones the rules were unsure of.

Every response includes a confidence score and a needs_review flag, so you always know which results to trust and which to double-check.

Try it on your own document.

20 documents a month free, with full API access. No credit card. Webhooks on Starter and Pro.

Try it on your document — no sign-up