iVendNextDevelopers My apps

S22 — Customer-owned loyalty (pp_lyl): your logic outside, the records inside iVendNext

Start an app from this sample

A retailer that runs its own loyalty programme, with its own tiers, cash back and rules, keeps the rules in your service while the members, tiers and cash back live in iVendNext. Staff see them on iVendNext's own screens, and the till shows a member's status on a Member key. A member can also spend the cash back at the till as Member cash.

The recipe: A customer's own loyalty programme: the rules outside, the records inside

In the App library: Customer-owned loyalty

What is in it: members, cash back, a till key, a wallet.

Industries: Hospitality, Liquor and wine

When to use it: the customer owns the rules (you write them in your own service), but staff should see the members, tiers and cash back on iVendNext's own screens, and the till should show a member's status.

Start from it

ivn new acme_loyalty --from s22

What to change

What a partner usually changes:

More: the recipe.

The customer sets: the tiers and thresholds. A check on goods receipts (receipt_workflow, the recipe) is left out of config.json, so a receiving clerk's submit is untouched until the customer adds it.

The app's role needs: nothing from the retailer's administrator. The install makes the role PP LYL Integration and the app's one user, pp_lyl@integration.invalid; it gives the role read on every record type the feed follows (Customer, POS Invoice, Purchase Receipt), and the manifest's role_rights give the rest: write on Customer, and read on Purchase Order and Supplier (the receipt check reads the supplier a receipt names). The app needs POS build 2.1.0.691 or later. On an earlier site the install warns role_rights and records as unknown and skips them, the feed's user has no read, and the events wait: the service's log says which record type was refused (ivn logs). python3 apply_config.py prepare, run after the install, only checks the role exists and, when config.json carries a receipt check, grants the rights that check needs; it makes no user (What goes where).

Run it

ivn check
ivn try

Try it at the till

Versions

1.3.2

1.3.1

1.3.0

1.2.1

1.2.0

1.1.0

Needs this serves

This page in the kit