DematFacturesAchats batch
If you are not interfaced with a Partner Dematerialization Platform (PDP), you can use the DematFacturesAchats batch to import Factur-X in Akuiteo.
This batch is used to import Factur-X from the desired FTP or SFTP directory in order to generate the corresponding temporary invoices in the Purchase Portal.

When creating the batch, select DematFacturesAchats in the Batch template drop-down list.
When it is running, the batch analyzes the FTP or SFTP directory specified in the FTP_CHEMIN parameter of the batch in order to identify the existence of dematerialized invoices in the Factur-X format. For each Factur-X identified in this directory, the batch tries to generate the relevant provisional invoice in the Purchase Portal.
The batch creates provisional invoices only on the authorized companies, which means, the companies specified in the SOCIETES_A_TRAITER parameter of the batch, or all companies if no company is specified in this parameter.
When a temporary invoice is generated during the process, the matching dematerialized invoice is placed into the corresponding directory specified in the FTP_CHEMIN_OK parameter and is no longer visible in the directory of the FTP_CHEMIN parameter.
If a provisional invoice cannot be generated during the process, the relevant dematerialized invoice cannot be move and stays in the FTP_CHEMIN parameter directory. The reason why the provisional invoice cannot be generated is indicated in the execution log of the batch.
Note
The Basic data profile corresponds to Factur-X that contain essential data about the header, the footer, and lines of invoices. The Basic WL profile corresponds to the Basic profile without invoice lines.

The parameters in the following table correspond only to the parameters specific to the DematFacturesAchats batch.
Reference
To view the parameters common to most batches, refer to Setting up the common parameters.
Code | Description | Type | Required |
---|---|---|---|
FTP_CHEMIN
|
Path to access the FTP or SFTP directory on the server where the Factur-X are to be imported by the batch. |
String Ex: demat/facturx |
Yes |
FTP_CHEMIN_OK
|
Path to access the FTP or SFTP server's directory where the Factur-X to be imported by the batch are located. If a provisional invoice cannot be generated during the process, the relevant Factur-X is not moved and stays in the FTP_CHEMIN parameter directory. |
String Ex: demat/facturx_ok |
Yes |
FTP_MODE
|
Method to connect to the FTP or SFTP server. Important Only the FTP or SFTP connection methods can be used. |
String Ex:FTP or SFTP |
No |
FTP_PASSWORD
|
Password to connect to the FTP or SFTP server. This password must be linked to the FTP_USER specified. |
String Ex: aHFG45*F |
No |
FTP_PORT
|
FTP or SFTP server port. |
Number Ex: 21 |
Yes |
FTP_SERVEUR
|
Address of the FTP or SFTP server where the Factur-X to be imported by the batch are located. |
String Ex: ftp.akuiteo.fr |
Yes |
FTP_USER
|
Login to connect to the FTP or SFTP server. |
String Ex: TECH |
No |
SFTP_SSH_KEYSTORE
|
Important This parameter is required if SFTP is specified for Path to access the Keystore file that is protected by a password and that contains keys and certificates. |
String Ex: keystore |
No |
SFTP_SSH_KEYSTORE_PASSWORD
|
Important This parameter is required if SFTP is specified for Password to access the Keystore file. |
String Ex: aHFG45*F |
No |
SOCIETES_A_TRAITER
|
Companies code taken into account for the Factur-X import. The batch can only create provisional invoices on the companies specified in this parameter. Factur-X of other companies will not be imported. To select multiple companies, separate the company codes with / characters. Leave this parameter empty if you want all companies to be taken into account. Important In the case of an import on several companies, it is necessary to fill in a partitioned customer on the relevant companies in the |
String Ex: COM1;COM2;COM3 |
No |