77trust / 100

Einvoice Codelists

by format.halowerk.com in Markets & finance

x402 APIPassing, checked 12 h ago

Check or look up EN 16931 e-invoice code values (units, VAT categories, payment means, EAS, ICD, VATEX, currencies and more) against the official EU code lists valid on a date. Uses the European Commission code lists for EN 16931 (genericode), version 17 (valid 2026-05-15 to 2026-11-14) and version 18 (valid from 2026-11-15), selected by the date you give (default today).

POST
https://format.halowerk.com/v1/einvoice-codelists
Price
$0.002
per call in USDC
Uptime
95.8%
last 30 days
Response time
114 ms
161 ms slowest 5%
Last check
Passed
12 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

POST https://format.halowerk.com/v1/einvoice-codelists

Each call costs $0.002 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://format.halowerk.com/v1/einvoice-codelists
content-type: application/json

{
  "codes": [
    "C62",
    "HUR",
    "c62"
  ],
  "date": "2026-11-01",
  "list": "unit"
}

Parameters

ParameterTypeRequiredDescription
codesarray of stringNo
comparebooleanNo Default: false.
datestring (date)No
limitintegerNo Default: 200.
liststringYes One of: 1001, currency, 1153, 4451, icd, 7143, country, 4461, 5305, 5189, 7161, vatex.
offsetintegerNo Default: 0.
searchstringNo

Example response

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

Example response, 52 lines
{
  "result": {
    "business_terms": [
      "BT-130",
      "BT-150"
    ],
    "date": "2026-11-01",
    "invalid": 1,
    "list": "unit",
    "list_version": "2026-05-15",
    "results": [
      {
        "code": "C62",
        "in_v18": true,
        "name": "one",
        "valid": true,
        "validator_accepts": true
      },
      {
        "code": "HUR",
        "in_v18": true,
        "name": "hour",
        "valid": true,
        "validator_accepts": true
      },
      {
        "code": "c62",
        "in_v18": false,
        "name": null,
        "suggestion": "C62",
        "valid": false,
        "validator_accepts": false
      }
    ],
    "rules": [
      "BR-CL-23"
    ],
    "source": "https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/Registry+of+supporting+artefacts+to+implement+EN16931",
    "title": "Unit of measure (UN/ECE Rec 20 with Rec 21)",
    "valid": 2,
    "valid_from": "2026-05-15",
    "valid_until": "2026-11-14",
    "validator": "KoSIT validator 1.6.3, XRechnung 3.0.2 configuration (EN16931 validation artefacts 1.3.16)",
    "validator_disagreement": {
      "accepted_by_validator_not_in_list": [],
      "in_list_rejected_by_validator": []
    },
    "version": "v17"
  },
  "service": "einvoice-codelists",
  "status": "success"
}

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

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://format.halowerk.com/v1/einvoice-codelists' \
  -H 'content-type: application/json' \
  --data-raw '{"codes":["C62","HUR","c62"],"date":"2026-11-01","list":"unit"}'

# 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://format.halowerk.com/v1/einvoice-codelists' \
  -H 'content-type: application/json' \
  --data-raw '{"codes":["C62","HUR","c62"],"date":"2026-11-01","list":"unit"}' \
  | 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.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
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.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fformat.halowerk.com%2Fv1%2Feinvoice-codelists&method=POST
const res = await pay("https://format.halowerk.com/v1/einvoice-codelists", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "codes": [
      "C62",
      "HUR",
      "c62"
    ],
    "date": "2026-11-01",
    "list": "unit"
  }),
});
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.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://format.halowerk.com/v1/einvoice-codelists",
        json={
            "codes": [
                "C62",
                "HUR",
                "c62",
            ],
            "date": "2026-11-01",
            "list": "unit",
        },
    )
    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
12 h agoPassed402120 ms$0.002
2 days agoTimed out---
4 days agoPassed40239 ms$0.002
4 days agoPassed402129 ms$0.002
5 days agoPassed402143 ms$0.002
Show 10 older checks
5 days agoPassed402123 ms$0.002
5 days agoPassed402161 ms$0.002
6 days agoPassed40239 ms$0.002
6 days agoPassed402123 ms$0.002
6 days agoPassed40241 ms$0.002
7 days agoPassed40244 ms$0.002
7 days agoPassed402202 ms$0.002
7 days agoPassed402121 ms$0.002
8 days agoPassed40240 ms$0.002
8 days agoPassed40240 ms$0.002