Extract 2 to 5 UBL Invoice 2.x or CII electronic invoices in one $0.005 accounts-payabl…
Extract 2 to 5 UBL Invoice 2.x or CII electronic invoices in one $0.005 accounts-payable batch. Send documents as an array of raw XML strings. Returns selected parties and postal addresses, line items, tax subtotals, totals, payment instructions when present,…
by Agent Evidence Utility · verified provider · updated 2026-11-15
What it does
Extract 2 to 5 UBL Invoice 2.x or CII electronic invoices in one $0.005 accounts-payable batch. Send documents as an array of raw XML strings. Returns selected parties and postal addresses, line items, tax subtotals, totals, payment instructions when present, and limited arithmetic checks for each invoice. Combined XML maximum 524,288 characters; deterministic, no model call or source retention. Not EN 16931 compliance validation.
Tags: invoice · e-invoice · electronic-invoice · invoice-batch · batch-invoice-extraction · accounts-payable · ERP · UBL · CII · Factur-X · ZUGFeRD · invoice-arithmetic · 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/79798.jsonfor the price and payment options. - Pay. Call
GET https://agent-evidence-extractor.defcronyke.workers.dev/v1/ubl-invoice-batch-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, 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": [
"document_count",
"line_item_count",
"documents",
"note"
],
"properties": {
"document_count": {
"type": "integer"
},
"line_item_count": {
"type": "integer"
},
"documents": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"invoice"
],
"properties": {
"index": {
"type": "integer"
},
"invoice": {
"type": "object",
"required": [
"format",
"ubl_version",
"invoice_number",
"issue_date",
"due_date",
"currency",
"supplier",
"customer",
"line_items",
"line_items_truncated",
"tax_breakdown",
"totals",
"payment_details",
"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",
"address"
],
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"vat_id": {
"type": [
"string",
"null"
]
},
"vat_scheme": {
"type": [
"string",
"null"
]
},
"address": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
}
}
},
"additionalProperties": false
},
"customer": {
"type": "object",
"required": [
"name",
"vat_id",
"vat_scheme",
"address"
],
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"vat_id": {
"type": [
"string",
"null"
]
},
"vat_scheme": {
"type": [
"string",
"null"
]
},
"address": {
"type": "object",
"additionalProperties": {
"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
},
"payment_details": {
"type": "array",
"items": {
"type": "object",
"required": [
"means_code",
"payment_id",
"account_id",
"account_name",
"institution_id"
],
"properties": {
"means_code": {
"type": [
"string",
"null"
]
},
"payment_id": {
"type": [
"string",
"null"
]
},
"account_id": {
"type": [
"string",
"null"
]
},
"account_name": {
"type": [
"string",
"null"
]
},
"institution_id": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"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
}
}
}
},
"note": {
"type": "string"
}
}
}Example shape — generated from the schema, not a captured live response
{
"document_count": 0,
"line_item_count": 0,
"documents": [
{
"index": 0,
"invoice": {
"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",
"address": {}
},
"customer": {
"name": "string",
"vat_id": "string",
"vat_scheme": "string",
"address": {}
},
"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": {},
"payment_details": [
{
"means_code": "string",
"payment_id": "string",
"account_id": "string",
"account_name": "string",
"institution_id": "string"
}
],
"arithmetic_checks": [
{
"name": "string",
"status": "not_checked",
"difference": "string"
}
],
"evidence_paths": {},
"note": "string"
}
}
],
"note": "string"
}Examples
curl "https://agent-evidence-extractor.defcronyke.workers.dev/v1/ubl-invoice-batch-extract"
# -> 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/ubl-invoice-batch-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://agent-evidence-extractor.defcronyke.workers.dev/v1/ubl-invoice-batch-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
- Agent Evidence Utility
- Endpoint
- https://agent-evidence-extractor.defcronyke.workers.dev/v1/ubl-invoice-batch-extract
- Machine-readable
/resources/79798.json