E-Rechnung
This page explains how to create electronic invoices (XRechnung or Zugferd) using the Detailed Invoice Model API. It includes field descriptions, data structures, and examples for different payment me
Detailed Invoice Model
See -> Detailed Invoice Model
Structure explained
This is the general structure of each call to create an e-invoice file.
//Main function call
app.businessFunction({
functionName: "ERechnung",
methodName: "CreateERechnung",
//Option to choose the profile (xRechnung or Zugferd)
//Option to save the file as an attachment
//Invoice Header with general data
//Payment Terms
//Depending on the payment terms debitor or creditor information
//Invoice totals
//Taxes for each tax rate
//Seller information
//Buyer information
//Item lines with price and quantity information
});First select the profile that is to be used to create the XML file.
You can use these options to create an attachment and add it to an existing data record.
The general header data of the invoice is saved in this area. The fields “invoiceNoAsReference” and “referenceOrderNo” are mandatory fields. If no information is available, the invoice number can be used.
The payment terms must be transferred as an array. Depending on the payment type, either a debitor account or creditor account is required.
The invoice totals are shown in this section. The totals are cross-checked against the individual items.
The control information is transferred in an array. One entry is required for each tax rate.
Necessary information about the seller including identification and contact details.
Necessary information about the buyer including identification.
Information on article items on the invoice. If there is an item discount or surcharge, this can be entered here.
Examples
National Invoice
International Invoice
Bank transfer with attachment archive
Direct Debit with attachment archive
Invoice with discount
Invoice with line discount
Invoice with surcharge
Invoice with cash discount
Bank Transfer with multiple tax rates
Direct debit with multiple tax rates
International bank transfer
Last updated
Was this helpful?