Invoice parsing

Convert Invoices to JSON

Upload an invoice PDF and receive a structured JSON object with vendor, invoice ID, due date, total, tax, currency, and line items. One API call. No custom parser needed.

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

JSON structure

Invoice data as structured JSON

Every field your accounting or automation workflow needs — returned as named JSON properties

merchant
Vendor or company name
invoice_id
Invoice reference number
document_id
Document identifier
date
Invoice issue date
due_date
Payment due date
total
Total amount due
subtotal
Pre-tax subtotal
tax
Tax amount
currency
ISO 3-letter code
payment_method
Payment type if stated
merchant_email
Vendor email if present
merchant_address
Vendor address if present
line_items
Services or products billed

Invoice file → JSON object

Send the invoice. Receive structured data. No regex, no layout detection, no custom parser to maintain.

Before — invoice file

EXAMPLE SOFTWARE LLC
invoice@example.com
Invoice #: INV-2026-1042
Invoice Date: 05/10/2026
Due Date: 06/10/2026
Monthly software subscription x1
Subtotal: $500.00
Tax (10%): $50.00
Total Due: $550.00

After — JSON response

{
  "success": true,
  "document_type": "invoice",
  "merchant": "Example Software LLC",
  "invoice_id": "INV-2026-1042",
  "document_id": "INV-2026-1042",
  "date": "2026-05-10",
  "due_date": "2026-06-10",
  "subtotal": "500.00",
  "tax": "50.00",
  "total": "550.00",
  "currency": "USD",
  "line_items": [
    {
      "description": "Monthly software subscription",
      "quantity": 1,
      "amount": "500.00"
    }
  ],
  "extraction_source": "rule"
}

Request

curl -X POST https://docuparseapi.com/api/v1/extract \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@invoice.pdf"

Response

{
  "success": true,
  "document_type": "invoice",
  "merchant": "Example Software LLC",
  "invoice_id": "INV-2026-1042",
  "document_id": "INV-2026-1042",
  "date": "2026-05-10",
  "due_date": "2026-06-10",
  "subtotal": "500.00",
  "tax": "50.00",
  "total": "550.00",
  "currency": "USD",
  "line_items": [
    {
      "description": "Monthly software subscription",
      "quantity": 1,
      "amount": "500.00"
    }
  ],
  "extraction_source": "rule"
}

Frequently asked questions

What invoice formats does DocuParse API accept?

DocuParse API accepts PDF, JPG, PNG, and CSV files. Both digital invoices and scanned paper invoices are supported.

What JSON fields are returned for an invoice?

The response includes merchant, invoice_id, document_id, date, due_date, total, subtotal, tax, currency, payment_method, merchant_email, merchant_address, line_items, and extraction_source.

Does it work with scanned invoice images?

Yes. DocuParse handles scanned invoice images automatically. The extraction returns the same named fields regardless of scan quality.

Are line items returned for every invoice?

Line items are extracted when they are present on the invoice. The line_items array includes description, quantity, and amount for each line entry found.

Can I use the extracted JSON in my accounting workflow?

Yes. The structured JSON fields — invoice ID, vendor, due date, total, tax, and line items — map directly to the data your accounting software or automation workflow needs.

How do I authenticate requests?

Use an API key in the Authorization header as a Bearer token. Generate your API key from the DocuParse dashboard after signing up.

Start converting invoices to JSON

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