Skip to main content

Migration Guide - December 2026

info

These changes will be available by the end of Wednesday, December 2, 2026.

What to do, in short​

Five changes will not be backward compatible: an integration that does not adopt them will get errors after the release. This guide accompanies the release notes and explains, for each one, what to change in your code, with requests and responses before and after.

ChangeAffectsWhat to do
Payment type ticket to be removedCash register (MF1), issuing receiptsUse meal_vouchers or other_vouchers and voucher_count
GET .../returnable-items to be removedCash register (MF1), returnsCall GET .../return-data and read items from the response
Inactivity period: 202 and 422Cash register (MF1)Accept 202 as success, read validation errors from the 422
logo to be moved out of the configurationSupplier back office (MF2)Upload the logo with PUT .../configuration/logo
PEM discard without a bodySupplier back office (MF2)Do not read the body of the 202 response

The endpoints will stay the same: only the way the OpenAPI specification is split will change (MF1 and MF2). The other changelog items are optional additions, summarised in the last section.

1. Voucher payments​

In POST /v1/mf1/receipts the ticket type will no longer exist: a request that uses it will get a 422. It will be replaced by two types, and the ticket_quantity field will become voucher_count.

BeforeAfterWhen to use it
ticketmeal_vouchersMeal vouchers (buoni pasto)
ticketother_vouchersOther vouchers, for example celiac disease vouchers (buoni celiachia)
ticket_quantityvoucher_countNumber of vouchers used

voucher_count will be required with meal_vouchers and other_vouchers, and must be null (or absent) with every other type.

Before:

"payment_details": [
{"type": "cash", "amount": "4.00"},
{"type": "ticket", "amount": "16.00", "ticket_quantity": 2}
]

After:

"payment_details": [
{"type": "cash", "amount": "4.00"},
{"type": "meal_vouchers", "amount": "16.00", "voucher_count": 2}
]

If your cash register currently maps a single "ticket" method, distinguish meal vouchers from other vouchers before sending the request.

2. Returns​

GET /v1/mf1/receipts/{receipt_uuid}/returnable-items will be removed. It will be replaced by GET /v1/mf1/receipts/{receipt_uuid}/return-data, which returns an object instead of an array: the items are in the items field, alongside the lottery codes, the VAT summaries and the amounts still returnable per payment method.

Today, the response is the list of items:

[
{"id": 1, "type": "goods", "quantity": "2.00", "returned_quantity": "1.00", "description": "Casco di banane", "unit_price": "5.20", "vat_rate_code": "4.00", "discount": "0.40"}
]

After the release, the same items will be inside items:

{
"items": [
{"id": 1, "type": "goods", "quantity": "2.00", "returned_quantity": "1.00", "description": "Casco di banane", "unit_price": "5.20", "vat_rate_code": "4.00", "discount": "0.40", "surcharge": "0.00"}
],
"lottery": {"lottery_code": "CODICE123", "two_dimensional_lottery_code": null},
"summary": [
{"vat": {"vat_rate": "4.00", "total_vat_amount": "0.20"}, "total_taxable_amount": "4.80", "meal_vouchers_invoiced_to_issuer": false}
],
"payment_details": {
"cash_payment_amount": "5.00",
"electronic_payment_amount": null,
"vouchers": null,
"discount_amount": null,
"uncollected_goods_gross_amount": null,
"uncollected_services_gross_amount": "0.00"
}
}

The meaning of the item fields will not change: quantity is the quantity sold, returned_quantity the quantity already returned, and quantity - returned_quantity can still be returned. The new surcharge field will report any surcharge.

What to change: point the call to the new path and read items from the returned object. The return request (POST /v1/mf1/receipts/return) will keep referring to items by the same id.

How to split the returned amount​

POST /v1/mf1/receipts/return will accept payment_details, to say how the amount is refunded. If you omit it, nothing will change: the amount will be split proportionally to what is still returnable for each method, as read from the payment_details of return-data.

{
"items": [{"id": 1, "quantity": "1.00"}],
"payment_details": [
{"type": "cash", "amount": "3.00"},
{"type": "vouchers", "amount": "2.00", "voucher_count": 1}
]
}

