Skip to content
Log in

JSON-Rechnungsfelder zu UBL XML (EN 16931 / Peppol BIS 3.0)

Diese Anleitung beschreibt die Zuordnung zwischen den B2Brouter Invoice API-Feldern, den entsprechenden Business Terms (BT) gemäß dem europäischen E-Rechnungsstandard (EN 16931) und den XML-Pfaden im UBL 2.1-Modell (einschließlich Peppol BIS Billing 3.0).

BTBusiness TermAPI-Feld (B2Brouter)UBL XPath
BT-1Rechnungsnummerinvoice.numbercbc:ID
BT-2Ausstellungsdatuminvoice.datecbc:IssueDate
BT-3Rechnungstyp-Codeinvoice.type_code (API 2026-03-02)cbc:InvoiceTypeCode (oder cbc:CreditNoteTypeCode)
BT-5Dokumentwährunginvoice.currencycbc:DocumentCurrencyCode
BT-6Steuerwährungs-Codeinvoice.contact.currencycbc:TaxCurrencyCode
BT-7Steuerlicher Leistungszeitpunktinvoice.tax_point_datecbc:TaxPointDate
BT-9Zahlungsfälligkeitsdatuminvoice.due_datecbc:DueDate
BT-10Käuferreferenzinvoice.buyer_referencecbc:BuyerReference
BT-19Buchhaltungskosteninvoice.buyer_accounting_referencecbc:AccountingCost
BT-22Hinweis (Header)invoice.extra_infocbc:Note

Hinweise:

  • BT-6: Wird nur ausgegeben, wenn die Währung des Käuferkontakts von der Rechnungswährung (BT-5) abweicht und Steuerbeträge in dieser Währung vorhanden sind. Bei Angabe wird ein zweiter cac:TaxTotal-Block mit Beträgen in dieser Währung dargestellt.
BTBusiness TermAPI-Feld (B2Brouter)UBL XPath
BT-13Bestellreferenzinvoice.ponumbercac:OrderReference/cbc:ID
BT-14Auftragsreferenzinvoice.sales_order_referencecac:OrderReference/cbc:SalesOrderID
BT-12Vertragsreferenzinvoice.contract_numbercac:ContractDocumentReference/cbc:ID
BT-15Empfangsbestätigungsreferenzinvoice.receiving_advice_referencecac:ReceiptDocumentReference/cbc:ID
BT-16Lieferscheinreferenzinvoice.delivery_note_numbercac:DespatchDocumentReference/cbc:ID
BT-25Vorherige Rechnungsreferenzinvoice.amended_numbercac:BillingReference/cac:InvoiceDocumentReference/cbc:ID
BT-26Datum der vorherigen Rechnunginvoice.amended_datecac:BillingReference/cac:InvoiceDocumentReference/cbc:IssueDate
BT-73Beginn Rechnungszeitrauminvoice.invoicing_period_startcac:InvoicePeriod/cbc:StartDate
BT-74Ende Rechnungszeitrauminvoice.invoicing_period_endcac:InvoicePeriod/cbc:EndDate
BT-11Projektreferenzinvoice.file_referencecac:ProjectReference/cbc:ID
Ursprungsdokumentreferenzinvoice.lot_referencecac:OriginatorDocumentReference/cbc:ID

Hinweise:

  • Bei Gutschriften wird file_reference (BT-11) als cac:AdditionalDocumentReference/cbc:ID statt als cac:ProjectReference/cbc:ID ausgegeben.

Diese Zuordnung gilt für eine ausgestellte Rechnung; bei einer empfangenen Rechnung sind AccountingSupplierParty und AccountingCustomerParty zu vertauschen.

Selbstabrechnung (IssuedSelfInvoice / ReceivedSelfInvoice): Bei der Selbstabrechnung stellt der Käufer die Rechnung im Namen des Lieferanten aus, sodass die Parteirollen im XML gegenüber den API-Feldern umgekehrt sind. Bei einem IssuedSelfInvoice erscheinen account-Daten in AccountingCustomerParty (Ihr Unternehmen ist der Käufer) und invoice.contact-Daten in AccountingSupplierParty (der Kontakt ist der Lieferant). Für ReceivedSelfInvoice gilt das symmetrisch.

