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.
Invoice data as structured JSON
Every field your accounting or automation workflow needs — returned as named JSON properties
merchantinvoice_iddocument_iddatedue_datetotalsubtotaltaxcurrencypayment_methodmerchant_emailmerchant_addressline_itemsInvoice file → JSON object
Send the invoice. Receive structured data. No regex, no layout detection, no custom parser to maintain.
Before — invoice file
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.
Related pages
Invoice Parser API
Full guide to the invoice parser API with all supported fields.
Learn morePDF to JSON API
Convert business PDFs into structured JSON data.
Learn moreDocument Extraction API
Overview of the full document extraction API.
Learn moreReceipt to JSON
Convert receipt files into structured JSON.
Learn moreStart converting invoices to JSON
Start with 20 documents/month and full API access. No credit card required.