The allowed types will be cash, electronic, vouchers, discount, uncollected_goods and uncollected_services. In a return, vouchers will be a single type, vouchers, with voucher_count required. The amounts must add up to the value of the returned items. The field will exist only for returns on the same PEM, not for return-via-different-device or return-with-proof.

3. Inactivity periods​

POST /v1/mf1/pems/{serial_number}/inactivity-period will respond 202 instead of 200: the period will be accepted and sent to the Italian Tax Authority (AdE) asynchronously. The request will not change.

{"start_at": "2026-01-15T12:00:00", "end_at": "2026-01-25T12:00:00"}
CaseBeforeAfter
Period accepted200202
end_at not after start_at400422, in the same format as the other validation errors
PEM not online409409, unchanged
Same period sent again (same PEM, start and end)Sent again202, no effect: the period is communicated only once

What to change: treat 202 as success (a strict check on 200 would fail) and handle validation errors on 422 instead of 400. Since sending the same period again will have no effect, the cash register can safely retry the call after a timeout.

To know whether the AdE received the period, use the new GET /v1/mf1/pems/{serial_number}/inactivity-periods and /inactivity-periods/{uuid}: the status field will go from pending to received, transmitted and finally to the outcome ok, warning or error. A period's uuid will change when it moves from pending to received.

4. Receipt logo (MF2)​

The logo field will no longer be part of the PEM configuration, neither in POST /v1/mf2/pems nor in PUT /v1/mf2/pems/{serial_number}/configuration. The logo will be managed through a dedicated endpoint.

OperationEndpointResponse
Upload or replacePUT /v1/mf2/pems/{serial_number}/configuration/logo, PNG body with Content-Type: image/png204
ReadGET /v1/mf2/pems/{serial_number}/configuration/logo200, PNG
DeleteDELETE /v1/mf2/pems/{serial_number}/configuration/logo204
PUT https://ereceipts-it-sandbox.acubeapi.com/v1/mf2/pems/E001-000001/configuration/logo
Authorization: Bearer <your-token>
Content-Type: image/png

<the PNG file, as binary>

Response 204

What to change: remove logo from the configuration create and update bodies and, after creating the PEM, upload the logo with the call above. The image will be converted to black and white and fitted to the receipt format.

Watch out: changing receipt_format in the configuration will delete the logo, which must then be uploaded again.

5. PEM discard (MF2)​

POST /v1/mf2/pems/{serial_number}/discard will still respond 202, but without a body: today, it returns the PEM. The request will not change; pem-inactivity will also be an allowed reason.

What to change: do not read or deserialise the body of the 202 response. To get the updated PEM status, read it with GET /v1/mf2/pems/{serial_number}.

Compatible changes​

These changes will need no action: a current integration will keep working. They are still worth knowing.

ChangeWhereWhat it offers
Meal vouchers invoiced to the issuerMF2: meal_vouchers_invoiced_to_issuer in the PEM configuration. MF1: GET /v1/mf1/pems/{serial_number}The supplier turns the option on or off; the cash register reads the value in effect (enabled) and the dates last_switched_at and next_switch_at. The switch will be applied when a journal is opened or closed
Certificate passwordPOST /v1/mf1/cash-registers, mtls_certificate.pkcs12_passwordThe password to open the cash register's PKCS#12 certificate
Device events and AdE transmissionsMF1: /pems/{serial_number}/device-events, /device-event-transmissions. MF2: /device-events, /device-event-transmissionsList of device events, the signed XML sent to the AdE and its outcome
Emergency report outcomeMF2: status and completed_at fields, /emergency-reports/{id}/download and /resultKnow whether the AdE accepted the report
Maintenance reportPOST /v1/mf1/pems/{serial_number}/backoffice-reports/maintenance-operations; maintenance_operations type in filtersThe "Maintenance operations and software updates" report
Diagnostics reportPOST .../backoffice-reports/diagnosticsWill also be available with the journal closed; 409 only if the PEM is not activated
Installed softwareGET /v1/mf1/pems/{serial_number}/swid and /swid/{component}Software verification (SWID)
PaginationMF2 lists of merchants, merchant PEMs, emergency reportsitemsPerPage up to 100 (currently 30)