Agent-friendly raw XML input for deterministic UBL/CII electronic invoice extraction
Agent-friendly raw XML input for deterministic UBL/CII electronic invoice extraction. Send one required xml string for $0.005 USDC. Supports Factur-X/ZUGFeRD XML; returns up to 100 line items, taxes, totals and limited arithmetic checks. Not EN 16931 complian…
by Agent Evidence Utility · verified provider · updated 2026-11-15
What it does
Agent-friendly raw XML input for deterministic UBL/CII electronic invoice extraction. Send one required xml string for $0.005 USDC. Supports Factur-X/ZUGFeRD XML; returns up to 100 line items, taxes, totals and limited arithmetic checks. Not EN 16931 compliance validation; no model call or source retention.
Tags: invoice · electronic-invoice · electronic-invoice-xml · e-invoice · xml-to-json · xml-invoice-extraction · ubl · cii · factur-x · zugferd · accounts-payable · erp-ingestion · structured-data · no-model
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/79702.jsonfor the price and payment options. - Pay. Call
GET https://agent-evidence-extractor.defcronyke.workers.dev/v1/e-invoice-xml-to-json. 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, Arbitrum One, Polygon, 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.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Arbitrum One, Polygon
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0xc4e484e62133dadac5be498ae3f311f5b8428cce | 300s |
| exact | Arbitrum One eip155:42161 | USDC | $0.005 | 0xc4e484e62133dadac5be498ae3f311f5b8428cce | 300s |
| exact | Polygon eip155:137 | USDC | $0.005 | 0xc4e484e62133dadac5be498ae3f311f5b8428cce | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xc4e484e62133dadac5be498ae3f311f5b8428cce",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0xc4e484e62133dadac5be498ae3f311f5b8428cce",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0xc4e484e62133dadac5be498ae3f311f5b8428cce",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"type": "object",
"required": [
"format",
"ubl_version",
"invoice_number",
"issue_date",
"due_date",
"currency",
"supplier",
"customer",
"line_items",
"line_items_truncated",
"tax_breakdown",
"totals",
"arithmetic_checks",
"evidence_paths",
"note"
],
"properties": {
"format": {
"type": "string"
},
"ubl_version": {
"type": [
"string",
"null"
]
},
"invoice_number": {
"type": [
"string",
"null"
]
},
"issue_date": {
"type": [
"string",
"null"
]
},
"due_date": {
"type": [
"string",
"null"
]
},
"currency": {
"type": [
"string",
"null"
]
},
"supplier": {
"type": "object",
"required": [
"name",
"vat_id",
"vat_scheme"
],
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"vat_id": {
"type": [
"string",
"null"
]
},
"vat_scheme": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"customer": {
"type": "object",
"required": [
"name",
"vat_id",
"vat_scheme"
],
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"vat_id": {
"type": [
"string",
"null"
]
},
"vat_scheme": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"description",
"quantity",
"unit_code",
"unit_price",
"line_extension_amount",
"currency",
"vat_percent"
],
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"quantity": {
"type": [
"string",
"null"
]
},
"unit_code": {
"type": [
"string",
"null"
]
},
"unit_price": {
"type": [
"string",
"null"
]
},
"line_extension_amount": {
"type": [
"string",
"null"
]
},
"currency": {
"type": [
"string",
"null"
]
},
"vat_percent": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"line_items_truncated": {
"type": "boolean"
},
"tax_breakdown": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"totals": {
"type": "object",
"additionalProperties": true
},
"arithmetic_checks": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"status",
"difference"
],
"properties": {
"name": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"not_checked",
"matches_within_0.02",
"differs"
]
},
"difference": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"evidence_paths": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"note": {
"type": "string"
}
},
"additionalProperties": false
}Example shape — generated from the schema, not a captured live response
{
"format": "string",
"ubl_version": "string",
"invoice_number": "string",
"issue_date": "string",
"due_date": "string",
"currency": "string",
"supplier": {
"name": "string",
"vat_id": "string",
"vat_scheme": "string"
},
"customer": {
"name": "string",
"vat_id": "string",
"vat_scheme": "string"
},
"line_items": [
{
"id": "string",
"description": "string",
"quantity": "string",
"unit_code": "string",
"unit_price": "string",
"line_extension_amount": "string",
"currency": "string",
"vat_percent": "string"
}
],
"line_items_truncated": true,
"tax_breakdown": [
{}
],
"totals": {},
"arithmetic_checks": [
{
"name": "string",
"status": "not_checked",
"difference": "string"
}
],
"evidence_paths": {},
"note": "string"
}Examples
curl "https://agent-evidence-extractor.defcronyke.workers.dev/v1/e-invoice-xml-to-json"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://agent-evidence-extractor.defcronyke.workers.dev/v1/e-invoice-xml-to-json");
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://agent-evidence-extractor.defcronyke.workers.dev/v1/e-invoice-xml-to-json")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- Agent Evidence Utility
- Endpoint
- https://agent-evidence-extractor.defcronyke.workers.dev/v1/e-invoice-xml-to-json
- Machine-readable
/resources/79702.json