{
  "x402Version": 2,
  "id": 79798,
  "slug": "79798",
  "resource": "https://agent-evidence-extractor.defcronyke.workers.dev/v1/ubl-invoice-batch-extract",
  "description": "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.",
  "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": [
      "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"
      }
    }
  },
  "tags": [
    "invoice",
    "e-invoice",
    "electronic-invoice",
    "invoice-batch",
    "batch-invoice-extraction",
    "accounts-payable",
    "ERP",
    "UBL",
    "CII",
    "Factur-X",
    "ZUGFeRD",
    "invoice-arithmetic",
    "no-model"
  ],
  "sourceHost": "agent-evidence-extractor.defcronyke.workers.dev",
  "lastUpdated": "2026-11-15T07:34:52.656Z",
  "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-15T07:34:52.656Z"
  },
  "exampleResponse": {
    "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"
  }
}