BTBusiness TermAPI-Feld (B2Brouter)UBL XPath
BT-34Endpunkt-ID des Verkäufersaccount.pin_valuecac:AccountingSupplierParty/cac:Party/cbc:EndpointID @schemeID
BT-27Rechtlicher Name des Verkäufersaccount.namecac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName
BT-31USt-IdNr. des Verkäufersaccount.tin_valuecac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
BT-35Straße des Verkäufersaccount.addresscac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:StreetName
BT-36Straße des Verkäufers 2account.address2cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:AdditionalStreetName
BT-37Stadt des Verkäufersaccount.citycac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName
BT-38PLZ des Verkäufersaccount.postalcodecac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZone
BT-39Provinz des Verkäufersaccount.provincecac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity
BT-40Land des Verkäufersaccount.countrycac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode
BT-41Ansprechpartner Verkäuferaccount.contact_personcac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:Name
BT-42Telefon des Verkäufersaccount.phonecac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:Telephone
BT-43E-Mail des Verkäufersaccount.emailcac:AccountingSupplierParty/cac:Party/cac:Contact/cbc:ElectronicMail
BTBusiness TermAPI-Feld (B2Brouter)UBL XPath
BT-49Endpunkt-ID des Käufersinvoice.contact.pin_valuecac:AccountingCustomerParty/cac:Party/cbc:EndpointID @schemeID
BT-44Rechtlicher Name des Käufersinvoice.contact.namecac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName
BT-45Handelsname des Käufersinvoice.contact.namecac:AccountingCustomerParty/cac:Party/cac:PartyName/cbc:Name
BT-48USt-IdNr. des Käufersinvoice.contact.tin_valuecac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
BT-50Straße des Käufersinvoice.contact.addresscac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:StreetName
BT-51Straße des Käufers 2invoice.contact.address2cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:AdditionalStreetName
BT-52Stadt des Käufersinvoice.contact.citycac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName
BT-53PLZ des Käufersinvoice.contact.postalcodecac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:PostalZone
BT-54Provinz des Käufersinvoice.contact.provincecac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity
BT-55Land des Käufersinvoice.contact.countrycac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode
BT-56Ansprechpartner Käuferinvoice.contact.contact_personcac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:Name
BT-57Telefon des Käufersinvoice.contact.phonecac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:Telephone
BT-58E-Mail des Käufersinvoice.contact.emailcac:AccountingCustomerParty/cac:Party/cac:Contact/cbc:ElectronicMail
BTBusiness TermAPI-Feld (B2Brouter)UBL XPath
BT-72Lieferdatuminvoice.delivery_datecac:Delivery/cbc:ActualDeliveryDate
BT-71Lieferort-IDinvoice.delivery_location_idcac:Delivery/cac:DeliveryLocation/cbc:ID
BT-75Lieferadresse Straßeinvoice.delivery_addresscac:Delivery/cac:DeliveryLocation/cac:Address/cbc:StreetName
BT-76Lieferadresse Straße 2invoice.delivery_address2cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:AdditionalStreetName
BT-77Lieferstadtinvoice.delivery_citycac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CityName
BT-78Lieferpostleitzahlinvoice.delivery_postalcodecac:Delivery/cac:DeliveryLocation/cac:Address/cbc:PostalZone
BT-79Lieferprovinzinvoice.delivery_provincecac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CountrySubentity
BT-80Lieferlandinvoice.delivery_countrycac:Delivery/cac:DeliveryLocation/cac:Address/cac:Country/cbc:IdentificationCode
BT-70Name der Lieferparteiinvoice.delivery_party_namecac:Delivery/cac:DeliveryParty/cac:PartyName/cbc:Name
BTBusiness TermAPI-Feld (B2Brouter)UBL XPath
BT-81Zahlungsmittel-Codeinvoice.payment_methodcac:PaymentMeans/cbc:PaymentMeansCode @listID='UNCL4461'
BT-82Zahlungsmitteltextinvoice.payment_method_textcac:PaymentMeans/cbc:PaymentMeansCode @name
BT-83Verwendungszweckinvoice.remittance_informationcac:PaymentMeans/cbc:PaymentID
BT-84IBAN des Zahlungsempfängersinvoice.bank_account.ibancac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID
BT-84-0Kontonummer des Zahlungsempfängersinvoice.bank_account.numbercac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID (Fallback ohne IBAN)
BT-85Name der Bank des Zahlungsempfängersinvoice.bank_account.namecac:PaymentMeans/cac:PayeeFinancialAccount/cbc:Name (derzeit nicht gerendert)
BT-86BIC des Zahlungsempfängersinvoice.bank_account.biccac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID
BT-87Kartennummerinvoice.card_account_attributes.account_numbercac:PaymentMeans/cac:CardAccount/cbc:PrimaryAccountNumberID
BT-87-0Name des Karteninhabersinvoice.card_account_attributes.holder_namecac:PaymentMeans/cac:CardAccount/cbc:HolderName
BT-88Kartennetzwerk-IDinvoice.card_account_attributes.networkcac:PaymentMeans/cac:CardAccount/cbc:NetworkID
BT-20Zahlungsbedingungeninvoice.payment_termscac:PaymentTerms/cbc:Note
BT-89Mandatsreferenz (nur SEPA-Lastschrift)invoice.mandate_reference_identifiercac:PaymentMeans/cac:PaymentMandate/cbc:ID
BT-90Gläubigerreferenz (SEPA-Lastschrift)invoice.bank_assigned_creditor_referencecac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID @schemeID='SEPA'
BT-91IBAN des Schuldnerkontos (SEPA-DD)invoice.contact_ibancac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:ID
BTBusiness TermAPI-Feld (B2Brouter)UBL XPath
BT-106Summe der Nettopositionen(berechnet)cac:LegalMonetaryTotal/cbc:LineExtensionAmount
BT-109Betrag ohne Steuer(berechnet)cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount
BT-107Gesamtrabattbetrag(berechnet)cac:LegalMonetaryTotal/cbc:AllowanceTotalAmount
BT-108Gesamtzuschlagsbetrag(berechnet)cac:LegalMonetaryTotal/cbc:ChargeTotalAmount
BT-112Betrag inkl. Steuer(berechnet)cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount
BT-113Vorauszahlungsbetrag gesamtinvoice.payments_on_accountcac:LegalMonetaryTotal/cbc:PrepaidAmount
BT-114Rundungsbetrag(aus Rechnungsanpassung)cac:LegalMonetaryTotal/cbc:PayableRoundingAmount
BT-115Fälliger Zahlungsbetraginvoice.payable_amountcac:LegalMonetaryTotal/cbc:PayableAmount
BT-110MwSt.-Gesamtbetrag der Rechnung(berechnet)cac:TaxTotal/cbc:TaxAmount
BT-116Steuerpflichtige Basis (Kategorie)(aus Positionen berechnet)cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount
BT-117Steuerbetrag (Kategorie)(aus Positionen berechnet)cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount
Einbehaltener Betraginvoice.withheld_percentcac:AllowanceCharge/cbc:Amount
Grund des Einbehaltsinvoice.amounts_withheld_reasoncac:AllowanceCharge/cbc:AllowanceChargeReason
BTBusiness TermAPI-Feld (B2Brouter)UBL XPath
BT-92Rabattbetragallowance_charges_attributes[]{allowance_charge_indicator: "allowance", amount: X}cac:AllowanceCharge[cbc:ChargeIndicator=false]/cbc:Amount
BT-93Rabattbasiswert(berechnet bei Prozentangabe)cac:AllowanceCharge[cbc:ChargeIndicator=false]/cbc:BaseAmount
BT-94Rabattprozentsatzallowance_charges_attributes[]{allowance_charge_indicator: "allowance", percentage: X}cac:AllowanceCharge[cbc:ChargeIndicator=false]/cbc:MultiplierFactorNumeric
BT-97Rabattgrundallowance_charges_attributes[]{allowance_charge_indicator: "allowance", description: "..."}cac:AllowanceCharge[cbc:ChargeIndicator=false]/cbc:AllowanceChargeReason
BT-99Zuschlagsbetragallowance_charges_attributes[]{allowance_charge_indicator: "charge", amount: X}cac:AllowanceCharge[cbc:ChargeIndicator=true]/cbc:Amount
BT-100Zuschlagsbasiswert(berechnet bei Prozentangabe)cac:AllowanceCharge[cbc:ChargeIndicator=true]/cbc:BaseAmount
BT-101Zuschlagsprozentsatzallowance_charges_attributes[]{allowance_charge_indicator: "charge", percentage: X}cac:AllowanceCharge[cbc:ChargeIndicator=true]/cbc:MultiplierFactorNumeric
BT-104Zuschlagsgrundallowance_charges_attributes[]{allowance_charge_indicator: "charge", description: "..."}cac:AllowanceCharge[cbc:ChargeIndicator=true]/cbc:AllowanceChargeReason
BT-102Steuer auf Rabatt/Zuschlag anwendenallowance_charges_attributes[]{apply_taxes: true}cac:AllowanceCharge/cac:TaxCategory

