Extract invoice line items, totals & dates into JSON with one API call

Automate bookkeeping. DocStruct's invoice data extraction API turns messy invoice text into clean structured JSON/CSV — vendor, line items, totals, dates. Free tier, no credit card.

Try live demo View docs

Why automate invoice data entry

Bookkeepers and e-commerce sellers lose hours manually retyping invoice line items, totals, and due dates into spreadsheets and accounting software. An invoice data extraction API reads the document and returns structured JSON you can insert into QuickBooks, Xero, your database, or a CSV for free. No templates, no training, no human review.

How it works

Send the raw invoice text (extracted from the PDF or copy/pasted) to the invoice extraction endpoint. In a few seconds you get back a clean object: vendor name and address, invoice number, issue and due dates, currency, every line item with quantity/unit price/line total, subtotal, tax, discount, and total. Handle batches, emails, and supplier attachments the same way.

Sample response

{
  "ok": true,
  "data": { ... }
}

Get started

It's free for up to 20 extractions a day with no credit card. Send a POST request to /v1/extract with the invoice text and type "invoice". Parse the JSON straight into your stack.

Quick start

POST https://docstruct.marwannaili-23-07.workers.dev/v1/extract
Content-Type: application/json

{"text": "<paste invoice/statement/receipt/contract text>", "type": "invoice", "output": "json"}
→ {"ok": true, "data": { ... structured fields ... }}