Einvoice · To Json
Convert XRechnung, ZUGFeRD. Convert an EU e-invoice to plain JSON: send XRechnung, ZUGFeRD / Factur-X (XML or the PDF that embeds it), Peppol or other EN 16931 XML as text, as a file in a POST body or by URL. Returns number, dates, seller and buyer with VAT numbers and addresses, every line with quantity, price, VAT rate and net amount, the VAT breakdown, totals and bank account. Exact values from the file, no AI. Use to book incoming e-invoices into a sheet or ERP.
GET https://agent-data-tools.revmesh2074.workers.dev/einvoice/to-json
0.01 USDC on Base · payTo 0x6293ded2684F1A76E26bEcef87c137D691Fbf800
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"url": "https://raw.githubusercontent.com/itplr-kosit/xrechnung-testsuite/master/src/test/business-cases/standard/01.01a-INVOICE_uncefact.xml"
}{
"invoice": {
"businessProcess": "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"buyer": {
"city": "[Buyer city]",
"country": "DE",
"endpointId": "buyer@info.de",
"endpointScheme": "EM",
"name": "[Buyer name]",
"postCode": "12345",
"street": "[Buyer address line 1]"
},
"buyerReference": "04011000-12345-03",
"currency": "EUR",
"issueDate": "2016-04-04",
"lines": [
{
"description": "Zeitschrift Inland",
"id": "Zeitschrift [...]",
"name": "Zeitschrift [...]",
"netAmount": 288.79,
"quantity": 1,
"unit": "XPP",
"unitPrice": 288.79,
"vatCategory": "S",
"vatRate": 7
},
{
"id": "Porto + Versandkosten",
"name": "Porto + Versandkosten",
"netAmount": 26.07,
"quantity": 1,
"unit": "XPP",
"unitPrice": 26.07,
"vatCategory": "S",
"vatRate": 7
}
],
"note": "Es gelten unsere Allgem. Geschäftsbedingungen, die Sie unter […] finden.",
"number": "123456XX",
"payment": {
"iban": "DE79000000001234567890",
"meansCode": "58",
"terms": "Zahlbar sofort ohne Abzug."
},
"seller": {
"city": "[Seller city]",
"contactName": "nicht vorhanden",
"country": "DE",
"email": "seller@email.de",
"endpointId": "seller@email.de",
"endpointScheme": "EM",
"legalId": "[HRA-Eintrag]",
"name": "[Seller name]",
"phone": "+49 1234-5678",
"postCode": "12345",
"street": "[Seller address line 1]",
"vatId": "DE 123456789"
},
"specification": "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0",
"totals": {
"grand": 336.9,
"lineNet": 314.86,
"payable": 336.9,
"tax": 22.04,
"taxBasis": 314.86
},
"typeCode": "380",
"vat": [
{
"basis": 314.86,
"category": "S",
"rate": 7,
"tax": 22.04
}
]
},
"standard": "XRechnung 3.0",
"syntax": "CII",
"url": "https://raw.githubusercontent.com/itplr-kosit/xrechnung-testsuite/master/src/test/business-cases/standard/01.01a-INVOICE_uncefact.xml"
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | 74 / 100 · breakdown |
|---|---|
| Probe uptime (30d) | 100.0% over 1 probes · daily |
| Avg 402 latency | 1576 ms |
| Paid calls (30d, on-chain) | 1238 calls · 13 buyers · shared price cohort of 608 |
| Facilitator-reported (30d) | 1 calls · 1 payers (CDP Bazaar) |
How to call
GET https://agent-data-tools.revmesh2074.workers.dev/einvoice/to-json · input in query · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Absolute public http(s) URL of the e-invoice: an XML file or a ZUGFeRD / Factur-X PDF (or send `xml`, or the file in a POST body)",
"examples": [
"https://raw.githubusercontent.com/itplr-kosit/xrechnung-testsuite/master/src/test/business-cases/standard/01.01a-INVOICE_uncefact.xml"
]
},
"xml": {
"type": "string",
"description": "The e-invoice XML as text (CII or UBL), up to 5 MB in a POST body",
"examples": [
"<rsm:CrossIndustryInvoice …>…</rsm:CrossIndustryInvoice>"
]
}
},
"required": [
"url"
]
}Output schema
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"syntax": {
"type": "string"
},
"standard": {
"type": "string"
},
"invoice": {
"type": "object",
"properties": {
"specification": {
"type": "string"
},
"businessProcess": {
"type": "string"
},
"number": {
"type": "string"
},
"issueDate": {
"type": "string"
},
"typeCode": {
"type": "string"
},
"currency": {
"type": "string"
},
"buyerReference": {
"type": "string"
},
"note": {
"type": "string"
},
"seller": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"vatId": {
"type": "string"
},
"legalId": {
"type": "string"
},
"street": {
"type": "string"
},
"city": {
"type": "string"
},
"postCode": {
"type": "string"
},
"country": {
"type": "string"
},
"endpointId": {
"type": "string"
},
"endpointScheme": {
"type": "string"
},
"contactName": {
"type": "string"
},
"phone": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"buyer": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"street": {
"type": "string"
},
"city": {
"type": "string"
},
"postCode": {
"type": "string"
},
"country": {
"type": "string"
},
"endpointId": {
"type": "string"
},
"endpointScheme": {
"type": "string"
}
}
},
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"quantity": {
"type": "number"
},
"unit": {
"type": "string"
},
"unitPrice": {
"type": "number"
},
"netAmount": {
"type": "number"
},
"vatCategory": {
"type": "string"
},
"vatRate": {
"type": "number"
}
}
}
},
"vat": {
"type": "array",
"items": {
"type": "object",
"properties": {
"category": {
"type": "string"
},
"rate": {
"type": "number"
},
"basis": {
"type": "number"
},
"tax": {
"type": "number"
}
}
}
},
"totals": {
"type": "object",
"properties": {
"lineNet": {
"type": "number"
},
"taxBasis": {
"type": "number"
},
"tax": {
"type": "number"
},
"grand": {
"type": "number"
},
"payable": {
"type": "number"
}
}
},
"payment": {
"type": "object",
"properties": {
"meansCode": {
"type": "string"
},
"iban": {
"type": "string"
},
"terms": {
"type": "string"
}
}
}
}
}
}
}curl -i -X GET 'https://agent-data-tools.revmesh2074.workers.dev/einvoice/to-json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fitplr-kosit%2Fxrechnung-testsuite%2Fmaster%2Fsrc%2Ftest%2Fbusiness-cases%2Fstandard%2F01.01a-INVOICE_uncefact.xml'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs