74trust / 100

Einvoice Create

by Create XRechnung, ZUGFeRD in Markets & finance

x402 APIPassing, checked 5 h ago

Create XRechnung, ZUGFeRD. Create an EU e-invoice from plain JSON: seller, buyer, lines with quantity, price and VAT rate, bank account. Returns XRechnung 3.0 XML (CII or UBL), a ZUGFeRD / Factur-X PDF with the XML inside, its XML alone, or EN 16931 UBL. Totals and VAT breakdown are computed and checked against the business rules first; data that breaks a rule is refused uncharged with the rule numbers. Use to issue German B2B e-invoices from a shop, ERP or workflow.

GET
https://agent-data-tools.revmesh2074.workers.dev/einvoice/create
Price
$0.01
per call in USDC
Uptime
95.8%
last 30 days
Response time
314 ms
1.2 s slowest 5%
Last check
Passed
5 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://agent-data-tools.revmesh2074.workers.dev/einvoice/create

Each call costs $0.01 in USDC on Polygon, 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.

GET https://agent-data-tools.revmesh2074.workers.dev/einvoice/create?invoice=%7B%22number%22%3A%22RE-2026-0042%22%2C%22issueDate%22%3A%222026-11-14%22%2C%22dueDate%22%3A%222026-12-14%22%2C%22buyerReference%22%3A%2204011000-12345-06%22%2C%22seller%22%3A%7B%22name%22%3A%22Muster+Software+GmbH%22%2C%22vatId%22%3A%22DE123456789%22%2C%22street%22%3A%22Hauptstrasse+1%22%2C%22postCode%22%3A%2210115%22%2C%22city%22%3A%22Berlin%22%2C%22country%22%3A%22DE%22%2C%22contactName%22%3A%22Erika+Muster%22%2C%22phone%22%3A%22%2B49+30+1234567%22%2C%22email%22%3A%22rechnung%40muster-software.example%22%7D%2C%22buyer%22%3A%7B%22name%22%3A%22Kunde+AG%22%2C%22street%22%3A%22Marktplatz+5%22%2C%22postCode%22%3A%2220095%22%2C%22city%22%3A%22Hamburg%22%2C%22country%22%3A%22DE%22%2C%22email%22%3A%22einkauf%40kunde.example%22%7D%2C%22lines%22%3A%5B%7B%22name%22%3A%22Beratung%22%2C%22quantity%22%3A8%2C%22unit%22%3A%22HUR%22%2C%22unitPrice%22%3A120%2C%22vatRate%22%3A19%7D%2C%7B%22name%22%3A%22Softwarelizenz%22%2C%22quantity%22%3A1%2C%22unitPrice%22%3A49.9%2C%22vatRate%22%3A19%7D%5D%2C%22payment%22%3A%7B%22iban%22%3A%22DE02120300000000202051%22%2C%22terms%22%3A%22Zahlbar+innerhalb+von+30+Tagen%22%7D%7D

Parameters

ParameterTypeRequiredDescription
formatstringNoxrechnung (default: XRechnung 3.0, CII syntax), xrechnung-ubl, zugferd-pdf (a readable A4 invoice as PDF/A-3 with the factur-x.xml embedded, returned as pdfBase64), zugferd (that factur-x.xml alone, EN 16931 profile) or ubl (EN 16931 UBL) One of: xrechnung, xrechnung-ubl, zugferd, ubl, zugferd-pdf.
invoicestringYesThe invoice as JSON: number, issueDate, dueDate, buyerReference (Leitweg-ID or order reference), seller and buyer {name, vatId, street, postCode, city, country, contactName, phone, email}, lines [{name, quantity, unit, unitPrice, vatRate}], payment {iban, bic, terms}. In a POST body send it as a JS…
languagestringNoLanguage of the labels on a zugferd-pdf page: de or en (default: de when the seller is in Germany or Austria, otherwise en) One of: de, en.

Example response

The provider's example. We can't check it without paying.

