iVendNextDevelopers My apps

S25 — Gift card on spend (a big sale earns the retailer's own gift card, spendable after a hold)

Start an app from this sample

A customer's sale reaches the retailer's threshold. Within the next minute the app gives them the retailer's own gift card, of the value the retailer chose, from the retailer's own gift card item. The card is spendable once the hold has passed (24 hours by default), at the till, like any other gift card. Nothing changes at the till: the cashier rings the sale as before. Staff read each card under the customer or the sale in Desk, Gift cards.

The recipe: A gift card for a big spend, spendable after a hold

In the App library: Gift card on spend

Industries: Fashion and footwear, Pharmacy

Start from it

ivn new acme_gift --from s25

What to change

What a partner usually changes:

More: the recipe.

The customer sets: the threshold, each card's value, the gift card item (not rechargeable, not paid out as cash, not store credit), the hold in hours, and the customer groups that never earn.

The app's role needs: nothing from the retailer's administrator. The install makes the role PP GCS Integration and the app's own user, and gives the role read on POS Invoice, the record type the feed follows. The manifest's role_rights give the rest: read on Customer and Item, read and create on Gift Card, and read, create and submit on Gift Card Balance. Needs POS build 2.1.0.691 or later: on an earlier site the install warns role_rights as unknown and skips it, and gives the feed's user no read, so the events wait; the service's log says which record type was refused (ivn logs) (What goes where).

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