{
"count": 2,
"items": [
{
"type": "invoice",
"sourceFile": "invoice.xml",
"source": "XML",
"syntax": "CII (UN/CEFACT)",
"standard": "XRechnung",
"profile": "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0",
"documentType": "Invoice",
"number": "INV-2026-1001",
"issueDate": "2026-11-15",
"dueDate": null,
"deliveryDate": null,
"currency": "EUR",
"buyerReference": null,
"orderReference": null,
"paymentTerms": null,
"paymentReference": null,
"iban": null,
"accountName": null,
"bic": null,
"notes": [],
"seller": {
"name": "Acme Services GmbH",
"street": null,
"postcode": "10115",
"city": "Berlin",
"country": "DE",
"vatId": "DE123456789",
"email": null,
"phone": null,
"contact": null
},
"buyer": {
"name": "Client AG",
"street": null,
"postcode": "20095",
"city": "Hamburg",
"country": "DE",
"vatId": null,
"email": null,
"phone": null,
"contact": null
},
"totals": {
"lines": 100,
"allowances": null,
"charges": null,
"net": 100,
"vat": 19,
"gross": 119,
"prepaid": null,
"payable": 119
},
"vatBreakdown": [
{
"category": "S",
"percent": 19,
"base": 100,
"amount": 19,
"reason": null
}
],
"lineCount": 1,
"checks": [
{
"check": "Mandatory invoice fields present",
"ok": true,
"detail": "all present"
},
{
"check": "Dates are valid calendar dates",
"ok": true,
"detail": "valid"
},
{
"check": "Currency code is valid ISO 4217",
"ok": true,
"detail": "EUR"
},
{
"check": "Document type code is valid UNTDID 1001",
"ok": true,
"detail": "380 (Invoice)"
},
{
"check": "Line amounts match quantity x price",
"ok": true,
"detail": "1 line(s) verified"
},
{
"check": "Line amounts add up to the line total",
"ok": true,
"detail": "lines 100.00 vs total 100.00"
},
{
"check": "VAT breakdown adds up to the VAT total",
"ok": true,
"detail": "breakdown 19.00 vs total 19.00"
},
{
"check": "VAT 19% is calculated correctly",
"ok": true,
"detail": "100.00 x 19% = 19.00, invoice says 19.00"
},
{
"check": "Net + VAT = gross",
"ok": true,
"detail": "100.00 + 19.00 vs 119.00"
},
{
"check": "Amount due is correct",
"ok": true,
"detail": "gross 119.00 - prepaid 0 vs due 119.00"
}
],
"allChecksOk": true
},
{
"type": "line",
"invoice": "INV-2026-1001",
"lineId": "1",
"name": "Cloud API Plan",
"description": null,
"quantity": 1,
"unitCode": "C62",
"unitPrice": 100,
"netAmount": 100,
"vatPercent": 19,
"vatCategory": "S",
"sellerItemId": null,
"buyerItemId": null,
"unit": "piece"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15875/e-invoice+parser+api/43792/e-invoice+reader?xml=urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0 INV-2026-1001 380 20261115 1 Cloud API Plan 100.00 1 VAT S 19 100.00 Acme Services GmbH 10115 Berlin DE DE123456789 Client AG 20095 Hamburg DE EUR 19.00 VAT 100.00 S 19 100.00 100.00 19.00 119.00 119.00 &fileName=invoice.xml' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 电子发票解析器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
将 XRechnung、UBL 和 Peppol BIS 电子发票解析并验证为整洁的 JSON:卖方、买方、明细行、增值税、总额
将 XRechnung、UBL 和 Peppol BIS 电子发票解析并验证为整洁的 JSON:卖方、买方、明细行、增值税、总计
每个请求最多可返回 100 条结果,具体取决于端点】【。
每个请求都会从公共来源收集实时数据。相同的请求可能会从缓存中提供,缓存时间最长为 6 小时】【。
列表参数接受多个以逗号分隔的值,例如:伦敦,巴黎
该端点接受以下查询参数,均为可选项:xml、fileContent、fileName。Xml:电子发票 XML 文本。fileContent:XML 或 PDF 文件的内容,也可以是其 Base64 编码。fileName:可选文件名,例如 Invoice.pdf