Alle nachfolgenden Attribute sind Eigenschaften von Objekten in: invoice.invoice_lines_attributes[].

BTBusiness TermAPI-Feld (Rechnungsposition)UBL XPath
BT-126Rechnungspositions-IDpositioncac:InvoiceLine/cbc:ID
BT-129Berechnete Mengequantitycac:InvoiceLine/cbc:InvoicedQuantity
BT-130Berechnete Menge (Einheit)unitcac:InvoiceLine/cbc:InvoicedQuantity @unitCode
BT-131Positionsbetragextension_amount (oder berechnet)cac:InvoiceLine/cbc:LineExtensionAmount
BT-146Einzelpreispricecac:InvoiceLine/cac:Price/cbc:PriceAmount
BT-153Artikelnamedescriptioncac:InvoiceLine/cac:Item/cbc:Name
BT-154Artikelbeschreibungnotescac:InvoiceLine/cac:Item/cbc:Description
BT-155Artikelnummer (Verkäufer)article_codecac:InvoiceLine/cac:Item/cac:SellersItemIdentification/cbc:ID
BT-156Artikelnummer (Käufer)article_code_buyercac:InvoiceLine/cac:Item/cac:BuyersItemIdentification/cbc:ID
BT-157Standard-Artikelnummerarticle_code2cac:InvoiceLine/cac:Item/cac:StandardItemIdentification/cbc:ID @schemeID
BT-157-1Schema der Standard-Artikelnummerarticle_code2_schemecac:InvoiceLine/cac:Item/cac:StandardItemIdentification/cbc:ID @schemeID (Standard: 0160)
BT-158Klassifikationscodeclassification_codecac:InvoiceLine/cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode @listID
BT-158-1Schema des Klassifikationscodesclassification_code_schemecac:InvoiceLine/cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode @listID
BT-151MwSt.-Kategorie (je Position)taxes_attributes[].categorycac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID
BT-152MwSt.-Prozentsatz (je Position)taxes_attributes[].percentcac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent
BT-120Steuerbefreiungsgrundtaxes_attributes[].commentcac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:TaxExemptionReason
BT-160Name der zusätzlichen Artikeleigenschaftadditional_item_properties_attributes[].namecac:InvoiceLine/cac:Item/cac:AdditionalItemProperty/cbc:Name
BT-161Wert der zusätzlichen Artikeleigenschaftadditional_item_properties_attributes[].valuecac:InvoiceLine/cac:Item/cac:AdditionalItemProperty/cbc:Value
BT-133Buchhaltungsreferenz Käufercontact_referencecac:InvoiceLine/cbc:AccountingCost
BT-134Beginn Abrechnungszeitraum (Position)invoicing_period_startcac:InvoiceLine/cac:InvoicePeriod/cbc:StartDate
BT-135Ende Abrechnungszeitraum (Position)invoicing_period_endcac:InvoiceLine/cac:InvoicePeriod/cbc:EndDate
BT-136Rabattbetrag (Position)allowance_charges_attributes[]{allowance_charge_indicator: "allowance", amount: X}cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator=false]/cbc:Amount
BT-138Rabattprozentsatz (Position)allowance_charges_attributes[]{allowance_charge_indicator: "allowance", percentage: X}cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator=false]/cbc:MultiplierFactorNumeric
BT-139Rabattgrund (Position)allowance_charges_attributes[]{allowance_charge_indicator: "allowance", description: "..."}cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator=false]/cbc:AllowanceChargeReason
BT-141Zuschlagsbetrag (Position)allowance_charges_attributes[]{allowance_charge_indicator: "charge", amount: X}cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator=true]/cbc:Amount
BT-143Zuschlagsprozentsatz (Position)allowance_charges_attributes[]{allowance_charge_indicator: "charge", percentage: X}cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator=true]/cbc:MultiplierFactorNumeric
BT-144Zuschlagsgrund (Position)allowance_charges_attributes[]{allowance_charge_indicator: "charge", description: "..."}cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator=true]/cbc:AllowanceChargeReason
BT-128Bestellreferenz (Position)invoice_lines_attributes[].ponumbercac:InvoiceLine/cac:DocumentReference/cbc:ID
BT-132Bestellpositionsreferenzinvoice_lines_attributes[].sequence_numbercac:InvoiceLine/cac:OrderLineReference/cbc:LineID