Extract header fields
Reads the supplier, total and due date. Each value links to its place on the page.
Draw the workflow in a visual editor. Define the fields to extract, the rules to check and the path each document takes. Your application sends a file and gets JSON back.
The first node extracts the supplier, total and due date. A filter sends invoices over 10,000 EUR to a second node that extracts the line items. Every other invoice is returned straight away.
Reads the supplier, total and due date. Each value links to its place on the page.
Checks the total. Invoices over 10,000 EUR go on to the next node.
Reads every row of the item table.
| item | qty | price |
|---|---|---|
| Concrete C25/30 | 18 | 980.00 |
| Delivery | 1 | 690.00 |
| Sum of rows | 18,330.00 EUR | |
The response holds every value the workflow extracted. The same body can be sent to a webhook.
POST /v1/workflows/incoming-invoices/runs{
"workflow": "incoming-invoices",
"supplier": "Novák Stavby s.r.o.",
"total": { "amount": 18330.00, "currency": "EUR" },
"due_date": "2024-05-12",
"line_items": [
{ "item": "Concrete", "qty": 18, "price": 980.00 },
{ "item": "Delivery", "qty": 1, "price": 690.00 }
]
}Why choose Pactus instead of a language model API?
You send a document and get structured data back. We handle the models, configuration, output format and updates.
Easily organize your data extraction pipeline in a visual workflow editor.
Play around with your workflow on your own documents and see the result before you write any code. When you change the schema, you see the effect right away.
You pay with prepaid credits, and every test run shows how many credits a document uses. You know what a thousand documents will cost before you process them.
We optimize the data extraction for cost, accuracy and adherence to your JSON schema. We use our own OCR models to read even poor scans and handwriting reliably.
Every extracted value comes with its page number and position in the document. You can check any value against the original document.
You pay a fixed price per extracted page. The price is adjusted by the number of fields and by your choice of language model.
Here's how we calculate the price per page.
A 2-page invoice goes through OCR and three values are extracted, "customer", "date" and "price".
* Price with GPT-5.6-luna as the extraction model.
For companies whose documents have to stay on their own infrastructure.
Sign up, upload a few example documents and see Pactus in action.