Skip to main content
This recipe uses the object field type with nested_fields to capture tabular line-item data.

Workflow fields

We recommend creating this workflow in the anyformat platform where you can test with sample invoices and iterate on field descriptions. Copy the workflow ID to use with the API.

End-to-end

Three-step flow: create the workflow, run a document, poll the results endpoint until it returns 200.
For production integrations, use webhooks instead of polling — they deliver results immediately and don’t consume your rate limit.

Example response

The full envelope is documented in Response formats. The top-level keys are collection_id, verification_url, parse, classifications, splits, and extractions. Each scalar field follows the ExtractedField shape (value, value_override, verification_status, confidence, evidence).

Tips

  • Write specific field descriptions. “Total amount due including tax” extracts better than just “total”.
  • If invoices span multiple currencies, add the enum_options for all currencies you expect.
  • Multi-page invoices are handled automatically; no special configuration needed.

Next steps

Field types

Object, enum, and other complex field types

Response formats

Full schema of every section in the results envelope