Api Endpoint

Invoice Extraction PDF E-Invoice

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.

Open interactive test console

Offering

Provider
agentsvc.io
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Financial Analysis
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agentsvc.io/api/v1/proxy/invoice-extract
MIME type
application/json
First seen
2026-10-16T01:51:20.002Z
Last seen
Tags
invoice-ocr, receipt-parsing, factur-x, accounts-payable, document-extraction

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.02 USDC
Atomic price: 20000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 3
0.02 USDC
Atomic price: 20000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 4
0.02 USDC
Atomic price: 20000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "payTo": "5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "20000",
    "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "20000",
    "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27"
  }
]

Observed health

Status
Healthy
Latest latency
309 ms
Average latency
604 ms
HTTP status
204
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "pdf_url": {
          "type": "string",
          "description": "PDF URL; or send one of the other inputs"
        },
        "pdf_base64": {
          "type": "string",
          "description": "PDF as base64"
        },
        "xml": {
          "type": "string",
          "description": "XRechnung/ZUGFeRD XML text"
        },
        "xml_url": {
          "type": "string",
          "description": "XML URL"
        },
        "image_url": {
          "type": "string",
          "description": "Photo or scan URL"
        },
        "image_base64": {
          "type": "string",
          "description": "Photo as base64"
        },
        "validate": {
          "type": "boolean",
          "default": true,
          "description": "Check VAT ID and IBAN"
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "image_base64": {
              "description": "Photo as base64",
              "type": "string"
            },
            "image_url": {
              "description": "Photo or scan URL",
              "type": "string"
            },
            "pdf_base64": {
              "description": "PDF as base64",
              "type": "string"
            },
            "pdf_url": {
              "description": "PDF URL; or send one of the other inputs",
              "type": "string"
            },
            "validate": {
              "default": true,
              "description": "Check VAT ID and IBAN",
              "type": "boolean"
            },
            "xml": {
              "description": "XRechnung/ZUGFeRD XML text",
              "type": "string"
            },
            "xml_url": {
              "description": "XML URL",
              "type": "string"
            }
          },
          "required": []
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "properties": {
                "buyer": {
                  "type": "object"
                },
                "buyer_reference": {
                  "type": "string"
                },
                "checks": {
                  "type": "object"
                },
                "currency": {
                  "type": "string"
                },
                "delivery_date": {
                  "type": "string"
                },
                "due_date": {
                  "type": "string"
                },
                "e_invoice": {
                  "type": "object"
                },
                "extracted_at": {
                  "type": "string"
                },
                "invoice_number": {
                  "type": "string"
                },
                "issue_date": {
                  "type": "string"
                },
                "lines": {
                  "type": "array"
                },
                "model": {},
                "notes": {
                  "type": "array"
                },
                "order_reference": {},
                "payment": {
                  "type": "object"
                },
                "seller": {
                  "type": "object"
                },
                "service_period": {},
                "source": {
                  "type": "string"
                },
                "tax_breakdown": {
                  "type": "array"
                },
                "totals": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                },
                "type_code": {
                  "type": "string"
                },
                "warnings": {
                  "type": "array"
                }
              },
              "required": [
                "source",
                "e_invoice",
                "invoice_number",
                "seller",
                "lines",
                "totals",
                "checks",
                "warnings"
              ],
              "type": "object"
            },
            "success": {
              "type": "boolean"
            }
          },
          "required": [
            "success",
            "data"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}