Receipt & Invoice Extraction API

Receipt and Invoice Parsing API for Developers, SaaS Teams, and Automation Workflows

Extract structured JSON from receipts, invoices, PDFs, and scanned documents. Built for developers first, then extended for SaaS products, bookkeeping workflows, internal dashboards, and business automation. Results delivered instantly to your webhook.

Start with 20 documents/month and full API access. No credit card required.

docuparseapi.com/api/v1/extract
Input documentsPDF JPG PNG CSV
Receipt preview
HP Desktop i5559.80Ryzen Threadripper4,200.00Total6,860.45
Invoice preview
VendorFitzpatrick and SonsInvoice no12847181Line itemsdetected
1Validate file
2OCR + layout
3Normalize fields
4Webhook delivery
Structured JSON responsecompleted
{
  "success": true,
  "document_id": "doc_9f3c1b7a4e",
  "status": "completed",
  "data": {
    "document_type": "invoice",
    "invoice_id": "12847181",
    "date": "2012-03-03",
    "currency": "USD",
    "merchant": "Fitzpatrick and Sons",
    "merchant_address": "00480 Cook Cove, Spencerport, UT 12036",
    "customer": "Duncan PLC",
    "subtotal": "6236.77",
    "tax_rate": "10.00",
    "tax": "623.68",
    "discount": "0.00",
    "total": "6860.45",
    "line_items": [
      {
        "description": "HP Desktop Computer PC Core i5 16GB 2TB HD 256GB SSD 22\" LCD Windows 10",
        "quantity": 4,
        "price": "139.95"
      },
      {
        "description": "CUSTOM BUILT AMD RYZEN THREADRIPPER GAMING COMPUTER, 32 GB RAM",
        "quantity": 3,
        "price": "1400.00"
      },
      {
        "description": "Fast Dell Optiplex Desktop PC Computer Dual Core 3.4Ghz 8GB 1TB Win 10 Pro WIFI",
        "quantity": 1,
        "price": "217.00"
      },
      {
        "description": "Dell Optiplex 790 Computer i7 @ 3.40 Ghz Quad Core 250GB 4GB Working",
        "quantity": 3,
        "price": "159.99"
      },
      {
        "description": "Vintage Microsolutions Pentium 133mhz Desktop Tower PC Windows 95 5.25 Floppy",
        "quantity": 2,
        "price": "390.00"
      }
    ]
  }
}
Auto recovery
For difficult files
4 formats
PDF, JPG, PNG, CSV
Free tier
No credit card
One endpoint

Document in. Structured JSON out.

No OCR pipelines. No template setup. No prompt engineering.

Input

Upload document

POST /api/v1/extract
Authorization: Bearer dex_...
Content-Type: multipart/form-data
file=@receipt.pdf
PDFJPGPNG
Extraction

Fields extracted automatically

Merchant
Total / subtotal / tax
Date / due date
Receipt ID / invoice ID
Payment method
Line items
Structured fields
Output

Structured JSON response

{
  "merchant": "Office Depot",
  "total": 45.50,
  "tax": 3.50,
  "date": "2026-04-26",
  "currency": "USD",
  "receipt_id": "R-10492",
  "payment_method": "Card",
  "line_items": [...]
}
Simple by design

How it works

Three steps from document to structured data

STEP 01

Upload your document

Send a receipt or invoice as PDF, JPG, PNG, or CSV using a simple multipart POST request.

STEP 02

Extraction runs automatically

The API validates your file, processes it through the extraction pipeline, and normalizes the output.

STEP 03

Receive clean JSON

Get structured data including merchant, date, totals, line items, and fallback status.

One endpoint

Send a file. Get structured data.

No parsing, no layout detection, no regex chains. Just send your file and receive clean JSON with every financial field extracted and normalized.

Sample invoice processed by DocuParse
Totals & taxes
Structured fields
Line items

Response

{
  "success": true,
  "document_id": "doc_9f3c1b7a4e",
  "status": "completed",
  "data": {
    "document_type": "invoice",
    "invoice_id": "12847181",
    "date": "2012-03-03",
    "currency": "USD",
    "merchant": "Fitzpatrick and Sons",
    "merchant_address": "00480 Cook Cove, Spencerport, UT 12036",
    "customer": "Duncan PLC",
    "subtotal": "6236.77",
    "tax_rate": "10.00",
    "tax": "623.68",
    "discount": "0.00",
    "total": "6860.45",
    "line_items": [
      {
        "description": "HP Desktop Computer PC Core i5 16GB 2TB HD 256GB SSD 22\" LCD Windows 10",
        "quantity": 4,
        "price": "139.95"
      },
      {
        "description": "CUSTOM BUILT AMD RYZEN THREADRIPPER GAMING COMPUTER, 32 GB RAM",
        "quantity": 3,
        "price": "1400.00"
      },
      {
        "description": "Fast Dell Optiplex Desktop PC Computer Dual Core 3.4Ghz 8GB 1TB Win 10 Pro WIFI",
        "quantity": 1,
        "price": "217.00"
      },
      {
        "description": "Dell Optiplex 790 Computer i7 @ 3.40 Ghz Quad Core 250GB 4GB Working",
        "quantity": 3,
        "price": "159.99"
      },
      {
        "description": "Vintage Microsolutions Pentium 133mhz Desktop Tower PC Windows 95 5.25 Floppy",
        "quantity": 2,
        "price": "390.00"
      }
    ]
  }
}
Built for teams

Built for developers and product teams

S

SaaS Founders

Building expense, accounting, or bookkeeping tools that need document ingestion.

D

Developers

Skip OCR pipelines. Get extraction as an API call in your existing stack.

F

Finance Teams

Automate receipt processing and invoice data entry for your team.

A

Agencies

Process batches of business documents for clients without custom infrastructure.

Feature-rich

Everything you need from day one

Secure API keys

Keys are hashed and stored securely. Raw key shown only once.

Upload a File & See It Live →

Financial dashboard

See total spend, vendors, categories, and trends from your extracted documents.

Webhook delivery

Results delivered instantly to your webhook.

Copy-paste snippets

cURL, Python, Node.js, and Next.js examples in the docs.

Upload a File & See It Live →

Consistent JSON

Normalized output for key fields like merchant, totals, tax, dates, and line items.

Clear error codes

Typed error responses so your error handling is predictable.

Upload a File & See It Live →

Start extracting in minutes

Start with 20 documents/month and full API access. No credit card required.