Invoice data extraction API: how to extract invoices to JSON
Описание и применение
API AnyFormat преобразует PDF‑файлы счетов в структурированный JSON, включая заголовочные поля, позиции, коэффициенты уверенности и доказательства источника, упрощая интеграцию с ERP.
Задача
Accounts payable teams need structured invoice data (header fields, line items, confidence scores, evidence) to post to ERP systems, but OCR scripts often return unstructured text or invented values.
Результат
The API returns structured JSON with header fields, line items, confidence scores, and evidence, enabling automated ERP integration and reducing manual review.
Рабочий процесс
- Create a workflow with a parse node and an extract node, supplying a JSON schema for invoice fields.
- Upload an invoice file to the workflow and start a run, receiving a run_id and status.
- Poll the run endpoint until status is "processed" and retrieve the extracted fields from the results JSON.
Доказательства
An invoice data extraction API takes an invoice as a PDF or image and returns structured JSON: header fields such as invoice number, vendor, dates and totals, plus the line items, each value with a confidence score and, in the better ones, the place on the page it was read from.
The API has three steps. Create a workflow with a schema, upload an invoice against it, and fetch the result.
- Дата записи: 2026-10-14T13:41:07.631Z