Invoice Extraction API
Invoice PDF extract to structured fields as JSON: invoice number, dates, currency, amounts (net, tax, gross, due), seller and buyer VAT IDs and line items (description, quantity, unit price, net amount, tax rate). Accepts a ZUGFeRD or Factur-X PDF, XRechnung, UBL or CII XML, or a text-layer PDF, as document_base64 or public URL. E-invoices give every field; plain PDFs give number, dates, totals and labelled VAT IDs, no line items (complete=false). No OCR, no model; scans rejected unpaid.
Part of handel.halowerk.com · 480 endpoints · See the whole service
The wallet the 402 directs payment to. Its full payment record is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service; most of the catalog is unregistered.
Recent payments · which agents last used it
Every indexed settlement paid to this service’s wallet, newest first. The index does not record which endpoint a payment was for, so if this wallet serves more than one endpoint, the rows include payments for the others. Paged up to the newest 5,000; the full history is on the merchant page.
Live 402 challenge
Captured by the enrichment pass, not read just now. Prices can change. Always read the 402 the endpoint answers with.
{
"docs": "https://handel.halowerk.com/llms.txt",
"name": "invoice_extract_fields",
"error": "payment_required",
"accepts": [
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"asset": "USDC",
"version": "2",
"eip712Domain": {
"name": "USD Coin",
"chainId": 8453,
"version": "2",
"verifyingContract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"network_name": "Base Mainnet",
"assetTransferMethod": "eip3009"
},
"payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E",
"amount": "10000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
}
],
"pricing": "https://handel.halowerk.com/pricing",
"resource": {
"url": "https://handel.halowerk.com/v1/invoice/extract",
"tags": [
"invoice-extraction",
"invoice-pdf",
"invoice-parser",
"vat-id",
"line-items"
],
"mimeType": "application/json",
"description": "Invoice PDF extract to structured fields as JSON: invoice number, dates, currency, amounts (net, tax, gross, due), seller and buyer VAT IDs and line items (description, quantity, unit price, net amount, tax rate). Accepts a ZUGFeRD or Factur-X PDF, XRechnung, UBL or CII XML, or a text-layer PDF, as document_base64 or public URL. E-invoices give every field; plain PDFs give number, dates, totals and labelled VAT IDs, no line items (complete=false). No OCR, no model; scans rejected unpaid.",
"serviceName": "Invoice Extraction API",
"outputSchema": {
"$ref": "https://handel.halowerk.com/v1/invoice/extract/schema#/outputSchema"
},
"outputExampleUrl": "https://handel.halowerk.com/v1/invoice/extract/schema#/outputExample"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"body": {
"document_base64": "JVBERi0xLjcKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTmFtZXM8PC9FbWJlZGRlZEZpbGVzPDwvTmFtZXNbKGZhY3R1ci14LnhtbCk1IDAgUl0+Pj4+L0FGWzUgMCBSXT4+CmVuZG9iagoyIDAgb2JqCjw8L1R5cGUvUGFnZXMvS2lkc1szIDAgUl0vQ291bnQgMT4+CmVuZG9iagozIDAgb2JqCjw8L1R5cGUvUGFnZS9QYXJlbnQgMiAwIFIvTWVkaWFCb3hbMCAwIDU5NSA4NDJdL1Jlc291cmNlczw8L0ZvbnQ8PC9GMSA2IDAgUj4+Pj4vQ29udGVudHMgNCAwIFI+PgplbmRvYmoKNCAwIG9iago8PC9MZW5ndGggMTkzL0ZpbHRlci9GbGF0ZURlY29kZT4+c3RyZWFtCnjaRcxLD8FAFIbhv/LtkChzhmrZFXVJGot22KODxjAyZlz+vSphdZLz5P2GAu0JgQhiB58hCBlEDupCJKjPzzddbCXmi5XHGe95RGHQQO0v47WVA3zNI7/CTColzQALbfK7NEfM9NUW5z2mp82siVUkMI6Jd7p+Lwj7VTJ0z3cRWakKaZC4U3kksihNPsEk/QWMqoTwwEhpl+PwnSfOWoxVyEvM3OWijS3ZmSso+KHQdq1QrrWIIV6m72csXhA8R04KZW5kc3RyZWFtCmVuZG9iago1IDAgb2JqCjw8L1R5cGUvRmlsZXNwZWMvRihmYWN0dXI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/dOoB/zOKAjCs6VM9KDcl/SKCRJXpPsYqyq8s4s456l2mnfpb+9l7w/1sgqQcYHdLHn6nzVvp/05e/f+cWFvqf+/d39b79586t7dP/k9IMgrKwqwGDSC+xqRFTpqxnj4C/gP616/IK1vyfN9sbPU1RwxEmvPYchxa7iX4/5W59nruN22tjyQ6/xjEeb+hlzFZQpgK9QqilHcyY7744nBd5K926ow9vyTzQLWEW6IC/mcjq00eMVVp+Oe/TSw0b3rXf3Vvr7pdI92hfWOnHoahzKr4XYgsLtwp/EgE/wBazlYPDSldsfNQ8bO0HW3+KN03S12dLXcjxFWosZpWrGVOtth5ZzQOR5Y5mA0kpzjWUzPmsnjYtthZfDkmBuROJCxeoeZAdBuX7rbV8Ex1mgwDkkapcbA6+4nTVH+iSbonGSK2xXwxFTTWJ8oPnhO8U6eU0o+nSaR1I1hXR0Np30xB6Vpn6ePbPLc1BlV4VvDgswKTNGpNpuoF3ehlA5VzVEYD2BhUYo9uTMogdvUIEv50b5sUgJPv8tqSXQataJz9kzp1P0v0v8XmcpbsQplbmRzdHJlYW0KZW5kb2JqCnhyZWYKMCA4CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAwOSAwMDAwMCBuIAowMDAwMDAwMTE5IDAwMDAwIG4gCjAwMDAwMDAxNzAgMDAwMDAgbiAKMDAwMDAwMDI4MiAwMDAwMCBuIAowMDAwMDAwNTQyIDAwMDAwIG4gCjAwMDAwMDA2NDQgMDAwMDAgbiAKMDAwMDAwMDcwNyAwMDAwMCBuIAp0cmFpbGVyCjw8L1NpemUgOC9Sb290IDEgMCBSPj4Kc3RhcnR4cmVmCjE4MjUKJSVFT0YK"
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"buyer": {
"city": "Lyon",
"name": "Atelier Lumiere SARL",
"vat_id": "FR12345678901",
"tax_number": null,
"country_code": "FR"
},
"seller": {
"city": "Bremen",
"name": "Nordwerk Hosting GmbH",
"vat_id": "DE123456789",
"tax_number": null,
"country_code": "DE"
},
"source": {
"kind": "pdf_embedded_xml",
"method": "literal EN 16931 mapping of the embedded or supplied XML; no model, no OCR",
"syntax": "CII",
"profile_id": "urn:cen.eu:en16931:2017",
"document_url": null,
"document_bytes": 2046,
"document_sha256": "28cef6ceabd80bb2a3c5373466c70959c536db559c5b2403dbf4e6fdb35d3fac"
},
"amounts": {
"prepaid": null,
"net_total": 290,
"tax_total": 55.1,
"amount_due": 345.1,
"gross_total": 345.1
},
"vat_ids": [
"DE123456789",
"FR12345678901"
],
"complete": true,
"currency": "EUR",
"due_date": "2026-12-15",
"line_items": [
{
"line_id": "1",
"quantity": 1,
"unit_code": "MON",
"net_amount": 120,
"unit_price": 120,
"description": "Cloud hosting, November 2026",
"tax_rate_percent": 19
},
{
"line_id": "2",
"quantity": 2,
"unit_code": "HUR",
"net_amount": 170,
"unit_price": 85,
"description": "Support hours",
"tax_rate_percent": 19
}
],
"consistency": {
"note": "The extracted structure can be posted straight to POST /v1/invoice-audit for the full recomputation including discounts and formal checks.",
"basis": "whole cents; a difference of one cent per tax group is reported as rounding, not as a deviation",
"consistent": true,
"deviations": [],
"rounding_differences": []
},
"due_date_raw": null,
"invoice_date": "2026-11-15",
"tax_breakdown": [
{
"tax_amount": 55.1,
"rate_percent": 19,
"category_code": "S",
"taxable_amount": 290
}
],
"invoice_number": "INV-2026-1187",
"missing_fields": [],
"vat_id_evidence": null,
"invoice_date_raw": null
},
"schemaUrl": "https://handel.halowerk.com/v1/invoice/extract/schema#/outputSchema"
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method",
"bodyType",
"body"
],
"properties": {
"body": {
"type": "object",
"properties": {
"url": {
"type": "string",
"pattern": "^https?://",
"maxLength": 2000,
"minLength": 12,
"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."
},
"document_base64": {
"type": "string",
"maxLength": 250000,
"minLength": 16,
"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."
}
},
"additionalProperties": false
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type",
"example"
],
"properties": {
"type": {
"const": "json"
},
"example": {
"type": "object",
"properties": {
"buyer": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"name": {
"type": "string"
},
"vat_id": {
"type": "string"
},
"tax_number": {
"type": [
"string",
"null"
]
},
"country_code": {
"type": "string"
}
}
},
"seller": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"name": {
"type": "string"
},
"vat_id": {
"type": "string"
},
"tax_number": {
"type": [
"string",
"null"
]
},
"country_code": {
"type": "string"
}
}
},
"source": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"method": {
"type": "string"
},
"syntax": {
"type": "string"
},
"profile_id": {
"type": "string"
},
"document_url": {
"type": [
"string",
"null"
]
},
"document_bytes": {
"type": "number"
},
"document_sha256": {
"type": "string"
}
}
},
"amounts": {
"type": "object",
"properties": {
"prepaid": {
"type": [
"string",
"null"
]
},
"net_total": {
"type": "number"
},
"tax_total": {
"type": "number"
},
"amount_due": {
"type": "number"
},
"gross_total": {
"type": "number"
}
}
},
"vat_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"complete": {
"type": "boolean"
},
"currency": {
"type": "string"
},
"due_date": {
"type": "string"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"line_id": {
"type": "string"
},
"quantity": {
"type": "number"
},
"unit_code": {
"type": "string"
},
"net_amount": {
"type": "number"
},
"unit_price": {
"type": "number"
},
"description": {
"type": "string"
},
"tax_rate_percent": {
"type": "number"
}
}
}
},
"consistency": {
"type": "object",
"properties": {
"note": {
"type": "string"
},
"basis": {
"type": "string"
},
"consistent": {
"type": "boolean"
},
"deviations": {
"type": "array",
"items": {}
},
"rounding_differences": {
"type": "array",
"items": {}
}
}
},
"due_date_raw": {
"type": [
"string",
"null"
]
},
"invoice_date": {
"type": "string"
},
"tax_breakdown": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tax_amount": {
"type": "number"
},
"rate_percent": {
"type": "number"
},
"category_code": {
"type": "string"
},
"taxable_amount": {
"type": "number"
}
}
}
},
"invoice_number": {
"type": "string"
},
"missing_fields": {
"type": "array",
"items": {}
},
"vat_id_evidence": {
"type": [
"string",
"null"
]
},
"invoice_date_raw": {
"type": [
"string",
"null"
]
}
}
}
},
"additionalProperties": true
}
}
}
}
},
"price_usdc": "0.01",
"description": "Invoice PDF extract to structured fields as JSON: invoice number, dates, currency, amounts (net, tax, gross, due), seller and buyer VAT IDs and line items (description, quantity, unit price, net amount, tax rate). Accepts a ZUGFeRD or Factur-X PDF, XRechnung, UBL or CII XML, or a text-layer PDF, as document_base64 or public URL. E-invoices give every field; plain PDFs give number, dates, totals and labelled VAT IDs, no line items (complete=false). No OCR, no model; scans rejected unpaid.",
"inputSchema": {
"type": "object",
"properties": {
"url": {
"type": "string",
"pattern": "^https?://",
"maxLength": 2000,
"minLength": 12,
"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."
},
"document_base64": {
"type": "string",
"maxLength": 250000,
"minLength": 16,
"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."
}
},
"additionalProperties": false
},
"price_model": "per_call",
"x402Version": 2,
"instructions": "Sign the accepted terms with an x402 client and repeat the request with the payment header.",
"payment_header": "PAYMENT-SIGNATURE",
"capability_request": {
"url": "https://bedarf.halowerk.com/capabilities/request",
"cost": "free",
"method": "POST",
"description": "Missing a capability, or does the scope not fit? Report the need here - no payment required. Similar reports are bundled; the response returns an id you can check back on.",
"body_example": {
"max_price": 0.01,
"description": "what exactly is needed",
"requested_capability": "short label"
}
}
}Accepts
The payment requirements as published to the catalog. Read the live 402 before paying: a price here is a claim, not a quote.
Pay 0.01 USDC on Base to 0x2880…C4E5E. The signed payment is good for 5 minutes.
- Paid to
- 0x2880…C4E5E
- USD Coin contract
- 0x8335…02913
- Payment window
- 5 minutes
- As published
- 10000 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"asset": "USDC",
"version": "2",
"eip712Domain": {
"name": "USD Coin",
"chainId": 8453,
"version": "2",
"verifyingContract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"network_name": "Base Mainnet",
"assetTransferMethod": "eip3009"
},
"payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E",
"amount": "10000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"buyer": {
"city": "Lyon",
"name": "Atelier Lumiere SARL",
"vat_id": "FR12345678901",
"tax_number": null,
"country_code": "FR"
},
"seller": {
"city": "Bremen",
"name": "Nordwerk Hosting GmbH",
"vat_id": "DE123456789",
"tax_number": null,
"country_code": "DE"
},
"source": {
"kind": "pdf_embedded_xml",
"method": "literal EN 16931 mapping of the embedded or supplied XML; no model, no OCR",
"syntax": "CII",
"profile_id": "urn:cen.eu:en16931:2017",
"document_url": null,
"document_bytes": 2046,
"document_sha256": "28cef6ceabd80bb2a3c5373466c70959c536db559c5b2403dbf4e6fdb35d3fac"
},
"amounts": {
"prepaid": null,
"net_total": 290,
"tax_total": 55.1,
"amount_due": 345.1,
"gross_total": 345.1
},
"vat_ids": [
"DE123456789",
"FR12345678901"
],
"complete": true,
"currency": "EUR",
"due_date": "2026-12-15",
"line_items": [
{
"line_id": "1",
"quantity": 1,
"unit_code": "MON",
"net_amount": 120,
"unit_price": 120,
"description": "Cloud hosting, November 2026",
"tax_rate_percent": 19
},
{
"line_id": "2",
"quantity": 2,
"unit_code": "HUR",
"net_amount": 170,
"unit_price": 85,
"description": "Support hours",
"tax_rate_percent": 19
}
],
"consistency": {
"note": "The extracted structure can be posted straight to POST /v1/invoice-audit for the full recomputation including discounts and formal checks.",
"basis": "whole cents; a difference of one cent per tax group is reported as rounding, not as a deviation",
"consistent": true,
"deviations": [],
"rounding_differences": []
},
"due_date_raw": null,
"invoice_date": "2026-11-15",
"tax_breakdown": [
{
"tax_amount": 55.1,
"rate_percent": 19,
"category_code": "S",
"taxable_amount": 290
}
],
"invoice_number": "INV-2026-1187",
"missing_fields": [],
"vat_id_evidence": null,
"invoice_date_raw": null
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method",
"bodyType"
],
"properties": {
"type": {
"const": "http"
},
"method": {
"const": "POST"
},
"bodyType": {
"const": "json"
}
},
"additionalProperties": true
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "json"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
}
}Provenance
- Seen in the source catalog
- 2026-11-30 10:46Z
- Last indexed by Roundhouse
- 2026-12-02 18:40Z
- Last enriched (probe, favicon, geo)
- 2026-12-01 16:15Z
- x402 version
- 2
- Max timeout
- 300s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent: it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
No per-endpoint history for this service yet, so this is payments indexed to its PROVIDER's wallet over 30 days. Verified volume counts only settlements relayed by a known x402 facilitator.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service Invoice Extraction API and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=Invoice%20Extraction%20API' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://handel.halowerk.com/v1/invoice/extract, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.