Narančino in Dubrovnik sells freshly squeezed orange juice from self-service vending machines. In 2026 we built a system for it that connects the machines, fiscalisation and the website. Every sale reaches the system within half a minute and gets a fiscalised receipt. The owner hears about a fault on their phone, and website visitors can see whether the machine they are heading to is working.

In short (TL;DR)

One system instead of three separate ones. A Laravel application pulls sales from the machines' telemetry platform every 30 seconds, fiscalises each sale with the Croatian Tax Administration and feeds live data to the public website.

Fiscalisation ready for 2027. Receipts are signed with RSA-SHA256, failed submissions are retried automatically, the system watches the legal deadlines and corrections are made only by credit (storno) receipts.

Alarms and administration. More than twenty alarm types (Telegram and e-mail), a clear dashboard, a monthly accountant report that sends itself, and a move to new hosting with no downtime.

Narančino runs machines that squeeze oranges into a cup in front of the customer. For the customer it is simple: pay by cash or card and take the juice. Behind the scenes, several things happen at once. The machine records the sale, the sale has to be fiscalised, stocks of oranges and cups go down, the cooling has to hold its temperature, and cash builds up inside the machine. Our job was to bring all of this together in one system run from a web browser.

What did the system need to do?

The requirements were clear from the start:

We covered the legal side of fiscalisation, including the changes that apply from 1 January 2027, in Croatian fiscalisation in 2027: what changes. This article is about how we turned those requirements into software.

Architecture: an isolated server account and a task scheduler

The application is built with Laravel, a PHP framework with a built-in task scheduler. The scheduler runs sales imports, fiscalisation, status checks and reports at set intervals. For a system that has to run day and night without supervision, that matters more than how the interface looks.

The system runs on its own isolated account on the server:

We explain why this separation matters in Website security for companies. In short, if one application on a server fails, it must not take the others down with it.

ComponentWhat it doesHow often
Sales importfetches new sales from the Vendon platformevery 30 seconds
Machine statusconnection, stock, temperature, door, payment devices, cashevery minute
Fiscalisationreceipt with ZKI and JIR for every sale, retriesstraight after import
AlarmsTelegram and e-mail, evening summaryas soon as a condition is met
CSV/XML price listnew snapshot in the daily archiveonce a day
Accountant reportPDF and Excel for the previous monthon the 1st of each month
Backupdatabase and settings, copy off the serverevery day

How do the machines connect to the system?

The machines are connected to the Vendon telemetry platform, which collects data from the devices and makes it available through an API. Our application does not talk to the machines directly. It talks to that API, on two schedules:

Narančino machine locations with live status, opening hours and price
Live machine status on narancino.hr: whether a machine is working, opening hours and price · Screenshot: DromedarIT

Everything else is built from this data: receipts, alarms, charts and the "working / not working" label on the public website.

Fiscalising every sale

For each imported sale, the system creates a receipt, calculates the issuer's security code (ZKI), signs the message with the taxpayer's certificate and sends it to the Tax Administration's fiscalisation system, which returns a Unique Invoice Identifier (JIR). Several safeguards are built in:

TIP With vending machines, fiscalisation cannot depend on someone noticing a problem. The system has to retry on its own and report on its own when something gets stuck. Otherwise the two-working-day deadline is easy to miss over a weekend.

Alarms: the system knows before the customer does

The system has more than twenty alarm types, grouped into areas such as stock, faults, cooling, payments, connectivity and sales. Some examples:

In the admin area, each alarm can be switched on or off, sent to Telegram, e-mail or both, and given thresholds such as temperature and duration. Alarms go out through the official Telegram Bot API and by e-mail, and a short summary of the day arrives every evening. An alarm based on duration fires only when the condition lasts for the set time, so a brief blip wakes nobody.

Administration: overview, control and reports

The browser dashboard shows what the owner wants to see first thing in the morning:

Machines can also be controlled remotely from the admin area: you can add credit (for example for a customer whose juice was not dispensed) or restart a machine. These actions have a safe test mode, so they can be tried out without actually affecting the machine.

