Published · 6 min read

How We Built a Partner Cashback & Loyalty Platform With POS Sync

Gilzor built the backend and two web portals for a partner cashback & loyalty platform with 75 partners. More than 95% of payments synced with POS systems automatically, without manual reconciliation.

A point-of-sale receipt and cashback wallet connected by two arrows
Weighing your options?Tell us what you’re building. We’ll come back with options, a rough cost and timeline.
Get my estimate

At a table of six, one guest pays their share in the app. The venue needs to see how much is still due, and the guest needs to see what cashback they earned. If that payment is refunded later, support needs to explain what changed in the guest’s wallet. Any disagreement between those records leaves someone reconstructing the transaction by hand.

That was the challenge for our client, which operates a partner cashback & loyalty platform in the Middle East. We designed and built the backend, a partner portal, and an admin portal for the operator. The guest mobile app connects to the same backend through an API.

One backend gives guests, partners, and the operator a shared record

Guests use the mobile app to find participating venues, pay, and earn cashback. Partners need to see what guests spend, what cashback they earn, and how much venue credit has been used. The operator manages the network, reviews transactions, and controls who can access those records.

The client wanted partners to pull their own reports without having to ask the internal team. That only saves time if the partner can match the report to what it sees in its own point-of-sale system, or POS. If a partner portal shows an order as paid while the cash register still shows an amount due, the partner still has to call someone.

We built the shared backend with NestJS and PostgreSQL and both web portals with React. Payment and cashback rules live in the backend. The app and the portals each show the part of the transaction their users need, with access enforced on the server. When a cashback rule changes, the team maintains it in one place. The operator can give partners direct access to their reports without asking each interface to interpret the transaction on its own.

Two-way POS integration keeps split bills in sync

The restaurant creates the order in its own POS. The guest enters the order number in the app, and the backend retrieves the bill. It calculates taxes and cashback, then writes the payment status back to the restaurant’s system.

The bill covers the table’s order. A payment can cover one person’s share or another portion of the total. The platform supports split bills and partial payments, including POS-linked and manual payment flows. Each path needs to leave the app and the restaurant’s POS in agreement about what has been paid and what is still due.

For a POS integration like this, we would use the whole bill as the unit of acceptance testing. A successful checkout shows that one guest could pay. The second guest’s checkout shows whether the application carried the first payment forward correctly. The restaurant should see the same remaining amount in its POS. That is the point at which the integration starts to save staff work during service.

The guest app, partner POS, payment aggregator, partner portal, and admin portal exchange data with the shared backend.
The shared backend reads the bill from the partner POS, tracks payment and cashback, and provides transaction data to the two web portals.

A cashback ledger makes six reward types traceable

The network supports six types of cashback. They differ in how guests earn them, whether they expire, the currencies they use, and the order in which they can be spent. The app can show a single available amount. To explain that amount after a refund, the backend needs the history behind it.

Consider a guest who uses more than one type of cashback on a payment that is later refunded. A balance can tell support how much is available now. It cannot tell them which rewards were used or which rules applied. We built a cashback ledger that records earnings and spending, with explicit priorities for applying eligible cashback at checkout.

The referral program uses the same ledger. Once an invited guest meets the purchase threshold, both participants receive cashback. The operator can configure the threshold and reward in the admin portal, and support can see the resulting entries in the same wallet history it uses for other balance questions.

For the operator, the ledger provides the detail needed for month-end reconciliation. For support, it gives an agent a way to answer a guest’s question directly from the transaction history.

Built by Gilzor

Results we’ve shipped

70+products launched
98%delivered on time
85%clients come back
5.0on Clutch
Art Scherbakov, Co-FounderAndrew Laminsky, CTOYuri Rudenya, Head of Mobile Development at GilzorAlena Timofeeva, Product Marketing Lead

Talk to the people who build it. Tell us about your project and get a free estimate of scope, timeline and cost.

See how we’d approach yours

The payment integration accounts for delayed confirmations

The payment aggregator connects the platform to payment providers. The provider processes the payment, and our backend tracks what the result means for the restaurant bill and the guest wallet. A provider can finish processing while the platform is still waiting for its confirmation. At a table waiting to settle up, that difference matters.

We used webhooks to receive updates and idempotency keys to identify repeat requests for the same payment. A retry queue gives temporary failures another chance to clear. If a job exhausts its retries, it moves to a separate queue for investigation.

A delayed confirmation is a better test of this integration than a successful checkout alone. Pay one share and delay the update. When it arrives, the system should account for that payment once, reflect it in the ledger, and show the correct amount due to the next guest. For the operator, the same test shows what information remains available if an exception needs a person to resolve it.

Partner reporting follows each partner’s operating structure

Restaurants use the partner portal to review guest spending, cashback earned, and credits used. They can also manage staff access. The operator uses its admin portal to manage the network and review transactions, top-ups, and reports by country.

Access follows the restaurant hierarchy of group, brand, and branch. A branch manager may need to see transactions at one location, while someone at head office may need data for an entire brand. What a user can do is configured separately. A user can have permission to view transactions without permission to add staff. Administrator access can also be limited by country.

The backend checks both the action and the records it would affect. That allows the operator to delegate routine reporting and staff management to partners while keeping each partner’s access within the part of the business it manages.

The platform reduced the need for manual payment reconciliation

The backend supported 75 restaurant partners and about 100,000 registered users. The production results show how the POS integration and cashback ledger held up in day-to-day operations. Gilzor project case study

  • More than 95% of payments synced with restaurant POS systems automatically. The status was written back to the system where the restaurant managed the order, without manual reconciliation for those payments.
  • Cashback balances reconciled to the cent at month-end, with zero unexplained discrepancies. The ledger preserved the entries behind each balance so the operator could account for it.
  • Support answered cashback balance questions in minutes. Agents could look up earnings and spending directly and explain the balance to the guest.

A payment that appeared correctly in the restaurant’s POS also had to be explainable in the guest’s wallet. We designed the backend, integrations, and portals around that requirement, so restaurant staff and support could work from the same transaction record.

We bring the same approach to custom software projects where several systems support one business process. Gilzor can take responsibility for the backend and integrations as well as the applications your staff and partners use. We work with your team to understand the rules the software needs to follow and how people will handle exceptions after launch.

Whether you’re building a new product or extending an existing one, tell us what your business needs the software to do. We’ll help you define what to build first and what your team needs to verify before it goes live. Discuss your project with Gilzor

Report an error

Tell us what’s wrong or outdated on this page. An editor checks every report.

We use your email only to follow up on this report.

We use your details only to reply to your request — see our Privacy Policy.

No sales pitch

Get a straight answer for your project

Tell us what you’re building. We’ll reply with options, a rough cost and timeline. If we’re not the right fit, we’ll say so.

Next, a few optional questions so the first call is useful. We use your details only to reply to your request. Privacy Policy

Andrew Laminsky
Written byAndrew Laminsky

CTO of Gilzor. Responsible for architecture and the engineering standards our teams work by.

All articles by Andrew →LinkedIn →

Gilzor · Web Development partner

Need a team for your web product?

95%referred by business partners
70+successful launches
85%repeat business
98%delivered on time

The team behind them

Art Scherbakov
Art ScherbakovCo-FounderLinkedIn
Andrew Laminsky
Andrew LaminskyCTOLinkedIn
Yuri Rudenya
Yuri RudenyaHead of Mobile Development at GilzorLinkedIn
Alena Timofeeva
Alena TimofeevaProduct Marketing LeadLinkedIn
Tell us what you’re buildingOptions, a rough cost and timeline for your project. No commitment.

More from the blog