Trade Operations
invoice / extract
Extract structured data from an invoice PDF as JSON: invoice number, dates, currency, totals and VAT IDs. E-invoices (ZUGFeRD, Factur-X, UBL, CII) also support line items. Text-layer PDFs return partial fields. URL or base64. No OCR.
POST https://handel.halowerk.com/v1/invoice/extractInputs
| Field | Type | Required | Description |
|---|---|---|---|
| document_base64 | string | No | The invoice as base64: a PDF (ZUGFeRD or Factur-X, or a plain text-layer PDF) or EN 16931 XML (XRechnung, UBL or CII). At most 187 kB of file. Give this or url. |
| url | string | No | Public http(s) URL of the invoice PDF or XML, at most 187 kB. Fetched once with every redirect hop checked; private and local addresses are refused. Give this or document_base64. |
| include_lines | boolean | No | Return line_items. False returns header fields and amounts only. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"document_base64": {
"type": "string",
"minLength": 16,
"maxLength": 250000,
"description": "The invoice as base64: a PDF (ZUGFeRD or Factur-X, or a plain text-layer PDF) or EN 16931 XML (XRechnung, UBL or CII). At most 187 kB of file. Give this or url."
},
"url": {
"type": "string",
"minLength": 12,
"maxLength": 2000,
"pattern": "^https?://",
"description": "Public http(s) URL of the invoice PDF or XML, at most 187 kB. Fetched once with every redirect hop checked; private and local addresses are refused. Give this or document_base64."
},
"include_lines": {
"type": "boolean",
"default": true,
"description": "Return line_items. False returns header fields and amounts only."
}
}
}Published input example
{
"document_base64": "JVBERi0xLjcKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTmFtZXM8PC9FbWJlZGRlZEZpbGVzPDwvTmFtZXNbKGZhY3R1ci14LnhtbCk1IDAgUl0+Pj4+L0FGWzUgMCBSXT4+CmVuZG9iagoyIDAgb2JqCjw8L1R5cGUvUGFnZXMvS2lkc1szIDAgUl0vQ291bnQgMT4+CmVuZG9iagozIDAgb2JqCjw8L1R5cGUvUGFnZS9QYXJlbnQgMiAwIFIvTWVkaWFCb3hbMCAwIDU5NSA4NDJdL1Jlc291cmNlczw8L0ZvbnQ8PC9GMSA2IDAgUj4+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CBuIAowMDAwMDAwMTE5IDAwMDAwIG4gCjAwMDAwMDAxNzAgMDAwMDAgbiAKMDAwMDAwMDI4MiAwMDAwMCBuIAowMDAwMDAwNTQyIDAwMDAwIG4gCjAwMDAwMDA2NDQgMDAwMDAgbiAKMDAwMDAwMDcwNyAwMDAwMCBuIAp0cmFpbGVyCjw8L1NpemUgOC9Sb290IDEgMCBSPj4Kc3RhcnR4cmVmCjE4MjUKJSVFT0YK"
}Result & documentation
Show published result schema
{
"$ref": "https://handel.halowerk.com/v1/invoice/extract/schema#/outputSchema"
}Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.
More endpoints in this hub
- Trade Operations0.005 USDC
allergen check
POSThttps://handel.halowerk.com/v1/allergen-checkReturns what a product declares about allergens: the allergen tags, the trace warnings, the ingredients text in its original language, and the completeness of the record. The distinction it holds to throughout is between not declared and no
- Trade Operations0.01 USDC
bank line text
POSThttps://handel.halowerk.com/v1/bank-line-textReturn booking date, signed amount, currency and payment reference from one bank line. Local processing; no model, OCR or external transfer. Up to 6000 characters; labelled EN/DE lines. Item: SKU | quantity | unit (invoice: unit price). Mis
- Trade Operations0.005 USDC
document / accounts payable header
POSThttps://handel.halowerk.com/v1/baumarkt/document/accounts-payable-headerAccounts payable handoff: document ID, dates, supplier and payable facts. Reuses the existing invoice-extract motor. Technical source-only checks; no legal/EN16931 conformity certificate. Missing facts remain unknown. PDF text may be partia