Use case
Build an Expense Tracking App on the DocuParse API
97% field-level accuracy
Tested on 500+ real receipts and invoices
The workflow
Capture
A user uploads a receipt photo or PDF from your app.
Extract
Send it to the extraction endpoint and get named fields back.
Categorize
Use the merchant and line items to auto-categorize the expense.
Store
Save the structured record to your database with the confidence score.
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
merchantdatecurrencysubtotaltaxtotalpayment_methodline_items[]confidenceTry 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.