Distrib — the twelve domains
What the Distrib facet does, domain by domain.
In brief
The twelve domains that follow cover a sale's whole life: what is sold, at what price, to whom, how it is paid, and what is declared from it.
Three ideas run through them. One piece of software for every machine: what differs between a fridge and a bar is configuration, never code. The machine decides on the spot, even offline, and the cloud validates afterwards. And hardware is declared: plugging in a real lock instead of a simulator is a configuration change.
One practical consequence: sales are facts that are never erased. You cancel, you refund, but you never rewrite.
What it brings : You run machines of different kinds with a single team and a single tool.
In detail
Three ideas run through the twelve domains that follow.
- One piece of software for every machine: what distinguishes a fridge from a bar is configuration, never code.
- The machine authorises, the cloud settles: no charge without a recorded fact, and offline, only latency changes.
- Hardware is declared: plugging in a real lock instead of a simulator is a configuration change.
1. Points of sale, sites, organisations
A point of sale is a business identity — not a machine. That distinction carries everything else.
- Replacing the machine loses nothing: neither sales, nor configuration, nor history.
- The type is immutable: changing it means withdrawing then re-declaring.
- Two lifecycles: the business status, and the core one.
- The site carries the time zone, which governs the days in reports.
- Cascading configuration: a setting placed on the account, an organisation or a site holds for all their points of sale.
- The most specific wins, and every value says where it comes from.
- Each payment method has its own settings: trusted or not, threshold, cap, offline grace period.
- The "changed, not published" gap is visible everywhere.
- A point of sale serves several organisations, with a priority order.
- A sale with no point of sale is attached by hand, never guessed.
- Hybrid fleet: a machine of another brand enters through a connector.
2. Catalogue
The product describes what it is; the effective price lives in the offer.
- One catalogue per account, shared by every type of machine.
- Selling by measure: by item, by kilo or by litre.
- VAT in classes, never in rates: an old sale keeps its rate.
- Rates are never changed in place.
- Expiry dates: alerts, unsellability, and automatic markdown as the date nears.
- First-class allergens, with personal exclusion on the consumer's side.
- Tags: the single mechanism for targeting a discount or composing a deal.
- Categories in a tree: you unfold them and arrange them by drag and drop or from the keyboard.
- A category never becomes its own ancestor: the server refuses the move, visibly.
- Each category counts its products, direct and total.
- A hidden category stays visible and selectable in the portal.
- A product belongs to one or several categories, from its own record.
- Categories appear on no customer screen: they arrange the catalogue inside the portal.
- Several merchants in one machine, each with their payout.
- You archive, you never delete.
- Spreadsheet import with a line-by-line error report.
3. Offers and publication
The offer says what this machine sells, at what price, laid out how.
- Two layouts: a shelf plan, or a menu.
- An offer is created, then assigned: to points of sale or to sites.
- From the offer or from the point of sale — “Where it serves”, “Offers served”.
- A start date, no end date: an offer stops when another replaces it or when it is archived.
- Offer in force = not archived and started: a single definition, shared by the cloud and the machines.
- Never a sale at the prices of an offer that has not started.
- With no offer in force, no sale — the delivery driver still opens the machine to restock.
- The point-of-sale record says which offer comes next, and when.
- Offers editable in place: immutability lives in the publication.
- The assortment in place is what the driver actually loaded.
- Publishing is an explicit act: nothing is distributed implicitly.
- A signed snapshot that the machine verifies before applying it.
- An inconsistent snapshot is refused: the machine keeps the previous one.
- Automatic delivery when a device is bound to an already published point of sale.
- Revocation: with the binding closed, the machine refuses to sell.
- Visual editor by drag and drop, with a comparison before publishing.
4. Selling and pricing
The price is computed twice — on the machine and in the cloud — and both must agree to the cent.
- The same library on both sides: an identical result.
- A standard order: product discounts, deals, basket discount, then subsidy.
- Exact allocation: the sum of the parts equals the amount, with no privileged line.
- A discount never takes the total below zero.
- Each receipt recomputes identically: it cites its offer and its publication.
- A doubtful sale goes under review instead of being charged.
- A closed list of reasons: low trust, quota, price discrepancy, quality sample.
- The verdict is logged with the person who made it.
- Offline, the sale is never blocked: the price shown is what stands for the customer.
- The door holds the money: at a card-paid fridge, the reservation is only released once the door reads closed and the lock reads engaged.
- An uncertain release never stops the next sale: the card stays offered, the uncertain case goes "to review".
- Sentinel: a forced door becomes a valued loss, never a charge.
5. Promotions and benefits
Four objects, not to be confused.
- The discount is an automatic rule.
- The deal is a bundled price.
- The subsidy is a third-party payer: it reduces the amount due, not the VAT.
- The promotional code is triggered manually.
- A credit voucher is not a promotion: it is a means of payment.
- Targeted discounts by tag, time slot, or approaching expiry date.
- The quota is never exceeded, even when several machines sell at once.
- Employer subsidy by time slot, flat or as a percentage.
- An offline over-subsidy is never charged back to the consumer.
- Never charged outside its time slot nor twice: a share taken in error is returned to the employer, from the sale's record.
- Basket simulator to check a rule before publishing it.
6. Payment
This whole domain is Octopoda Pay, included in Distrib: the payment pages are those of Distrib's portal — the same ones Pay+ sells — and Pay is also taken on its own, through our interfaces. Here is what Distrib sees of it.
- An isolated module: the rest of the product never reads its data.
- A single concept for anything holding value: wallet, voucher, credit note, subsidy, debt.
- Append-only entries, and an atomic debit with no overdraft.
- A multi-payment sale, settled part by part, in priority order.
- A replay resumes, it never charges twice.
- Debt is recovered at the next top-up, automatically.
- An anonymous sale creates no debt.
- Viva Wallet: a complete chain of bank, acquirer and payment provider — Arkipelis is its ISV partner.
- Any other provider under the same contract, and a demonstration provider, with no real money.
- Money never passes through Arkipelis: it goes to the merchant's account with their acquirer.
- Staff-restaurant tills already in place connect — JES, CSI, PiElectronics, Innovorder, KSD, TCPOS, Xgil…
- The payment method enrolled there is used at the machines, with no second badge.
- Automatic fees: the operator's share on each of a merchant's sales, taken at source.
- A payment straight onto a person's bank card — refund, win, payout — with no transfer.
- Demonstration payments read like real ones, in the portal as on the receipt, with no real money.
7. Consumers
The end customer has an account, means of recognition, and a space of their own.
- Badge, personal code or bank card as an identifier.
- You revoke, you do not delete.
- Unknown badge: the machine shows a four-digit code to enter in their account.
- A refusal says why: insufficient funds, unpaid, badge required, disabled account.
- Rate or report a problem from the receipt, with a manager's explained decision.
- Consumer space: wallet, purchases, receipts, badges, automatic top-up.
- My assortment: their rules — allergens, calories, price, diet — grey out what does not suit them, with the reason, never hidden.
- The basket warns, with its reasons, when a product taken contradicts a rule.
- Their badges appear there like their bank cards: a visual in the format they choose, and a name they give them.
- Paying by card without being logged in: the customer scans the visual code shown by the machine.
- They find their purchases in their account, and the same card is recognised there on later purchases.
- Versioned terms of use and of sale, accepted on login: while a document is missing, nothing opens.
- Order and collect by time slot, possibly by a third party.
- Opening by visual code, with no application to install.
- Anonymisation: identifiers stay for accounting, personal data goes.
- Refused if a balance or a debt remains.
8. Field work
What the driver does in front of the machine, and what it produces on the management side.
- A badge opens a session: restocking, removal and stocktaking follow without badging again.
- Entry is never blocking: without it, everything derives from detection.
- Batches and expiry tracked per location, consumed closest-to-expiry first.
- Append-only stock movements, each with its reason.
- Photographs at opening and at closing.
- Ranked detection hypotheses, with an arbitration screen.
- Valued losses, explained removals.
- A door opened with no session becomes a dedicated operation, whether the lock was engaged or not.
- Except a door left open at the end of a sale, or an opening authorised remotely.
- The loss is valued, never charged.
- Stock belongs to the point of sale, never to the device: each slot shows product, quantity, minimum and last movement.
- An alert adjustable per slot goes out when the minimum is reached, naming the point of sale and the product.
- A view across all points of sale gathers the slots in alert; each slot opens its movement log.
- A count that has drifted reads "to recount", with its gap and the act that sets it right.
- Replenishment orders generated from stock and expiry alerts.
- And from sales forecasting, which says what the machine is going to sell.
9. Reports and accounting
The figures you invoice to your customers, and those you declare.
- Exact to the cent: sales, VAT, receipts, subsidies per organisation.
- Read "as at" a chosen day, exact by construction.
- Days in the site's time zone, currencies never added together.
- Revenue is what was settled: partials, failures and debts are tracked separately.
- A settled or cancelled sale is no longer modified.
- Accounting chain: frozen VAT report, gapless numbering, signed audit export.
- Accounting facts are never deleted by retention.
- Outbound notifications to your system, signed and retried on failure.
Sales forecasting
It says, point of sale by point of sale and product by product, what is going to sell.
- Learned from history: hour, day, week, season, public holidays and site closures.
- Promotions are taken into account, and a stock-out is not read as an absence of demand.
- Forecast quantities with their interval, which prepare orders and rounds.
- Forecast against sold is shown in the portal.
- Too little history means "not measurable", never an invented forecast.
10. Recipe machines
Drinks bar and coffee machine: the machine makes the product, so you bill what actually flowed.
- A recipe is a product; strength and size are settings.
- The price comes from a grid crossing category and size.
- Consumables with two thresholds: alert, then unavailable.
- Availability is decided on the machine: a drink greys out as soon as its flavouring runs out.
- The pour is measured: volume served, stopping at the target or on command.
- Billed pro rata to the volume actually served.
- Episode alerts: leak, no flow, gas or pouch empty.
- Usage and sustainability: volumes, bottles avoided, carbon equivalent.
- Scheduled maintenance, with its append-only record and its due date.
- The coffee machine connects through Vaka: it authorises and takes payment for each drink, and reports the sale.
- The readout of the machine's counters and faults, and the preventive maintenance it feeds, are Vaka's.
11. The machine
One selling program for every type, and hardware described rather than coded.
- Behaviour comes from configuration: no code per machine type.
- A shared kit brings the bus, local authorisation and reporting to the cloud.
- Typed things: lock, door, reader, shelf, probe, terminal, coin mechanism.
- Commands triggered by step: lighting on authorisation, photograph on opening.
- The screen is a stateless view: it displays and returns intentions.
- Without business configuration, the machine refuses to sell — it does not guess.
- One simulator per family, publishing the same list as real hardware.
- An interrupted sale resumes where it was: never lost, never charged twice.
- A sale's money is written to disk before every step: a power cut loses none of its settlement.
12. Integration with the information system
What connects Distrib to your own tools.
- Service key and user token, with a role per scope.
- Mandatory idempotency key on every call that moves money.
- Each module publishes its addresses and declares what it needs.
- A missing link cleanly disables the function, and logs it.
- Sortable, paginated, filterable lists; amounts in cents with their currency.
- Incoming and outgoing notifications, and interface keys for your partners.
- Three ways to take payment through our interfaces: server to server, from the device, and on the partner's own site.
- With their key, a partner finds, exports and closes their transactions — and never sees anyone else's.
- Third-party tills talk cloud to cloud: their credentials never travel down to the machines.
- Those of the staff restaurant: JES, CSI, PiElectronics, Innovorder, KSD, TCPOS, Xgil…