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.

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
USB-C Hub79.99HDMI Cable24.98Total223.86
Invoice preview
VendorNorth HarborDue date2026-05-30Line itemsdetected
1Validate file
2OCR + layout
3Normalize fields
4Webhook delivery
Structured JSON responsecompleted
{
  "tax": "19.89",
  "date": "2026-05-11",
  "notes": "seasonal category credits may appear",
  "total": "223.86",
  "currency": "USD",
  "customer": "Marcus Hill",
  "discount": "10.00",
  "merchant": "North Harbor Electronics",
  "subtotal": "203.97",
  "tax_rate": "9.80",
  "line_items": [
    {
      "price": "79.99",
      "quantity": 1,
      "description": "USB-C Hub 8-in-1"
    },
    {
      "price": "12.49",
      "quantity": 2,
      "description": "HDMI Cable 2m"
    },
    {
      "price": "109.00",
      "quantity": 1,
      "description": "portable ssD 178"
    },
    {
      "price": "-10.00",
      "quantity": 1,
      "description": "Coupon TECH10"
    }
  ],
  "receipt_id": "NHE-0526-992A1",
  "document_id": "NHE-0526-992A1",
  "document_type": "receipt",
  "merchant_email": "billing@example.test",
  "payment_method": "VISA",
  "merchant_address": "geattle, WA, USA"
}
Fast
Extraction for most supported documents
Auto recovery
For difficult files
4 formats
PDF, JPG, PNG, CSV
Free tier
No credit card
One API call

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 in ~3s

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 API call

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.

Uploaded receipt preview
Totals & taxes
Structured fields
Line items

Response

{
  "tax": "19.89",
  "date": "2026-05-11",
  "notes": "seasonal category credits may appear",
  "total": "223.86",
  "currency": "USD",
  "customer": "Marcus Hill",
  "discount": "10.00",
  "merchant": "North Harbor Electronics",
  "subtotal": "203.97",
  "tax_rate": "9.80",
  "line_items": [
    {
      "price": "79.99",
      "quantity": 1,
      "description": "USB-C Hub 8-in-1"
    },
    {
      "price": "12.49",
      "quantity": 2,
      "description": "HDMI Cable 2m"
    },
    {
      "price": "109.00",
      "quantity": 1,
      "description": "portable ssD 178"
    },
    {
      "price": "-10.00",
      "quantity": 1,
      "description": "Coupon TECH10"
    }
  ],
  "receipt_id": "NHE-0526-992A1",
  "document_id": "NHE-0526-992A1",
  "document_type": "receipt",
  "merchant_email": "billing@example.test",
  "payment_method": "VISA",
  "merchant_address": "geattle, WA, USA"
}
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.

Under 5-second responses

Extraction typically completes in under 5 seconds for most supported documents.

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.