Add support for Peppol

I made a little survey of the Peppol service providers.
I found at least this three which are API oriented:

2 of them are using UBL as exchange format for the outgoing and incoming invoices.
And Billit has its own JSON format (from which, I guess, they convert into UBL (or any other allowed format by Peppol)) but also support SFTP. (I do not think the API is great because they recompute the taxes.)

So I think that adding support for Peppol should be done first by creating a edocument_ubl and document_incoming_ubl which support the Invoice document.

After that the connection to specific providers will be just about implemented the submission and webhook routes and authentication.
I think it will be good to have options for the service providers (as we have already for the carriers).

What do you think?

4 Likes

I think this is a really nice addition, but Tryton lacks the import and export of UBL documents. Import and export of UBL invoices already is a huge step forward. Sending them through Peppol is a next step and can be done in a separate module.

So the first step is to export an UBL invoice which then can be send by a selected method. On the party a selection can be made in which format and how to send the invoice. Based on those choices the right method is chosen.