Automate e-invoice generation with XTRF e-invoicing integration service
The automatic generation of e-invoices is a Beta feature. For now, only specific customers have access to it.
This feature requires XTRF version 10.1 or higher.
Introduction
The XTRF e-invoicing integration service automates e-invoice generation and processing within your XTRF projects (Smart and Classic). It replaces a PDF invoice document with a Factur-X PDF invoice document. This solution eliminates manual data entry, ensures compliance, and accelerates payment cycles.
This service can be used in countries that support Factur-X or ZUGFeRD standards.
The e-invoice generation service only applies to invoices and does not support credit notes or proforma invoices.
Key advantages:
reduction in processing costs.
built-in compliance with e-invoicing standards.
seamless integration with existing XTRF workflows.
Disclaimer
To the fullest extent permitted by law, XTRF shall not be liable for any damages arising from the use of the e-invoicing service, including but not limited to any loss of business, revenue, or data, or any legal consequences arising from incorrect or non-compliant invoices. Clients assume full responsibility for reviewing and ensuring the accuracy and compliance of invoices generated through the service.
XTRF e-invoice generation works in accordance with the Factur-X / ZUGFeRD mandatory schema. No future changes are planned in this functionality.
How does the XTRF e-invoicing integration service work?
The e-invoicing integration service is based on a macro prepared by the XTRF team. You can run this macro for every client invoice in Ready status, and it will perform the following actions:
Collect the invoice data necessary to generate a Factur-X invoice.
Download the generated PDF Factur-X invoice file.
Replace the old invoice PDF with the new Factur-X PDF invoice file.
Add the Factur-X invoice ready category to the invoice.
Invoice skipping
If an XTRF client invoice does not contain any of the data required by the Factur-X XML schema, it will be skipped and not processed.
Invoices in the status Not Ready will also be skipped as they do not contain any PDF documents.
Skipped invoices will have the Factur-X preparation failure category added.
If the client invoice's status is changed to Not Ready after the Factur-X e-invoice was generated, the macro must be rerun after changing the status back to Ready. This action is required because the e-invoice PDF would be replaced by a regular XTRF PDF document upon changing the status to Ready. We recommend removing the Factur-X invoice ready category from this invoice before reruning the macro.
Field mapping
XTRF client invoice to Factur-X invoice mapping
XTRF invoice item to Factur-X invoice 'IncludedSupplyChainTradeLineItem' mapping
Mapping of the Unit of Measure Code
Mapping of the Tax Category Code
Configure the e-invoicing service
Prerequisites (by XTRF team)
A macro named 'E-Invoicing (Germany) for XTRF' with the Client Invoice scope was added to your instance.
A dummy vendor was created on your instance, and two exemplary mapping files were added as its personal files.
Two new categories were added to the system: Factur-X invoice ready and Factur-X preparation failure.
Go to the Vendors module and check whether the E-invoicing configuration holder vendor profile is available.
Prepare the mapping files for the macro:
Download the exemplary mapping files from the E-invoicing configuration holder vendor profile (vendor profile > Files & Qualifications tab > Personal Files subtab). You can also download these files directly from this guide:
.
.
Adapt the file content to your business requirements (e.g., tax rates). For details on mapping, see the Field mapping sections above.
Ensure the mapping files have UTF-8 encoding.
If you have doubts, check UNECE recommendations and standards for tax category codes and unit of measure codes.
Do not change the file names! They must stay the same as the original file names.
Go to the Configuration menu > System Values: Advanced > Categories and check if the Factur-X invoice ready and Factur-X preparation failure categories are available.
Home Portal administrators might restrict access to the Configuration menu. If you cannot access the Categories section, please contact your Home Portal administrator.
In the E-invoicing configuration holder vendor profile, go to the Files & Qualifications tab > Personal Files subtab and upload the adapted mapping files.
Test the macro as described below in the Use the XTRF e-invoicing integration service section. We recommend using a dummy client and test projects for such testing.
(Optional) Include notes in the e-invoices
Use the XTRF e-invoicing integration service
Invoice template fonts
We recommend using the standard PDF fonts listed below in XTRF invoice templates. Otherwise, Factur-X invoices might not be displayed properly.