Dedicated pages show backups (with an option to make one by hand) and every scheduled task: when it last ran, how long it took and whether any task is running late. On the 1st of each month the system automatically produces an accountant report in PDF and Excel, broken down by machine and by day, with a list of receipts and credit receipts, and sends it by e-mail.

Public website: live status and a compliant price list

The narancino.hr website is bilingual (Croatian and English) and reads its data from the system:

Price list with the current and the additional (anchor) price and links to the machine-readable price list
Price list with the additional (anchor) price and the machine-readable price list (CSV, XML, archive) · Screenshot: DromedarIT

A switchover with no downtime and no double fiscalisation

Alongside the new system, we moved the domain's DNS, the website and the mailboxes to new hosting. The steps were ordered so that the website and e-mail kept working throughout. We explain how domains and e-mail are moved in What is hosting, a domain and how e-mail works.

The most delicate part was taking over fiscalisation from the previous system. We set a fixed boundary: sales up to a given moment are fiscalised by the previous system and everything after it by the new one. The new system issues no receipt for any sale before the boundary, and receipt numbers continue the existing sequence. The law allows an unbroken sequence to start from any number, provided the rules are set out in the internal act (Fiscalisation Act, Art. 9). The change of software producer and maintainer must also be reported in ePorezna for each machine before the first day it applies (Fiscalisation Act, Art. 16(10) and Art. 17). This way, no sale is fiscalised twice and none is missed.

Do you have devices, tills or sales channels that need connecting?

We build web applications that bring devices, fiscalisation and a website together, and we maintain them after launch. See our work and services, or tell us what you want to connect.

Get in touch →

Frequently asked questions

How quickly does a sale reach the system?

The system fetches new sales from the Vendon telemetry platform every 30 seconds and sends them for fiscalisation straight away. Machine status (connection, stock, temperature, payment devices, cash) refreshes every minute.

What happens if the Tax Administration is unavailable?

The receipt stays in a queue and is resent, with growing intervals between attempts and the late-delivery flag set. If it still fails after the set number of attempts, or the receipt gets close to the 30-day limit the Tax Administration accepts, an alarm is raised.

Is the system ready for the 2027 fiscalisation changes?

Yes. Messages are signed with RSA-SHA256 and connections use TLS 1.2 or newer. From 1 January 2027 the Tax Administration's production environment rejects RSA-SHA1 and TLS 1.1 (Technical Specification v2.7). Our article on fiscalisation in 2027 has more detail.

How is an incorrect receipt corrected?

An issued receipt is never edited. A credit (storno) receipt is issued, fiscalised like any other and linked in the system to the original. This is what the Fiscalisation Act requires (Arts 14 and 24).

What is the additional (anchor) price on the website?

Under the Decision on displaying an additional price (NN 101/2026), traders show the price that applied on 10 September 2026 next to the current price, including on websites. Narančino shows it next to each machine's price and in the machine-readable price list.

Sources

  1. Croatian Parliament — "Zakon o fiskalizaciji" (Fiscalisation Act), NN 89/2025. Retrieved 01.10.2026. narodne-novine.nn.hr
  2. Tax Administration — "Fiskalizacija računa u krajnjoj potrošnji – Tehnička specifikacija za korisnike, v2.7" (Technical Specification), 2026. Retrieved 01.10.2026. porezna-uprava.gov.hr
  3. Government of the Republic of Croatia — "Odluka o isticanju dodatne cijene kao mjera izravne kontrole cijena" (Decision on displaying an additional price), NN 101/2026. Retrieved 01.10.2026. narodne-novine.nn.hr
  4. Government of the Republic of Croatia — "Odluka o objavi cjenika proizvoda i usluga kao mjera izravne kontrole cijena" (Decision on publishing price lists), NN 101/2026. Retrieved 01.10.2026. narodne-novine.nn.hr
  5. Laravel — "Task Scheduling", documentation. Retrieved 01.10.2026. laravel.com
  6. Telegram — "Telegram Bot API". Retrieved 01.10.2026. core.telegram.org
  7. Vendon — vending telemetry platform. Retrieved 01.10.2026. vendon.net