Skip to content
Fourohtwo

format.halowerk.com/v1/einvoice-to-json

Turn an XRechnung or EN 16931 invoice (UBL or CII) into flat JSON for bookkeeping, with optional KoSIT validation. Extracts header, seller, buyer (address, VAT ID, tax number, electronic address, contact), payment data (means code, IBAN, BIC, terms, remittance), references, delivery date, every line (quantity, unit code, price, VAT category and rate, line net) and the totals into one flat JSON obj

BaseAnswering
POSThttps://format.halowerk.com/v1/einvoice-to-json

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://format.halowerk.com/v1/einvoice-to-json", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"validate":true,"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\">…</Invoice>"}),
});
console.log(await res.json());

Example input

{
  "validate": true,
  "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\">…</Invoice>"
}