iVendNextDevelopers My apps

S32 — Coupon rules (a check before payment that refuses a coupon the retailer restricted)

Start an app from this sample

Rules a retailer adds to its own coupons, checked when the cashier presses Pay. One rule record per coupon, written in Desk, each off until ticked or set: first purchase only, only for customers in one group, and a sale of a set amount, before its discounts, needed for each use. The till refuses with "This sale can't be paid" and says why; the cashier removes the coupon (or adds the new customer) and presses Pay again. A coupon with no rule is never refused.

The recipe: Coupons for a first purchase, one customer group, or a sale of a given size

In the App library: Coupon rules

A rule with Sale needed for each use set to 50.00

Industries: Electronics and phones, Fashion and footwear, Pharmacy

Start from it

ivn new acme_coupons --from s32

What to change

What a partner usually changes:

More: the recipe.

The customer sets: a Coupon rule (PP CPN Rule) for each coupon to restrict, and the customer group a coupon is for.

The app's feed (the Registered Application PP CPN Rules, shown as Coupon rules feed) is its door to the site: it gives the app its own user and key, and the app reads no events from it yet, so a connection test that shows Last read: never is expected.

Run it

ivn check
ivn try

Try it at the till

Versions

1.2.5

1.2.4

1.2.3

1.2.2

1.2.1

1.2.0

1.1.0

1.0.0

Needs this serves

This page in the kit