Invoice data extraction for accounting agents: PDF, photo or XRechnung / ZUGFeRD / Fact…
Invoice data extraction for accounting agents: PDF, photo or XRechnung / ZUGFeRD / Factur-X XML to JSON (number, dates, seller and buyer with VAT ID, line items, tax per rate, totals, IBAN, payment terms). E-invoices are read exactly from the embedded XML, wi…
by agentsvc.io · discovered, not yet claimed by its owner · updated 2026-10-11
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Invoice data extraction for accounting agents: PDF, photo or XRechnung / ZUGFeRD / Factur-X XML to JSON (number, dates, seller and buyer with VAT ID, line items, tax per rate, totals, IBAN, payment terms). E-invoices are read exactly from the embedded XML, without AI; plain PDFs and photos by Claude Haiku 5.5. Every result is checked: totals add up, seller VAT ID in EU VIES, IBAN and BIC. Says whether the file is a real EN 16931 e-invoice. Up to 15 MB.
Tags: invoice-parsing · e-invoice · xrechnung · zugferd · accounting · bazaar · builder-code
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-11
{
"pdf_url": "https://agentsvc.io/samples/zugferd-invoice.pdf"
}{
"data": {
"buyer": {
"city": "Bremen",
"country": "DE",
"email": "[email protected]",
"name": "Bauträger Nord GmbH & Co. KG",
"postal_code": "28195",
"street": "Am Hafen 5",
"tax_number": null,
"vat_id": "DE987654321"
},
"buyer_reference": "RE-2026-0001",
"checks": {
"arithmetic": {
"issues": [],
"ok": true
},
"iban": {
"bank": "Deutsche Kreditbank Berlin",
"bic_matches": true,
"checked": true,
"reason": null,
"valid": true
},
"seller_vat_id": {
"checked": true,
"registered_name": null,
"source": "EU VIES",
"valid": false
}
},
"currency": "EUR",
"delivery_date": "2026-10-08",
"due_date": "2026-10-24",
"e_invoice": {
"format": "ZUGFeRD / Factur-X EN 16931",
"is_e_invoice": true,
"note": "Structured e-invoice (EN 16931). Amounts were read exactly from the XML, no A...",
"specification": "urn:cen.eu:en16931:2017"
},
"extracted_at": "2026-10-10T19:59:48.740Z",
"invoice_number": "RE-2026-0001",
"issue_date": "2026-10-10",
"lines": [
{
"description": "Malerarbeiten Treppenhaus: Wände und Decken, 2x gestrichen",
"net_amount": 725,
"quantity": 12.5,
"tax_category": "S",
"tax_rate": 19,
"unit": "HUR",
"unit_price": 58
}
],
"model": null,
"notes": [
"Vielen Dank für Ihren Auftrag & die gute Zusammenarbeit <3"
],
"order_reference": null,
"payment": {
"account_name": "Malerbetrieb Muster GmbH",
"bic": "BYLADEM1001",
"iban": "DE02120300000000202051",
"means": "SEPA credit transfer",
"reference": "Rechnung RE-2026-0001",
"terms": "Zahlbar innerhalb von 14 Tagen ohne Abzug."
},
"seller": {
"city": "Hamburg",
"country": "DE",
"email": "[email protected]",
"name": "Malerbetrieb Muster GmbH",
"postal_code": "20095",
"street": "Hauptstraße 12",
"tax_number": "22/815/08150",
"vat_id": "DE123456789"
},
"service_period": null,
"source": "pdf_embedded_xml",
"tax_breakdown": [
{
"amount": 166.24,
"base": 874.97,
"category": "S",
"exemption_reason": null,
"rate": 19
}
],
"totals": {
"gross": 1067.21,
"net": 899.27,
"payable": 1067.21,
"prepaid": null,
"tax": 167.94
},
"type": "invoice",
"type_code": "380",
"warnings": [
"Seller VAT ID is not valid in VIES"
]
},
"success": true
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/35727.jsonfor the price and payment options. - Pay. Call
GET https://agentsvc.io/api/v1/proxy/invoice-extract. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, Polygon, Arbitrum One, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.02 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana, Polygon, Arbitrum One
- Demand
- 2 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.02 | 0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.02 | 5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg | 300s |
| exact | Polygon eip155:137 | USDC | $0.02 | 0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27 | 300s |
| exact | Arbitrum One eip155:42161 | USDC | $0.02 | 0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "20000",
"amountUsd": 0.02,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"data": {
"properties": {
"buyer": {
"type": "object"
},
"buyer_reference": {
"type": "string"
},
"checks": {
"type": "object"
},
"currency": {
"type": "string"
},
"delivery_date": {
"type": "string"
},
"due_date": {
"type": "string"
},
"e_invoice": {
"type": "object"
},
"extracted_at": {
"type": "string"
},
"invoice_number": {
"type": "string"
},
"issue_date": {
"type": "string"
},
"lines": {
"type": "array"
},
"model": {},
"notes": {
"type": "array"
},
"order_reference": {},
"payment": {
"type": "object"
},
"seller": {
"type": "object"
},
"service_period": {},
"source": {
"type": "string"
},
"tax_breakdown": {
"type": "array"
},
"totals": {
"type": "object"
},
"type": {
"type": "string"
},
"type_code": {
"type": "string"
},
"warnings": {
"type": "array"
}
},
"required": [
"source",
"e_invoice",
"invoice_number",
"seller",
"lines",
"totals",
"checks",
"warnings"
],
"type": "object"
},
"success": {
"type": "boolean"
}
},
"required": [
"success",
"data"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"data": {
"buyer": {},
"buyer_reference": "string",
"checks": {},
"currency": "string",
"delivery_date": "string",
"due_date": "string",
"e_invoice": {},
"extracted_at": "string",
"invoice_number": "string",
"issue_date": "string",
"lines": [
"value"
],
"model": null,
"notes": [
"value"
],
"order_reference": null,
"payment": {},
"seller": {},
"service_period": null,
"source": "string",
"tax_breakdown": [
"value"
],
"totals": {},
"type": "string",
"type_code": "string",
"warnings": [
"value"
]
},
"success": true
},
"type": "string"
}Examples
curl "https://agentsvc.io/api/v1/proxy/invoice-extract"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://agentsvc.io/api/v1/proxy/invoice-extract");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://agentsvc.io/api/v1/proxy/invoice-extract")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- agentsvc.io
- Endpoint
- https://agentsvc.io/api/v1/proxy/invoice-extract
- Machine-readable
/resources/35727.json