{
  "filename": "RE-2026-0042.xml",
  "format": "xrechnung",
  "note": "Checked against a subset of the EN 16931 and XRechnung 3.0 business rules; this is not the official KoSIT validator and not tax advice.",
  "specification": "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0",
  "syntax": "CII",
  "totals": {
    "grand": 1201.78,
    "lineNet": 1009.9,
    "payable": 1201.78,
    "tax": 191.88,
    "taxBasis": 1009.9
  },
  "valid": true,
  "warnings": [],
  "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rsm:CrossIndustryInvoice xmlns:rsm=\"urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100\" …>…</rsm:CrossIndustryInvoice>"
}

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.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://agent-data-tools.revmesh2074.workers.dev/einvoice/create?invoice=%7B%22number%22%3A%22RE-2026-0042%22%2C%22issueDate%22%3A%222026-11-14%22%2C%22dueDate%22%3A%222026-12-14%22%2C%22buyerReference%22%3A%2204011000-12345-06%22%2C%22seller%22%3A%7B%22name%22%3A%22Muster+Software+GmbH%22%2C%22vatId%22%3A%22DE123456789%22%2C%22street%22%3A%22Hauptstrasse+1%22%2C%22postCode%22%3A%2210115%22%2C%22city%22%3A%22Berlin%22%2C%22country%22%3A%22DE%22%2C%22contactName%22%3A%22Erika+Muster%22%2C%22phone%22%3A%22%2B49+30+1234567%22%2C%22email%22%3A%22rechnung%40muster-software.example%22%7D%2C%22buyer%22%3A%7B%22name%22%3A%22Kunde+AG%22%2C%22street%22%3A%22Marktplatz+5%22%2C%22postCode%22%3A%2220095%22%2C%22city%22%3A%22Hamburg%22%2C%22country%22%3A%22DE%22%2C%22email%22%3A%22einkauf%40kunde.example%22%7D%2C%22lines%22%3A%5B%7B%22name%22%3A%22Beratung%22%2C%22quantity%22%3A8%2C%22unit%22%3A%22HUR%22%2C%22unitPrice%22%3A120%2C%22vatRate%22%3A19%7D%2C%7B%22name%22%3A%22Softwarelizenz%22%2C%22quantity%22%3A1%2C%22unitPrice%22%3A49.9%2C%22vatRate%22%3A19%7D%5D%2C%22payment%22%3A%7B%22iban%22%3A%22DE02120300000000202051%22%2C%22terms%22%3A%22Zahlbar+innerhalb+von+30+Tagen%22%7D%7D'

