Use case
Automate Bookkeeping with the DocuParse API
97% field-level accuracy
Tested on 500+ real receipts and invoices
The workflow
Receive
Invoices and receipts arrive by email, upload, or storage bucket.
Extract
Call the endpoint to get vendor, totals, tax, and line items.
Reconcile
Totals are checked (subtotal + tax = total) before they hit your books.
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_reviewTry 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
- Read — the document is converted to text with OCR (for images) or parsed directly (for digital PDFs).
- Parse — deterministic rules pull out each field and line item and normalize dates and amounts.
- Check — the result is scored for confidence: totals are reconciled (subtotal + tax = total), required fields are verified, and formats are validated.
- 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.