Albania real-time VAT reporting (fiscalization law 2021)

Albania is introducing real-time reporting of VAT invoices to the tax authorities

When clicking to Post an invoice, it is necessary to send some details (amount, tax) to the tax office over an API

Are there any modules giving an example of how to do this from other countries with a similar regime?

This is very similar to Suministro Inmediato de Información (SII) in Spain

The Spanish example appears to permit submission of invoices up to 4 days after posting.

In Albania and other Balkan countries it looks like they are expected to do this in real-time: they click post, the invoice is copied to the tax office over HTTPS and they receive a response with a serial number to be placed on the printed invoice.

It is not clear what they can do if the API is down, certificate expired, power cuts, etc. Some of the news sites suggest they have been encouraged to participate in this in the hope of joining the EU.

I found some technical specifications for Albania and Montenegro.

It looks like they may be using slightly different procedures depending on whether it is a cash sale, B2C or B2B scenario.

Albania specs:

Fiscalization
https://www.tatime.gov.al/shkarko.php?id=8576

eInvoice
https://www.tatime.gov.al/shkarko.php?id=10418

Montenegro specs:
https://upravaprihoda.gov.me/en/news/234450/ELECTRONIC-FISCALISATION-NEW-VERSIONS-OF-TECHNICAL-AND-FUNCTIONAL-SPECIFICATIONS.html

https://upravaprihoda.gov.me/ResourceManager/FileDownload.aspx?rId=416704&rType=2

Yes this is the case in Spain, but the Tryton implemenation sends the invoices in 15minutes.

Then probably the best is to add a new field to store the Tax Authority serial number and make it required to post the invoice.

As this involves an extarnal API and data needs to be syncronized between it and Tryton, a separate transaction must be used to store the Tax Authority number on the invoice to avoid losing it in case there is some error in Tryton.

To what extent could/should this type of thing be generalized and shared between countries? Some of these countries are not so big and may not have the critical mass of developers to create and support country-specific implementations of this fiscalisation process.

Normally regulated thinks (chart of accounts, VAT reporting and so one) are easier to generalitze as there is a single way of doing.

For me, before going into the real-time VAT reporting we need to have a Chart of Accounts for the country. Let me explain: both features can be implemented in the same time, but it won’t be possible to have a generic VAT reporting without all the configuration needed on the chart of accounts.

I do not think we need a mass of developers but someone supporting it.