Outage
This section explains how to handle service outages for the E-Receipts solution.
There are two outage scenarios:
- The integrator cannot reach A-Cube APIs (client-side connectivity issue).
- MF1 and MF2 cannot communicate with each other (platform-side communication outage).
Scenario 1: client-side connectivity issue
If your system cannot communicate with A-Cube APIs, follow this process:
- Record transactions in an Emergency Report during the outage.
- Upload the emergency report after connectivity is restored:
- Notify the offline period:
- If receipts were issued via API on the same fiscal day as the outage, close the active journal.
- If not closed manually, the journal is closed automatically 24 hours after the first commercial document of that fiscal day is issued.
Scenario 2: platform-side connectivity issue
In this scenario, the two cloud modules (MF1 and MF2) cannot communicate with each other.
The platform reports this condition through notifications. To monitor status changes, poll:
For the first hour of MF1-MF2 communication issues, the system continues to operate normally.
- At T+30 minutes from detection, MF1 generates an
INTERNAL_COMMUNICATION_FAILUREnotification. - At T+60 minutes, MF1 generates a
STATUS_OFFLINEnotification and fiscal operations are suspended.
When the STATUS_OFFLINE notification is received, E-Receipts automatically:
- closes the active journal
- changes PEM status from
onlinetooffline - prevents the issuance of new receipts via API
After the STATUS_OFFLINE notification is received, the Merchant must:
- Record all new transactions in an emergency report.
- Submit the emergency report using one of the following methods:
- Direct submission by the Merchant: call
POST /v1/mf1/pems/{serial_number}/emergency-reports. - Submission through a supplier: send the report to the supplier through an external channel (for example, by email), then the supplier calls
POST /v1/mf2/pems/{serial_number}/emergency-reports.
- Direct submission by the Merchant: call
Normal operations resume when MF1-MF2 communication is restored and a STATUS_ONLINE notification is received. The PEM status automatically changes from offline to online.
If communication is restored within 30 minutes of the INTERNAL_COMMUNICATION_FAILURE notification, MF1 sends a INTERNAL_COMMUNICATION_RESTORED notification.
In this case, The PEM status remains online, no STATUS_OFFLINE notification is generated, and you can continue issuing receipts without additional actions.
Emergency report outcome
After an emergency report is uploaded, A-Cube transmits it to the Italian Tax Authority. The Supplier can follow the transmission with the MF2 emergency report endpoints:
GET /v1/mf2/pems/{serial_number}/emergency-reports/{id}:statusis the outcome from the Italian Tax Authority (ok,warningorerror),nulluntil it is available, andcompleted_atsays when it was received.GET /v1/mf2/pems/{serial_number}/emergency-reports/{id}/download: the XML of the emergency report.GET /v1/mf2/pems/{serial_number}/emergency-reports/{id}/result: the outcome file from the Italian Tax Authority. In the sandbox nothing is transmitted, so the outcome is signed by A-Cube and has no Tax Authority codes.