Factur-X & PA France — Connect Odoo to Your Plateforme Agréée (XP Z12-013)
by FlexigoTech https://flexigotech.com$ 54.90
In-App PurchasesFactur-X & PA France: connect Odoo to your Plateforme Agréée
Send invoices, life-cycle statuses and e-reporting from Odoo to the Plateforme Agréée (PA) you chose, through the AFNOR XP Z12-013 API. Receive your supplier invoices the same way.
The reform
From 1 September 2026, companies established in France must receive their B2B invoices through a Plateforme Agréée immatriculated by the tax administration; large and mid-size companies must also issue them that way, and every company follows on 1 September 2027. Sales to individuals and international sales are not e-invoiced but e-reported. Odoo's own France - E-Invoicing module connects to the Odoo platform. This module connects Odoo to any other PA that offers the XP Z12-013 API, the standard listed by the DGFiP for the reform.
How it works
- Under Accounting › Configuration › PA Connections, pick your PA from the official DGFiP list (shipped with the module) and enter the Flow Service and Directory Service URLs, the OAuth2 client credentials and the 4-digit matricule your PA gives you.
- On a posted customer invoice, Send to PA deposits it in UBL (French CIUS), CII or Factur-X. The PA acknowledgement and each life-cycle status then appear on the invoice.
- Supplier invoices made available by the PA become draft vendor bills. From the bill you answer with a status: approved, disputed, suspended, refused with an official reason code, payment sent.
- When a customer has paid, the seller sends Encaissée (212) with the amount split by VAT rate.
- The e-reporting transmissions that Odoo's France - E-Invoicing module builds are deposited on your PA, with its matricule as sender.
What it does
Invoices in the three formats of the reform
UBL from Odoo's French CIUS builder, CII EN 16931 and Factur-X PDF/A-3 with the CII embedded, all generated by Odoo itself. Invoices Odoo cannot convert are stopped with the missing data listed.
Life cycle 200 to 213
Statuses of the DGFiP list, received from the PA and sent from Odoo as CDAR messages that are checked against the UN/CEFACT D22B schema before leaving. Mandatory statuses also address the public portal.
Supplier invoice reception
Polling every 15 minutes or webhooks: incoming invoices are imported with Odoo's UBL, CII and Factur-X decoders.
E-reporting through your PA
Transactions and payments (B2C and international) built by Odoo's official module, sent to your PA; the answer of the public portal updates the transmission.
National directory and Sirene
Look a customer up in the national directory through your PA (public entities are detected and invoiced as B2G) and complete partners from the INSEE Sirene register with your own API key.
Audit trail
Every API call is logged and cannot be edited. One click exports a ZIP with the log, the flows, the life cycle and the exact files exchanged.
What you need
- A contract with a Plateforme Agréée that exposes the AFNOR XP Z12-013 API, and the URLs, credentials and matricule it gives you. Ask your PA whether it offers this API.
- The environment variable
FLEXIGO_FERNET_KEYon the Odoo server: PA secrets are stored encrypted with it. - The SIRET of your company and of your French customers in their Company Registry field.
- Optional: an INSEE API Sirene key (portail-api.insee.fr) for partner completion.
Compatibility
Odoo 19 Community and Enterprise. It relies on Odoo's standard modules France - E-Invoicing (l10n_fr_pdp) and Import/Export electronic invoices with UBL/CII, which come with the French localisation. No external service other than your PA.
Frequently asked questions
Which Plateformes Agréées does it work with?
Any PA that offers the XP Z12-013 API (Flow Service, and Directory Service for directory lookups). The module lists the 149 platforms of the official DGFiP list of 22 September 2026, but being on the list does not mean a platform offers that API: check with your PA.
Do I still need Odoo's France - E-Invoicing module?
Yes, it is installed with it. This module reuses its French UBL builder and its e-reporting, and only replaces the platform the documents are sent to.
Can I test without a contract?
You need the test environment of your PA: the module talks to the URLs you enter, nothing is simulated.
What happens to invoices to individuals or foreign customers?
They are not e-invoiced. Odoo aggregates them into e-reporting transmissions, which this module deposits on your PA.
How are webhooks secured?
With the signing key the PA returns when the webhook is registered: every callback must carry a valid Afnor-Signature less than five minutes old, or it is refused and logged.
Is support included?
Yes, by email at comercial@flexigotech.com.
Sources
DGFiP external specifications v3.2 and AFNOR XP Z12-012/013/014 (impots.gouv.fr/specifications-externes-b2b), official list of Plateformes Agréées (impots.gouv.fr), UN/CEFACT CDAR D22B.
Made by FlexigoTech · flexigotech.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1967 |
| Technical Name |
flexigo_france_pdp |
| License | OPL-1 |
| Website | https://flexigotech.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module