ZUGFeRD
Introduction
This documentation provides a complete overview of the xRechnung
object used in the createPdf
endpoint for generating ZUGFeRD-compliant invoices. The xRechnung
object contains key information required to create a legally compliant electronic invoice, following the specifications of the XRechnung format.
Payload Structure
The xRechnung
object is part of the main payload sent to the createPdf
endpoint. Below is the structure and detailed explanation of all properties within the xRechnung
object.
Main Payload Structure
xRechnung Object Details
1. invoiceMain
invoiceMain
This object contains the main details of the invoice, including invoice number, dates, buyer, seller, and payment terms.
Type:
object
Properties:
invoiceNo
(string
): The unique identifier of the invoice.invoiceDate
(DateTime
): The date the invoice was issued.paymentReference
(string
): Reference used for payments.orderNo
(string
): The related order number.orderDate
(DateTime
): The date of the related order.currency
(enum
): The currency of the invoice. See currency enum.buyer
(object
): Information about the buyer.seller
(object
): Information about the seller.notes
(array
): Notes related to the invoice.paymentTerms
(object
): The terms of payment.grandTotalAmount
(decimal
): The total amount of the invoice.duePayableAmount
(decimal
): The amount due for payment.Other related invoice properties.
2. additionalReferencedDocuments
additionalReferencedDocuments
This array contains documents that reference the invoice, such as orders or contracts.
Type:
array
Properties:
id
(string
): Identifier of the referenced document.issueDateTime
(DateTime
): Date and time the document was issued.referenceTypeCode
(enum
): Reference type code. See referenceTypeCode enum.attachmentBinaryObject
(string
): Base64 encoded binary object of the attachment.filename
(string
): Filename of the attachment.typeCode
(enum
): Type code for the document. See typeCode enum.
3. tradeLineItems
tradeLineItems
This array contains items or services billed in the invoice.
Type:
array
Properties:
globalID
(object
): Global ID of the item or service.sellerAssignedID
(string
): ID assigned by the seller.name
(string
): Name of the item or service.billedQuantity
(decimal
): Quantity billed.lineTotalAmount
(decimal
): Total amount for the line item.taxCategoryCode
(enum
): Tax category code. See taxCategoryCode enum.netUnitPrice
(decimal
): Net unit price of the item.unitCode
(enum
): Unit code for the item. See unitCode enum.Other related line item properties.
4. taxes
taxes
This array contains detailed tax information applied to the invoice.
Type:
array
Properties:
basisAmount
(decimal
): Amount on which the tax is calculated.percent
(decimal
): Tax percentage.typeCode
(enum
): Type of tax. See taxType enum.categoryCode
(enum
): Tax category code. See taxCategoryCode enum.exemptionReasonCode
(enum
): Reason for tax exemption. See exemptionReasonCode enum.
5. serviceCharges
serviceCharges
This array contains additional charges applied to the invoice.
Type:
array
Properties:
tax
(object
): Tax information related to the service charge (similar totaxes
object).amount
(decimal
): Amount of the service charge.description
(string
): Description of the service charge.
6. receivableSpecifiedTradeAccountingAccounts
receivableSpecifiedTradeAccountingAccounts
This array contains accounting accounts related to the trade, either receivable or payable.
Type:
array
Properties:
tradeAccountID
(string
): ID of the trade account.tradeAccountTypeCode
(enum
): Type of trade account. See tradeAccountTypeCode enum.
Enumerations
1. currency
currency
Represents currency codes.
2. schemeID
schemeID
Identification schemes for IDs.
3. country
country
Country codes.
4. subjectCode
subjectCode
Subject codes for notes.
5. contentCode
contentCode
Content codes for notes.
6. profile
profile
Invoice profiles.
7. type
type
Invoice types.
8. referenceTypeCode
referenceTypeCode
Reference type codes for documents.
9. taxCategoryCode
taxCategoryCode
Tax category codes.
10. taxType
taxType
Tax types.
11. electronicAddressSchemeID
electronicAddressSchemeID
Electronic address schemes.
12. typeCode
typeCode
Document type codes.
13. unitCode
unitCode
Unit codes for line items.
14. paymentMeansTypeCode
paymentMeansTypeCode
Payment means type codes.
15. tradeAccountTypeCode
tradeAccountTypeCode
Trade account type codes.
This documentation provides a complete and structured overview of the xRechnung
object, including all properties and enumerations used in the payload.
Last updated