Proxy Invoice Extract
by Invoice Extraction PDF E-Invoice in Markets & finance
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.
https://agentsvc.io/api/v1/proxy/invoice-extract- Price
- $0.02
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 176 ms
- 290 ms slowest 5%
- Last check
- Passed
- 8 min ago, next in 21 min
Reliability
How to call it
POST https://agentsvc.io/api/v1/proxy/invoice-extract
Each call costs $0.02 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://agentsvc.io/api/v1/proxy/invoice-extract
content-type: application/json
{
"pdf_url": "https://agentsvc.io/samples/zugferd-invoice.pdf"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
image_base64 | string | No | Photo as base64 |
image_url | string | No | Photo or scan URL |
pdf_base64 | string | No | PDF as base64 |
pdf_url | string | No | PDF URL; or send one of the other inputs |
validate | boolean | No | Check VAT ID and IBAN Default: true. |
xml | string | No | XRechnung/ZUGFeRD XML text |
xml_url | string | No | XML URL |
Example response
The provider's example. We can't check it without paying.
Example response, 104 lines
{
"data": {
"buyer": {
"city": "Bremen",
"country": "DE",
"email": "[email protected]",
"name": "Bauträger Nord GmbH & Co. KG",
"postal_code": "28195",
"street": "Am Hafen 5",
"tax_number": null,
"vat_id": "DE987654321"
},
"buyer_reference": "RE-2026-0001",
"checks": {
"arithmetic": {
"issues": [],
"ok": true
},
"iban": {
"bank": "Deutsche Kreditbank Berlin",
"bic_matches": true,
"checked": true,
"reason": null,
"valid": true
},
"seller_vat_id": {
"checked": true,
"registered_name": null,
"source": "EU VIES",
"valid": false
}
},
"currency": "EUR",
"delivery_date": "2026-10-08",
"due_date": "2026-10-24",
"e_invoice": {
"format": "ZUGFeRD / Factur-X EN 16931",
"is_e_invoice": true,
"note": "Structured e-invoice (EN 16931). Amounts were read exactly from the XML, no A...",
"specification": "urn:cen.eu:en16931:2017"
},
"extracted_at": "2026-10-10T19:59:48.740Z",
"invoice_number": "RE-2026-0001",
"issue_date": "2026-10-10",
"lines": [
{
"description": "Malerarbeiten Treppenhaus: Wände und Decken, 2x gestrichen",
"net_amount": 725,
"quantity": 12.5,
"tax_category": "S",
"tax_rate": 19,
"unit": "HUR",
"unit_price": 58
}
],
"model": null,
"notes": [
"Vielen Dank für Ihren Auftrag & die gute Zusammenarbeit <3"
],
"order_reference": null,
"payment": {
"account_name": "Malerbetrieb Muster GmbH",
"bic": "BYLADEM1001",
"iban": "DE02120300000000202051",
"means": "SEPA credit transfer",
"reference": "Rechnung RE-2026-0001",
"terms": "Zahlbar innerhalb von 14 Tagen ohne Abzug."
},
"seller": {
"city": "Hamburg",
"country": "DE",
"email": "[email protected]",
"name": "Malerbetrieb Muster GmbH",
"postal_code": "20095",
"street": "Hauptstraße 12",
"tax_number": "22/815/08150",
"vat_id": "DE123456789"
},
"service_period": null,
"source": "pdf_embedded_xml",
"tax_breakdown": [
{
"amount": 166.24,
"base": 874.97,
"category": "S",
"exemption_reason": null,
"rate": 19
}
],
"totals": {
"gross": 1067.21,
"net": 899.27,
"payable": 1067.21,
"prepaid": null,
"tax": 167.94
},
"type": "invoice",
"type_code": "380",
"warnings": [
"Seller VAT ID is not valid in VIES"
]
},
"success": true
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://agentsvc.io/api/v1/proxy/invoice-extract' \
-H 'content-type: application/json' \
--data-raw '{"pdf_url":"https://agentsvc.io/samples/zugferd-invoice.pdf"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://agentsvc.io/api/v1/proxy/invoice-extract' \
-H 'content-type: application/json' \
--data-raw '{"pdf_url":"https://agentsvc.io/samples/zugferd-invoice.pdf"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Finvoice-extract&method=POST
const res = await pay("https://agentsvc.io/api/v1/proxy/invoice-extract", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"pdf_url": "https://agentsvc.io/samples/zugferd-invoice.pdf"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://agentsvc.io/api/v1/proxy/invoice-extract",
json={
"pdf_url": "https://agentsvc.io/samples/zugferd-invoice.pdf",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 8 min ago | Passed | 402 | 113 ms | $0.02 |
| 4 h ago | Passed | 402 | 171 ms | $0.02 |
| 9 h ago | Passed | 402 | 171 ms | $0.02 |
| 13 h ago | Passed | 402 | 199 ms | $0.02 |
| 17 h ago | Passed | 402 | 176 ms | $0.02 |
Show 10 older checks
| 22 h ago | Passed | 402 | 182 ms | $0.02 |
| 26 h ago | Passed | 402 | 287 ms | $0.02 |
| 30 h ago | Passed | 402 | 131 ms | $0.02 |
| 34 h ago | Passed | 402 | 167 ms | $0.02 |
| 37 h ago | Passed | 402 | 412 ms | $0.02 |
| 41 h ago | Passed | 402 | 157 ms | $0.02 |
| 45 h ago | Passed | 402 | 250 ms | $0.02 |
| 2 days ago | Passed | 402 | 121 ms | $0.02 |
| 2 days ago | Passed | 402 | 199 ms | $0.02 |
| 2 days ago | Passed | 402 | 126 ms | $0.02 |