# 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 - 'https://agent-data-tools.revmesh2074.workers.dev/einvoice/create?invoice=%7B%22number%22%3A%22RE-2026-0042%22%2C%22issueDate%22%3A%222026-11-14%22%2C%22dueDate%22%3A%222026-12-14%22%2C%22buyerReference%22%3A%2204011000-12345-06%22%2C%22seller%22%3A%7B%22name%22%3A%22Muster+Software+GmbH%22%2C%22vatId%22%3A%22DE123456789%22%2C%22street%22%3A%22Hauptstrasse+1%22%2C%22postCode%22%3A%2210115%22%2C%22city%22%3A%22Berlin%22%2C%22country%22%3A%22DE%22%2C%22contactName%22%3A%22Erika+Muster%22%2C%22phone%22%3A%22%2B49+30+1234567%22%2C%22email%22%3A%22rechnung%40muster-software.example%22%7D%2C%22buyer%22%3A%7B%22name%22%3A%22Kunde+AG%22%2C%22street%22%3A%22Marktplatz+5%22%2C%22postCode%22%3A%2220095%22%2C%22city%22%3A%22Hamburg%22%2C%22country%22%3A%22DE%22%2C%22email%22%3A%22einkauf%40kunde.example%22%7D%2C%22lines%22%3A%5B%7B%22name%22%3A%22Beratung%22%2C%22quantity%22%3A8%2C%22unit%22%3A%22HUR%22%2C%22unitPrice%22%3A120%2C%22vatRate%22%3A19%7D%2C%7B%22name%22%3A%22Softwarelizenz%22%2C%22quantity%22%3A1%2C%22unitPrice%22%3A49.9%2C%22vatRate%22%3A19%7D%5D%2C%22payment%22%3A%7B%22iban%22%3A%22DE02120300000000202051%22%2C%22terms%22%3A%22Zahlbar+innerhalb+von+30+Tagen%22%7D%7D' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
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.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Feinvoice%2Fcreate
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/einvoice/create?invoice=%7B%22number%22%3A%22RE-2026-0042%22%2C%22issueDate%22%3A%222026-11-14%22%2C%22dueDate%22%3A%222026-12-14%22%2C%22buyerReference%22%3A%2204011000-12345-06%22%2C%22seller%22%3A%7B%22name%22%3A%22Muster+Software+GmbH%22%2C%22vatId%22%3A%22DE123456789%22%2C%22street%22%3A%22Hauptstrasse+1%22%2C%22postCode%22%3A%2210115%22%2C%22city%22%3A%22Berlin%22%2C%22country%22%3A%22DE%22%2C%22contactName%22%3A%22Erika+Muster%22%2C%22phone%22%3A%22%2B49+30+1234567%22%2C%22email%22%3A%22rechnung%40muster-software.example%22%7D%2C%22buyer%22%3A%7B%22name%22%3A%22Kunde+AG%22%2C%22street%22%3A%22Marktplatz+5%22%2C%22postCode%22%3A%2220095%22%2C%22city%22%3A%22Hamburg%22%2C%22country%22%3A%22DE%22%2C%22email%22%3A%22einkauf%40kunde.example%22%7D%2C%22lines%22%3A%5B%7B%22name%22%3A%22Beratung%22%2C%22quantity%22%3A8%2C%22unit%22%3A%22HUR%22%2C%22unitPrice%22%3A120%2C%22vatRate%22%3A19%7D%2C%7B%22name%22%3A%22Softwarelizenz%22%2C%22quantity%22%3A1%2C%22unitPrice%22%3A49.9%2C%22vatRate%22%3A19%7D%5D%2C%22payment%22%3A%7B%22iban%22%3A%22DE02120300000000202051%22%2C%22terms%22%3A%22Zahlbar+innerhalb+von+30+Tagen%22%7D%7D");
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.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://agent-data-tools.revmesh2074.workers.dev/einvoice/create?invoice=%7B%22number%22%3A%22RE-2026-0042%22%2C%22issueDate%22%3A%222026-11-14%22%2C%22dueDate%22%3A%222026-12-14%22%2C%22buyerReference%22%3A%2204011000-12345-06%22%2C%22seller%22%3A%7B%22name%22%3A%22Muster+Software+GmbH%22%2C%22vatId%22%3A%22DE123456789%22%2C%22street%22%3A%22Hauptstrasse+1%22%2C%22postCode%22%3A%2210115%22%2C%22city%22%3A%22Berlin%22%2C%22country%22%3A%22DE%22%2C%22contactName%22%3A%22Erika+Muster%22%2C%22phone%22%3A%22%2B49+30+1234567%22%2C%22email%22%3A%22rechnung%40muster-software.example%22%7D%2C%22buyer%22%3A%7B%22name%22%3A%22Kunde+AG%22%2C%22street%22%3A%22Marktplatz+5%22%2C%22postCode%22%3A%2220095%22%2C%22city%22%3A%22Hamburg%22%2C%22country%22%3A%22DE%22%2C%22email%22%3A%22einkauf%40kunde.example%22%7D%2C%22lines%22%3A%5B%7B%22name%22%3A%22Beratung%22%2C%22quantity%22%3A8%2C%22unit%22%3A%22HUR%22%2C%22unitPrice%22%3A120%2C%22vatRate%22%3A19%7D%2C%7B%22name%22%3A%22Softwarelizenz%22%2C%22quantity%22%3A1%2C%22unitPrice%22%3A49.9%2C%22vatRate%22%3A19%7D%5D%2C%22payment%22%3A%7B%22iban%22%3A%22DE02120300000000202051%22%2C%22terms%22%3A%22Zahlbar+innerhalb+von+30+Tagen%22%7D%7D")
    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

WhenResultHTTPTimePrice
5 h agoPassed402202 ms$0.01
40 h agoTimed out---
3 days agoTimed out---
4 days agoPassed402246 ms$0.01
4 days agoPassed402765 ms$0.01
Show 10 older checks
5 days agoPassed402351 ms$0.01
5 days agoPassed402166 ms$0.01
6 days agoPassed402418 ms$0.01
6 days agoPassed402280 ms$0.01
6 days agoPassed40289 ms$0.01
6 days agoPassed402143 ms$0.01
7 days agoPassed402308 ms$0.01
7 days agoPassed402249 ms$0.01
7 days agoPassed402389 ms$0.01
8 days agoPassed402355 ms$0.01