RechnungsAPI API Referenz
Vollständige Referenz aller ZUGFeRD- und XRechnung-Endpunkte. Alle Anfragen werden per Bearer Token authentifiziert.
https://onefinancebe.finbc.dePDF Analyse
/api/v1/zugferd/createJSONFromAnalysedPdfRechnungs-PDF analysieren
Analysiert das übergebene Rechnungs-PDF und extrahiert strukturierte Daten: Käufer, Verkäufer, Positionen, MwSt. und Gesamtbeträge. Ideal als Einstiegspunkt für PDF-basierte Rechnungsworkflows.
| Field | Type | Required | Description |
|---|---|---|---|
pdfInvoiceBase64 | string | required | Base64-kodierter Inhalt der PDF-Rechnung. |
Beispiel
{
"pdfInvoiceBase64": "JVBERi0xLjQKJf..."
}Beispielantwort
{
"apiStatus": 200,
"invoice": [
{
"invoiceNumber": "",
"invoiceIssueDate": "",
"invoiceTypeCode": "",
"invoiceCurrencyCode": "",
"paymentDueDate": "",
"buyerReference": "",
"paymentTerms": "",
"processControl": {
"businessProcessTypeIdentifier": "",
"specificationIdentifier": ""
},
"seller": {
"sellerName": "",
"sellerTradingName": "",
"sellerIdentifier": [
""
],
"sellerLegalRegistrationIdentifier": "",
"sellerVatIdentifier": "",
"sellerTaxRegistrationIdentifier": "",
"sellerAdditionalLegalInformation": "",
"sellerElectronicAddress": "",
"sellerPostalAddress": {
"sellerAddressLine1": "",
"sellerAddressLine2": "",
"sellerAddressLine3": "",
"sellerCity": "",
"sellerPostCode": "",
"sellerCountrySubdivision": "",
"sellerCountryCode": ""
},
"sellerContact": {
"sellerContactPoint": "",
"sellerContactTelephoneNumber": "",
"sellerContactEmailAddress": ""
}
},
"buyer": {
"buyerName": "",
"buyerTradingName": "",
"buyerIdentifier": "",
"buyerLegalRegistrationIdentifier": "",
"buyerVatIdentifier": "",
"buyerElectronicAddress": "",
"buyerPostalAddress": {
"buyerAddressLine1": "",
"buyerAddressLine2": "",
"buyerAddressLine3": "",
"buyerCity": "",
"buyerPostCode": "",
"buyerCountrySubdivision": "",
"buyerCountryCode": ""
},
"buyerContact": {
"buyerContactPoint": "",
"buyerContactTelephoneNumber": "",
"buyerContactEmailAddress": ""
}
},
"paymentInstructions": {
"paymentMeansTypeCode": "",
"paymentMeansText": "",
"remittanceInformation": "",
"creditTransfer": [
{
"paymentAccountIdentifier": "",
"paymentAccountName": "",
"paymentServiceProviderIdentifier": ""
}
],
"paymentCardInformation": {
"paymentCardPrimaryAccountNumber": "",
"paymentCardHolderName": ""
},
"directDebit": {
"mandateReferenceIdentifier": "",
"bankAssignedCreditorIdentifier": "",
"debitedAccountIdentifier": ""
}
},
"documentTotals": {
"sumOfInvoiceLineNetAmount": 0,
"sumOfAllowancesOnDocumentLevel": 0,
"sumOfChargesOnDocumentLevel": 0,
"invoiceTotalAmountWithoutVat": 0,
"invoiceTotalVatAmount": 0,
"invoiceTotalVatAmountInAccountingCurrency": 0,
"invoiceTotalAmountWithVat": 0,
"paidAmount": 0,
"roundingAmount": 0,
"amountDueForPayment": 0
},
"vatBreakdown": [
{
"vatCategoryTaxableAmount": 0,
"vatCategoryTaxAmount": 0,
"vatCategoryCode": "",
"vatCategoryRate": 0,
"vatExemptionReasonText": "",
"vatExemptionReasonCode": ""
}
],
"additionalSupportingDocuments": [],
"documentLevelAllowances": [],
"documentLevelCharges": [],
"invoiceLine": [
{
"invoiceLineIdentifier": "",
"invoiceLineNote": "",
"invoiceLineObjectIdentifier": "",
"invoicedQuantity": 0,
"invoicedQuantityUnitOfMeasureCode": "",
"invoiceLineNetAmount": 0,
"referencedPurchaseOrderLineReference": "",
"invoiceLineBuyerAccountingReference": "",
"invoiceLinePeriod": {
"invoiceLinePeriodStartDate": null,
"invoiceLinePeriodEndDate": null
},
"invoiceLineAllowances": [],
"invoiceLineCharges": [],
"priceDetails": {
"itemNetPrice": 0,
"itemPriceDiscount": 0,
"itemGrossPrice": 0,
"itemPriceBaseQuantity": 0,
"itemPriceBaseQuantityUnitOfMeasure": ""
},
"lineVatInformation": [
{
"invoicedItemVatCategoryCode": "",
"invoicedItemVatRate": 0
}
],
"itemInformation": {
"itemName": "",
"itemDescription": "",
"itemSellersIdentifier": "",
"itemBuyersIdentifier": "",
"itemStandardIdentifier": "",
"itemClassificationIdentifier": [
""
],
"itemCountryOfOrigin": "",
"itemAttributes": []
}
}
]
}
]
}Playground
Diesen Endpunkt live im Browser testen.
Rechnungserzeugung
/api/v1/zugferd/createXinvoiceFromJsonXRechnung aus JSON erzeugen
Erzeugt eine valide XRechnungs-XML-Datei aus strukturierten JSON-Rechnungsdaten nach EN 16931. Gibt das XML und Validierungsfehler zurück.
| Field | Type | Required | Description |
|---|---|---|---|
invoice | object | required | Rechnungsobjekt nach EN 16931 Feldmapping. |
Beispiel
{
"invoice": {
"invoiceNumber": "",
"invoiceIssueDate": "",
"invoiceTypeCode": "",
"invoiceCurrencyCode": "",
"paymentDueDate": "",
"buyerReference": "",
"paymentTerms": "",
"processControl": {
"businessProcessTypeIdentifier": "",
"specificationIdentifier": ""
},
"seller": {
"sellerName": "",
"sellerTradingName": "",
"sellerIdentifier": [
""
],
"sellerLegalRegistrationIdentifier": "",
"sellerVatIdentifier": "",
"sellerTaxRegistrationIdentifier": "",
"sellerAdditionalLegalInformation": "",
"sellerElectronicAddress": "",
"sellerPostalAddress": {
"sellerAddressLine1": "",
"sellerAddressLine2": "",
"sellerAddressLine3": "",
"sellerCity": "",
"sellerPostCode": "",
"sellerCountrySubdivision": "",
"sellerCountryCode": ""
},
"sellerContact": {
"sellerContactPoint": "",
"sellerContactTelephoneNumber": "",
"sellerContactEmailAddress": ""
}
},
"buyer": {
"buyerName": "",
"buyerTradingName": "",
"buyerIdentifier": "",
"buyerLegalRegistrationIdentifier": "",
"buyerVatIdentifier": "",
"buyerElectronicAddress": "",
"buyerPostalAddress": {
"buyerAddressLine1": "",
"buyerAddressLine2": "",
"buyerAddressLine3": "",
"buyerCity": "",
"buyerPostCode": "",
"buyerCountrySubdivision": "",
"buyerCountryCode": ""
},
"buyerContact": {
"buyerContactPoint": "",
"buyerContactTelephoneNumber": "",
"buyerContactEmailAddress": ""
}
},
"paymentInstructions": {
"paymentMeansTypeCode": "",
"paymentMeansText": "",
"remittanceInformation": "",
"creditTransfer": [
{
"paymentAccountIdentifier": "",
"paymentAccountName": "",
"paymentServiceProviderIdentifier": ""
}
],
"paymentCardInformation": {
"paymentCardPrimaryAccountNumber": "",
"paymentCardHolderName": ""
},
"directDebit": {
"mandateReferenceIdentifier": "",
"bankAssignedCreditorIdentifier": "",
"debitedAccountIdentifier": ""
}
},
"documentTotals": {
"sumOfInvoiceLineNetAmount": 0,
"sumOfAllowancesOnDocumentLevel": 0,
"sumOfChargesOnDocumentLevel": 0,
"invoiceTotalAmountWithoutVat": 0,
"invoiceTotalVatAmount": 0,
"invoiceTotalVatAmountInAccountingCurrency": 0,
"invoiceTotalAmountWithVat": 0,
"paidAmount": 0,
"roundingAmount": 0,
"amountDueForPayment": 0
},
"vatBreakdown": [
{
"vatCategoryTaxableAmount": 0,
"vatCategoryTaxAmount": 0,
"vatCategoryCode": "",
"vatCategoryRate": 0,
"vatExemptionReasonText": "",
"vatExemptionReasonCode": ""
}
],
"additionalSupportingDocuments": [],
"documentLevelAllowances": [],
"documentLevelCharges": [],
"invoiceLine": [
{
"invoiceLineIdentifier": "",
"invoiceLineNote": "",
"invoiceLineObjectIdentifier": "",
"invoicedQuantity": 0,
"invoicedQuantityUnitOfMeasureCode": "",
"invoiceLineNetAmount": 0,
"referencedPurchaseOrderLineReference": "",
"invoiceLineBuyerAccountingReference": "",
"invoiceLinePeriod": {
"invoiceLinePeriodStartDate": null,
"invoiceLinePeriodEndDate": null
},
"invoiceLineAllowances": [],
"invoiceLineCharges": [],
"priceDetails": {
"itemNetPrice": 0,
"itemPriceDiscount": 0,
"itemGrossPrice": 0,
"itemPriceBaseQuantity": 0,
"itemPriceBaseQuantityUnitOfMeasure": ""
},
"lineVatInformation": [
{
"invoicedItemVatCategoryCode": "",
"invoicedItemVatRate": 0
}
],
"itemInformation": {
"itemName": "",
"itemDescription": "",
"itemSellersIdentifier": "",
"itemBuyersIdentifier": "",
"itemStandardIdentifier": "",
"itemClassificationIdentifier": [
""
],
"itemCountryOfOrigin": "",
"itemAttributes": []
}
}
]
}
}Beispielantwort
{
"valid": false,
"message": "xInvoice generated",
"numberOfXInvoiceErrors": 1,
"xInvoice": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><rsm:CrossIndustryInvoice xmlns:rsm=\"urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100\">...</rsm:CrossIndustryInvoice>",
"xInvoiceErrors": [
{
"id": "BR-CO-25",
"line": null,
"location": "/rsm:CrossIndustryInvoice",
"message": "In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present.",
"schemaFile": "EN16931-CII-validation",
"type": "fatal"
}
]
}Playground
Diesen Endpunkt live im Browser testen.
/api/v1/zugferd/createZugferdFromJsonZUGFeRD aus JSON + PDF erzeugen
Kombiniert strukturierte JSON-Rechnungsdaten mit einem vorhandenen PDF zu einem ZUGFeRD-konformen PDF/A-3-Dokument mit eingebetteter XRechnungs-XML.
| Field | Type | Required | Description |
|---|---|---|---|
invoice | object | required | Rechnungsobjekt. |
invoicePdf64 | string (base64) | required | Base64-kodiertes PDF für die XML-Einbettung. |
Beispiel
{
"invoice": {
"invoiceNumber": "",
"invoiceIssueDate": "",
"invoiceTypeCode": "",
"invoiceCurrencyCode": "",
"paymentDueDate": "",
"buyerReference": "",
"paymentTerms": "",
"processControl": {
"businessProcessTypeIdentifier": "",
"specificationIdentifier": ""
},
"seller": {
"sellerName": "",
"sellerTradingName": "",
"sellerIdentifier": [
""
],
"sellerLegalRegistrationIdentifier": "",
"sellerVatIdentifier": "",
"sellerTaxRegistrationIdentifier": "",
"sellerAdditionalLegalInformation": "",
"sellerElectronicAddress": "",
"sellerPostalAddress": {
"sellerAddressLine1": "",
"sellerAddressLine2": "",
"sellerAddressLine3": "",
"sellerCity": "",
"sellerPostCode": "",
"sellerCountrySubdivision": "",
"sellerCountryCode": ""
},
"sellerContact": {
"sellerContactPoint": "",
"sellerContactTelephoneNumber": "",
"sellerContactEmailAddress": ""
}
},
"buyer": {
"buyerName": "",
"buyerTradingName": "",
"buyerIdentifier": "",
"buyerLegalRegistrationIdentifier": "",
"buyerVatIdentifier": "",
"buyerElectronicAddress": "",
"buyerPostalAddress": {
"buyerAddressLine1": "",
"buyerAddressLine2": "",
"buyerAddressLine3": "",
"buyerCity": "",
"buyerPostCode": "",
"buyerCountrySubdivision": "",
"buyerCountryCode": ""
},
"buyerContact": {
"buyerContactPoint": "",
"buyerContactTelephoneNumber": "",
"buyerContactEmailAddress": ""
}
},
"paymentInstructions": {
"paymentMeansTypeCode": "",
"paymentMeansText": "",
"remittanceInformation": "",
"creditTransfer": [
{
"paymentAccountIdentifier": "",
"paymentAccountName": "",
"paymentServiceProviderIdentifier": ""
}
],
"paymentCardInformation": {
"paymentCardPrimaryAccountNumber": "",
"paymentCardHolderName": ""
},
"directDebit": {
"mandateReferenceIdentifier": "",
"bankAssignedCreditorIdentifier": "",
"debitedAccountIdentifier": ""
}
},
"documentTotals": {
"sumOfInvoiceLineNetAmount": 0,
"sumOfAllowancesOnDocumentLevel": 0,
"sumOfChargesOnDocumentLevel": 0,
"invoiceTotalAmountWithoutVat": 0,
"invoiceTotalVatAmount": 0,
"invoiceTotalVatAmountInAccountingCurrency": 0,
"invoiceTotalAmountWithVat": 0,
"paidAmount": 0,
"roundingAmount": 0,
"amountDueForPayment": 0
},
"vatBreakdown": [
{
"vatCategoryTaxableAmount": 0,
"vatCategoryTaxAmount": 0,
"vatCategoryCode": "",
"vatCategoryRate": 0,
"vatExemptionReasonText": "",
"vatExemptionReasonCode": ""
}
],
"additionalSupportingDocuments": [],
"documentLevelAllowances": [],
"documentLevelCharges": [],
"invoiceLine": [
{
"invoiceLineIdentifier": "",
"invoiceLineNote": "",
"invoiceLineObjectIdentifier": "",
"invoicedQuantity": 0,
"invoicedQuantityUnitOfMeasureCode": "",
"invoiceLineNetAmount": 0,
"referencedPurchaseOrderLineReference": "",
"invoiceLineBuyerAccountingReference": "",
"invoiceLinePeriod": {
"invoiceLinePeriodStartDate": null,
"invoiceLinePeriodEndDate": null
},
"invoiceLineAllowances": [],
"invoiceLineCharges": [],
"priceDetails": {
"itemNetPrice": 0,
"itemPriceDiscount": 0,
"itemGrossPrice": 0,
"itemPriceBaseQuantity": 0,
"itemPriceBaseQuantityUnitOfMeasure": ""
},
"lineVatInformation": [
{
"invoicedItemVatCategoryCode": "",
"invoicedItemVatRate": 0
}
],
"itemInformation": {
"itemName": "",
"itemDescription": "",
"itemSellersIdentifier": "",
"itemBuyersIdentifier": "",
"itemStandardIdentifier": "",
"itemClassificationIdentifier": [
""
],
"itemCountryOfOrigin": "",
"itemAttributes": []
}
}
]
},
"invoicePdf64": "JVBERi0xLjQK..."
}Beispielantwort
{
"message": "ZUGFeRD created",
"zugferdValid": false,
"xInvoiceValid": false,
"numberOfZugferdErrors": 1,
"numberOfxInvoiceErrors": 1,
"zugferd": "JVBERi0xLjcKJY/6qbAKMyAwIG9iago8PC9...",
"zugferdErrorList": [],
"xInvoice": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><rsm:CrossIndustryInvoice>...</rsm:CrossIndustryInvoice>",
"xInvoiceErrorList": []
}Playground
Diesen Endpunkt live im Browser testen.
/api/v1/zugferd/createZugferdPdfFromXinvoiceZUGFeRD-PDF aus XRechnung erstellen
Erstellt ein ZUGFeRD-konformes PDF/A-3, indem eine vorhandene XRechnungs-XML in ein PDF-Dokument eingebettet wird.
| Field | Type | Required | Description |
|---|---|---|---|
xInvoiceXml | string | required | XRechnungs-XML als String. |
invoicePdf64 | string (base64) | required | Base64-kodiertes PDF für die XML-Einbettung. |
Beispiel
{
"xInvoiceXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><rsm:CrossIndustryInvoice>...</rsm:CrossIndustryInvoice>",
"invoicePdf64": "JVBERi0xLjQK..."
}Beispielantwort
{
"valid": false,
"message": "zugferd created",
"numberOfZugferdErrors": 0,
"zugferdFile": "JVBERi0xLjcKJaOIwOMKMyAwIG9iago...",
"zugferdErrors": []
}Playground
Diesen Endpunkt live im Browser testen.
/api/v1/zugferd/createInvoicePdfFromJsonZUGFeRD-Rechnungs-PDF aus JSON erzeugen (Template)
Erzeugt ein ZUGFeRD-konformes Rechnungs-PDF aus JSON-Daten über ein eigenes Word- oder Design-Template. Ab 2027 in Deutschland verpflichtend.
| Field | Type | Required | Description |
|---|---|---|---|
invoice | object | required | Rechnungsobjekt. |
templateId | string | required | ID des Templates für die PDF-Erzeugung. |
Beispiel
{
"templateId": "your-template-id",
"invoice": {
"invoiceNumber": "",
"invoiceIssueDate": "",
"invoiceTypeCode": "",
"invoiceCurrencyCode": "",
"paymentDueDate": "",
"buyerReference": "",
"paymentTerms": "",
"processControl": {
"businessProcessTypeIdentifier": "",
"specificationIdentifier": ""
},
"seller": {
"sellerName": "",
"sellerTradingName": "",
"sellerIdentifier": [
""
],
"sellerLegalRegistrationIdentifier": "",
"sellerVatIdentifier": "",
"sellerTaxRegistrationIdentifier": "",
"sellerAdditionalLegalInformation": "",
"sellerElectronicAddress": "",
"sellerPostalAddress": {
"sellerAddressLine1": "",
"sellerAddressLine2": "",
"sellerAddressLine3": "",
"sellerCity": "",
"sellerPostCode": "",
"sellerCountrySubdivision": "",
"sellerCountryCode": ""
},
"sellerContact": {
"sellerContactPoint": "",
"sellerContactTelephoneNumber": "",
"sellerContactEmailAddress": ""
}
},
"buyer": {
"buyerName": "",
"buyerTradingName": "",
"buyerIdentifier": "",
"buyerLegalRegistrationIdentifier": "",
"buyerVatIdentifier": "",
"buyerElectronicAddress": "",
"buyerPostalAddress": {
"buyerAddressLine1": "",
"buyerAddressLine2": "",
"buyerAddressLine3": "",
"buyerCity": "",
"buyerPostCode": "",
"buyerCountrySubdivision": "",
"buyerCountryCode": ""
},
"buyerContact": {
"buyerContactPoint": "",
"buyerContactTelephoneNumber": "",
"buyerContactEmailAddress": ""
}
},
"paymentInstructions": {
"paymentMeansTypeCode": "",
"paymentMeansText": "",
"remittanceInformation": "",
"creditTransfer": [
{
"paymentAccountIdentifier": "",
"paymentAccountName": "",
"paymentServiceProviderIdentifier": ""
}
],
"paymentCardInformation": {
"paymentCardPrimaryAccountNumber": "",
"paymentCardHolderName": ""
},
"directDebit": {
"mandateReferenceIdentifier": "",
"bankAssignedCreditorIdentifier": "",
"debitedAccountIdentifier": ""
}
},
"documentTotals": {
"sumOfInvoiceLineNetAmount": 0,
"sumOfAllowancesOnDocumentLevel": 0,
"sumOfChargesOnDocumentLevel": 0,
"invoiceTotalAmountWithoutVat": 0,
"invoiceTotalVatAmount": 0,
"invoiceTotalVatAmountInAccountingCurrency": 0,
"invoiceTotalAmountWithVat": 0,
"paidAmount": 0,
"roundingAmount": 0,
"amountDueForPayment": 0
},
"vatBreakdown": [
{
"vatCategoryTaxableAmount": 0,
"vatCategoryTaxAmount": 0,
"vatCategoryCode": "",
"vatCategoryRate": 0,
"vatExemptionReasonText": "",
"vatExemptionReasonCode": ""
}
],
"additionalSupportingDocuments": [],
"documentLevelAllowances": [],
"documentLevelCharges": [],
"invoiceLine": [
{
"invoiceLineIdentifier": "",
"invoiceLineNote": "",
"invoiceLineObjectIdentifier": "",
"invoicedQuantity": 0,
"invoicedQuantityUnitOfMeasureCode": "",
"invoiceLineNetAmount": 0,
"referencedPurchaseOrderLineReference": "",
"invoiceLineBuyerAccountingReference": "",
"invoiceLinePeriod": {
"invoiceLinePeriodStartDate": null,
"invoiceLinePeriodEndDate": null
},
"invoiceLineAllowances": [],
"invoiceLineCharges": [],
"priceDetails": {
"itemNetPrice": 0,
"itemPriceDiscount": 0,
"itemGrossPrice": 0,
"itemPriceBaseQuantity": 0,
"itemPriceBaseQuantityUnitOfMeasure": ""
},
"lineVatInformation": [
{
"invoicedItemVatCategoryCode": "",
"invoicedItemVatRate": 0
}
],
"itemInformation": {
"itemName": "",
"itemDescription": "",
"itemSellersIdentifier": "",
"itemBuyersIdentifier": "",
"itemStandardIdentifier": "",
"itemClassificationIdentifier": [
""
],
"itemCountryOfOrigin": "",
"itemAttributes": []
}
}
]
}
}Beispielantwort
{
"message": "invoice and pdf created",
"fileName": "in-2525-4n4_20250805_1755765122.pdf",
"fileExtension": "pdf",
"fileSize": 78573,
"filecontentB64": "JVBERi0xLjQK..."
}Beispielantwort
{
"message": "invoice and pdf created",
"fileName": "in-2525-4n4_20250805_1755765122.pdf",
"fileExtension": "pdf",
"fileSize": 78573,
"filecontentB64": "JVBERi0xLjQK..."
}Playground
Diesen Endpunkt live im Browser testen.
Validierung
/api/v1/zugferd/validateXinvoiceXMLXRechnung-XML validieren
Validiert XRechnungs-XML gegen EN 16931 und XRechnung-Business-Regeln. Gibt strukturierte Fehler mit Regel-IDs und Positionen zurück, damit Verstöße vor dem Versand behoben werden können.
| Field | Type | Required | Description |
|---|---|---|---|
xinvoiceXML | string | required | XRechnungs-XML-Inhalt als String. |
Beispiel
{
"xinvoiceXML": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>..."
}Beispielantwort
{
"valid": false,
"message": "validated. (7835)",
"xInvoiceErrors": [
{
"id": "BR-CO-25",
"line": null,
"location": "/rsm:CrossIndustryInvoice",
"message": "In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present.",
"schemaFile": "EN16931-CII-validation",
"type": "fatal"
}
]
}Playground
Diesen Endpunkt live im Browser testen.
/api/v1/zugferd/validateZugferdPdfZUGFeRD-PDF validieren
Validiert ein bestehendes ZUGFeRD-PDF inkl. eingebettetem XML gegen EN 16931. Liefert ein klares Bestanden/Nicht-bestanden mit einer detaillierten Fehlerliste.
| Field | Type | Required | Description |
|---|---|---|---|
zugferdFile64 | string (base64) | required | Base64-kodiertes ZUGFeRD-PDF. |
Beispiel
{
"zugferdFile64": "JVBERi0xLjQK..."
}Beispielantwort
{
"valid": false,
"message": "File was validated",
"numberOfZugferdErrors": 10,
"zugferdErrors": [
{
"id": "BR-CO-25",
"line": null,
"location": "/rsm:CrossIndustryInvoice",
"message": "In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present.",
"schemaFile": "EN16931-CII-validation",
"type": "fatal"
}
]
}Playground
Diesen Endpunkt live im Browser testen.
Extraktion
/api/v1/zugferd/extractXInvoiceFromZugferdToJsonXRechnung aus ZUGFeRD als JSON extrahieren
Extrahiert die eingebettete XRechnungs-XML aus einem ZUGFeRD-PDF und gibt sie als strukturiertes JSON-Objekt für die Weiterverarbeitung zurück.
| Field | Type | Required | Description |
|---|---|---|---|
zugferdFileBase64 | string (base64) | required | Das ZUGFeRD-PDF-Dokument als Base64-kodierter String. |
Beispiel
{
"zugferdFileBase64": "JVBERi0xLjcKJbe3wvUKMyAwIG9iago8PC9UeXBl..."
}Beispielantwort
{
"invoice": {
"invoiceNumber": "",
"invoiceIssueDate": "",
"invoiceTypeCode": "",
"invoiceCurrencyCode": "",
"paymentDueDate": "",
"buyerReference": "",
"paymentTerms": "",
"processControl": {
"businessProcessTypeIdentifier": "",
"specificationIdentifier": ""
},
"seller": {
"sellerName": "",
"sellerTradingName": "",
"sellerIdentifier": [
""
],
"sellerLegalRegistrationIdentifier": "",
"sellerVatIdentifier": "",
"sellerTaxRegistrationIdentifier": "",
"sellerAdditionalLegalInformation": "",
"sellerElectronicAddress": "",
"sellerPostalAddress": {
"sellerAddressLine1": "",
"sellerAddressLine2": "",
"sellerAddressLine3": "",
"sellerCity": "",
"sellerPostCode": "",
"sellerCountrySubdivision": "",
"sellerCountryCode": ""
},
"sellerContact": {
"sellerContactPoint": "",
"sellerContactTelephoneNumber": "",
"sellerContactEmailAddress": ""
}
},
"buyer": {
"buyerName": "",
"buyerTradingName": "",
"buyerIdentifier": "",
"buyerLegalRegistrationIdentifier": "",
"buyerVatIdentifier": "",
"buyerElectronicAddress": "",
"buyerPostalAddress": {
"buyerAddressLine1": "",
"buyerAddressLine2": "",
"buyerAddressLine3": "",
"buyerCity": "",
"buyerPostCode": "",
"buyerCountrySubdivision": "",
"buyerCountryCode": ""
},
"buyerContact": {
"buyerContactPoint": "",
"buyerContactTelephoneNumber": "",
"buyerContactEmailAddress": ""
}
},
"paymentInstructions": {
"paymentMeansTypeCode": "",
"paymentMeansText": "",
"remittanceInformation": "",
"creditTransfer": [
{
"paymentAccountIdentifier": "",
"paymentAccountName": "",
"paymentServiceProviderIdentifier": ""
}
],
"paymentCardInformation": {
"paymentCardPrimaryAccountNumber": "",
"paymentCardHolderName": ""
},
"directDebit": {
"mandateReferenceIdentifier": "",
"bankAssignedCreditorIdentifier": "",
"debitedAccountIdentifier": ""
}
},
"documentTotals": {
"sumOfInvoiceLineNetAmount": 0,
"sumOfAllowancesOnDocumentLevel": 0,
"sumOfChargesOnDocumentLevel": 0,
"invoiceTotalAmountWithoutVat": 0,
"invoiceTotalVatAmount": 0,
"invoiceTotalVatAmountInAccountingCurrency": 0,
"invoiceTotalAmountWithVat": 0,
"paidAmount": 0,
"roundingAmount": 0,
"amountDueForPayment": 0
},
"vatBreakdown": [
{
"vatCategoryTaxableAmount": 0,
"vatCategoryTaxAmount": 0,
"vatCategoryCode": "",
"vatCategoryRate": 0,
"vatExemptionReasonText": "",
"vatExemptionReasonCode": ""
}
],
"additionalSupportingDocuments": [],
"documentLevelAllowances": [],
"documentLevelCharges": [],
"invoiceLine": [
{
"invoiceLineIdentifier": "",
"invoiceLineNote": "",
"invoiceLineObjectIdentifier": "",
"invoicedQuantity": 0,
"invoicedQuantityUnitOfMeasureCode": "",
"invoiceLineNetAmount": 0,
"referencedPurchaseOrderLineReference": "",
"invoiceLineBuyerAccountingReference": "",
"invoiceLinePeriod": {
"invoiceLinePeriodStartDate": null,
"invoiceLinePeriodEndDate": null
},
"invoiceLineAllowances": [],
"invoiceLineCharges": [],
"priceDetails": {
"itemNetPrice": 0,
"itemPriceDiscount": 0,
"itemGrossPrice": 0,
"itemPriceBaseQuantity": 0,
"itemPriceBaseQuantityUnitOfMeasure": ""
},
"lineVatInformation": [
{
"invoicedItemVatCategoryCode": "",
"invoicedItemVatRate": 0
}
],
"itemInformation": {
"itemName": "",
"itemDescription": "",
"itemSellersIdentifier": "",
"itemBuyersIdentifier": "",
"itemStandardIdentifier": "",
"itemClassificationIdentifier": [
""
],
"itemCountryOfOrigin": "",
"itemAttributes": []
}
}
]
}
}Playground
Diesen Endpunkt live im Browser testen.