{
  "x402Version": 2,
  "id": 79701,
  "slug": "79701",
  "resource": "https://agent-evidence-extractor.defcronyke.workers.dev/v1/ubl-invoice-extract",
  "description": "Extract structured JSON from electronic invoice XML for accounts payable or ERP ingestion. Accepts caller-supplied UBL Invoice 2.x or CII CrossIndustryInvoice XML, including Factur-X/ZUGFeRD XML. Send xml text or UTF-8 XML encoded as standard padded Base64 in xml_base64. Returns selected fields, up to 100 line items, taxes and limited arithmetic checks for $0.005 USDC. Not EN 16931 compliance validation; no model call, URL fetch or source retention.",
  "type": "http",
  "accepts": [
    {
      "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
    }
  ],
  "outputSchema": {
    "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
  },
  "tags": [
    "invoice",
    "electronic-invoice",
    "electronic-invoice-xml",
    "e-invoice",
    "e-invoice-xml-extraction",
    "xml-invoice-extraction",
    "xml-to-json",
    "ubl",
    "cii",
    "factur-x",
    "zugferd",
    "xml",
    "invoice-extraction",
    "line-items",
    "vat",
    "accounts-payable",
    "erp-ingestion",
    "structured-data",
    "no-model"
  ],
  "sourceHost": "agent-evidence-extractor.defcronyke.workers.dev",
  "lastUpdated": "2026-11-15T04:58:32.967Z",
  "quality": {},
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "agent-evidence-extractor.defcronyke.workers.dev",
    "manifest_name": "Agent Evidence Utility",
    "source": "submitted",
    "source_manifest_url": "https://agent-evidence-extractor.defcronyke.workers.dev/.well-known/x402",
    "submitted_at": "2026-11-15T04:58:32.967Z"
  },
  "exampleResponse": {
    "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"
  }
}