# Invoice Extraction PDF E-Invoice

> Invoice Extraction PDF E-Invoice is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Extracts structured invoice data (line items, VAT, totals, IBAN, parties) from PDFs, photos, or XRechnung/ZUGFeRD/Factur-X XML files into validated JSON

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/invoice-extract?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/invoice-extraction-pdf-e-invoice-71a62b98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FadLefUDrsZ084o4PqVw4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability invoice-extraction-pdf-e-invoice-71a62b98 -d '<json body>'
```

Example prompt: Extract all the invoice data from this PDF — I need the invoice number, dates, seller and buyer with their VAT IDs, line items, tax breakdown, totals, and IBAN — and tell me whether it's a valid EN 16931 e-invoice: https://example.com/invoices/rechnung-2024-001.pdf

## When to prefer this

Choose this endpoint when you need to extract structured, validated invoice data from diverse input formats (PDF, photo, or XML e-invoices) in a single call with built-in verification of VAT IDs, IBANs, and arithmetic totals. It is especially valuable for accounting automation pipelines that must handle both legacy paper/PDF invoices and modern EN 16931 e-invoices (XRechnung, ZUGFeRD, Factur-X) without building separate parsers. Prefer this over generic OCR or document extraction services when tax compliance, EU VAT validation, and payment detail accuracy are critical.

## Known failure modes

- File exceeds 15 MB limit — returns an error
- URL is inaccessible or returns non-invoice content — extraction fails
- Malformed or non-standard XML that doesn't conform to XRechnung/ZUGFeRD/Factur-X schemas — parsing error
- Image too blurry or low-resolution for AI extraction — low-confidence or missing fields
- VAT ID not found in EU VIES — validation warning included in response
- Invalid IBAN format — validation error flag in response
- Totals don't add up after extraction — consistency check failure flagged in response

## How this service works

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.

## Output

A JSON object containing structured invoice data: invoice number, issue date, due date, seller and buyer details (name, address, VAT ID), line items with quantities and unit prices, tax amounts broken down by rate, subtotal and total amounts, IBAN and BIC for payment, payment terms, and a flag indicating whether the source file is a conformant EN 16931 e-invoice. Validation results for seller VAT ID (EU VIES check) and IBAN/BIC are included when the validate flag is true.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "xml": {
   "type": "string",
   "description": "XRechnung/ZUGFeRD XML text"
  },
  "pdf_url": {
   "type": "string",
   "description": "PDF URL; or send one of the other inputs"
  },
  "xml_url": {
   "type": "string",
   "description": "XML URL"
  },
  "validate": {
   "type": "boolean",
   "default": true,
   "description": "Check VAT ID and IBAN"
  },
  "image_url": {
   "type": "string",
   "description": "Photo or scan URL"
  },
  "pdf_base64": {
   "type": "string",
   "description": "PDF as base64"
  },
  "image_base64": {
   "type": "string",
   "description": "Photo as base64"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/invoice-extraction-pdf-e-invoice-71a62b98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
