Skip to content
Work Expertise Services CV Portfolio Integrations Laravel packages Blog Sign in Get in touch

Till, stock and the customer behind it

A retail chain runs on a till system that knows everything and shows little. The work is in the layer next to it: the loyalty card, the points scheme, the numbers across shops, and the customer who wants to be able to change their own details.

What a retail chain asks of software

A till system is good at what it does: ringing up, taking payment, writing off stock, closing the day. What it rarely does well is everything around it. The loyalty card is one of those, and it stands out because the customer sees it. But the question of which shop clears which product group fastest, or an email to everyone who bought something last year and has not been back since, also falls outside what a till does.

Most of those systems do have an api. And there the split appears at once: what you may take out is usually broad, what you may write in is narrow and slow. An integration that turns that around, keeping everything yourself and updating the till now and then, looks faster and breaks at the first correction someone makes at the till. The till always wins; the layer beside it has to fit in with that.

What I built on it

Six pieces between a till that records everything and a customer who has their card in their pocket.

The loyalty card in the phone

A pass in Apple and Google Wallet, with the name, the barcode and the balance on it. If the balance changes, the pass updates itself on the device without the customer having to open anything. No app to install and no card to lose.

Points and credit from the loyalty scheme

Whatever the till system keeps in points, discounts and gift vouchers, retrieved and shown somewhere the customer can look for themselves. The till stays the source; the screen beside it is only a window.

Details the customer changes themselves

An address change or an unsubscribe the customer makes themselves, and which is in the till system straight away through the api. It saves the shop a phone call and the customer a wait.

Signing up at the till

Becoming a member without a form: a code on the customer display, the phone alongside, and the card works from the next purchase on. Anyone who prefers typing does it on the site and sees the same card appear.

Shops and sales for your own reporting

Sales, locations and product groups from the till system in a database of your own, so a question about three shops and six months is a query and not a round of exports past three people.

Shipping from the shop floor

An order that is not collected becomes a parcel: label, service point, return and a tracking page in your own house style. Directly on the carrier contract, or through a shipping platform.

How it is put together

Five choices that decide whether the integration still holds on a busy Saturday and after the first correction at the till.

The till is the source, not your own database

What happens at the till is true. An application beside it that keeps customer details or balances keeps a copy, and a copy drifts. That is why the application writes back to the till system where it can, and shows the rest live instead of storing it.

A wallet pass is not a picture but a subscription

A pass downloaded once is out of date the next day. Apple and Google both provide a route to update an existing pass on the device, each with their own keys, their own certificates and their own expiry periods. That bit of administration is the real work; designing the pass is an afternoon.

A customer is not a card

The same person has a card, an email address, perhaps a second card from years ago and an order online. Tying those together is not merging two rows but a decision about who owns what. Without that decision up front you end up with duplicate customers nobody dares merge.

The shop counts in seconds

There is a queue at the till. A screen that thinks for three seconds while the api is queried adds up to half an hour by the end of the day. Hence everything that can be slow is fetched in advance or processed afterwards, and the till never has to wait for something that can happen later.

Every location is different, and that is not a fault

One shop works with collection points, another ships, the third only does in-store. Casting that into a system with a switch per location works better than an exception per shop in the code. The location is then a first-class concept and not a filter field.

Do you run on a till system yourself

If you want a loyalty card without plastic, numbers across your locations, or simply to know what the api of your package allows, I am happy to take a look. Send a message.

The Tilroy api is worked out under the Tilroy integration, shipping under Sendcloud and Shippingtail, payments under Mollie Connect. What makes second-hand different is under reuse and second-hand.