Extract invoice data to structured JSON.
Send a PDF or image invoice and get back vendor, invoice number, dates, line items, subtotal, tax, total, and currency as typed JSON.
Example
curl https://api.getparsed.com/v1/extract \
-H "Authorization: Bearer sk_live_..." \
-F "doc_type=invoice" \
-F "file=@invoice.pdf"
{
"doc_type": "invoice",
"pages": 1,
"data": {
"vendor": "Northwind Supplies LLC",
"invoice_number": "INV-2026-0042",
"date": "2026-11-15",
"due_date": "2026-12-15",
"line_items": [
{ "description": "Widget A", "quantity": 10, "unit_price": 12.50, "amount": 125.00 },
{ "description": "Widget B", "quantity": 4, "unit_price": 30.00, "amount": 120.00 }
],
"subtotal": 245.00,
"tax": 19.60,
"total": 264.60,
"currency": "USD"
},
"fields": {
"total": { "confidence": 0.99, "needs_review": false, "source": "text" },
"vendor": { "confidence": 0.94, "needs_review": false, "source": "vision" }
}
}
What comes back
Invoice number, invoice date, and due date normalized to ISO 8601 where readable.
Every row on the invoice, including partial rows where quantity or unit price is missing.
Numeric types, not strings. Currency as ISO 4217 code.
Every field has a confidence score and a needs_review flag. Auto-accept the high-confidence fields and route the rest.
How it handles layout variety
Invoices arrive in every layout and every language. The pipeline does not use templates. It runs a text extraction pass to read exact characters, then a vision pass so the model can resolve layout ambiguities, then verifies that line item amounts sum to the stated subtotal. If they do not, the totals field gets needs_review: true.
Accuracy
100% on clean digital PDFs, 93% on real-world mixed documents, measured on a public eval set. Numbers update as the pipeline improves.
No retention
Invoice files are processed in memory and discarded. We never write them to disk and never use them for training.
Custom output shape
Pass a JSON Schema as the schema parameter to control which fields you get back. Useful when you have an existing data model and do not want to remap.
curl https://api.getparsed.com/v1/extract \
-H "Authorization: Bearer sk_live_..." \
-F "doc_type=invoice" \
-F "file=@invoice.pdf" \
-F 'schema={"type":"object","properties":{"total":{"type":"number"},"vendor":{"type":"string"}}}'
Pricing
Free tier: 100 pages per month. After that, usage-based pricing by page. See the pricing table.