Skip to content
English - Australia
  • There are no suggestions because the search field is empty.

Loyalty programs

Programs (under INTEGRATIONS) is where staff set up and look after an organisation's loyalty and gift-card programs. A program tells the POS how to look up a member or gift card, and where to send requests (a partner's web addresses, or local rules for a first-party program). The data lives in the loyalty service (impos-cloud-loyalty), not the core cloud API.

Everything is per organisation: a program belongs to one organisation, and the Programs page asks for the organisation before it shows anything.

Who can use it
Action Permission
See Programs in the sidebar, open the list, a program and its members LOYALTY_PROGRAM_READ
Create program, Edit config, Create credential, Rotate credential secret, Deactivate program LOYALTY_PROGRAM_ADMIN
Pick an existing partner when creating a partner-backed program PARTNER_READ as well

Buttons for actions you cannot take are hidden, and the whole danger zone on the detail page is hidden without LOYALTY_PROGRAM_ADMIN. Without LOYALTY_PROGRAM_READ the page says "You don't have access to Programs". The loyalty service checks both permissions again at the organisation in question. See Permissions reference.

Program types
Integration Kind What it is
Loyalty First-party Impos holds the members and balances. Config is local rules only (a points-to-money rate). No web addresses, no credential
Loyalty Partner-backed A partner holds the members. The POS calls the partner's web addresses (member enquiry, search, enrol, cashback redemption and reversal, and the two rewards addresses)
GiftCard Partner-backed (always) A partner holds the cards. The POS calls the partner's gift-card addresses (enquiry, activation, redemption, refund)

The server decides the kind from the integration and whether a partner code is present. Fields that belong to another kind are refused, for example web addresses on a first-party program.

The program list

User flow

  1. The user opens Programs. The page says "Select an organisation".
  2. They choose an organisation in the Org selector. The choice is kept in the page address (?org=), so the page can be bookmarked or shared.
  3. The table lists the organisation's programs. Clicking a row opens the program.
  4. Create program (top right) creates one for the chosen organisation.
Column Behaviour
Name The program name
Integration Loyalty or GiftCard
Kind First-party, or Partner (with the partner code)
Members Live (non-deleted) member count for the program
Status Always Active (see the caution below)

The list is not searchable or paged.

:::caution Status is always "Active" The loyalty service does not send a status. A deactivated program is excluded from the list and its detail page returns "not found", so every program the console can see is active. The console fills in "Active" itself. A Deactivated state never appears. :::

Creating a program

User flow

  1. The user clicks Create program and chooses the Integration (Loyalty or GiftCard).
  2. For Loyalty they choose the Kind (First-party or Partner-backed). GiftCard says "Gift-card programs are always partner-backed."
  3. They enter the Name and the kind-specific fields.
  4. For a partner-backed program they choose a Partner ID from the list of active partners. If the partner has no credential for this organisation yet, Create credential is offered in the same panel (see Credentials).
  5. They click Create.

Fields

Field Shown for Behaviour
Name All Required
Points-to-money rate First-party Optional. "Local conversion rate (points → currency)". The console accepts 0 or more; the server requires a number greater than 0
Member enquiry, Member search, Member enrol, Cashback redemption, Cashback reversal, Rewards lookup, Rewards redemption URLs Loyalty, partner-backed All optional. Any subset, including none, is accepted. See Rewards URLs
Gift-card enquiry, activation, redemption, refund URLs GiftCard All optional
Partner ID Partner-backed Required. Active partners only, sorted by name. Needs PARTNER_READ, otherwise the box says "Partner access required"

Changing the integration or kind clears every kind-specific field, so values from the other kind are never sent.

A program is created with a name and these fields only. Card-scan rules cannot be set at creation (the server refuses them); add them afterwards with Edit config.

What the system checks

  1. The integration is a known value.
  2. The partner code is trimmed and matched ignoring case, and the fields suit the kind.
  3. For a partner-backed program, a credential for that partner and organisation must already exist, otherwise: "No credential exists for this partner and organisation; create the credential first."

:::caution An empty web address is accepted and fails later Web addresses are optional because not every partner supports every operation. A missing address is not reported when the program is saved. It surfaces as an error when the POS first uses that operation. After creating a partner-backed program, check the detail page shows every address the partner supports. :::

Rewards URLs

The two Rewards addresses are for the discount path, where a member redeems offers against an order. They appear in the create panel, in Edit config and as read-only rows on the detail page.

Field Hint shown in the editor
Rewards lookup URL "Lists the discounts and offers a member can redeem. Set both rewards URLs — one without the other half-works."
Rewards redemption URL "Receives the order and returns the discounts to apply. Separate from cashback, which pays as a tender rather than discounting."

Set both or neither: the loyalty API answers a rewards request with "not configured" (a 400) when the address that request needs is empty, so a program with only one set works for only half of the flow. Cashback is separate: it pays as a tender, while rewards apply discounts. Blank fields are saved as empty. Rewards URLs are partner-backed Loyalty only; first-party and GiftCard programs do not have them.

The program detail page

Clicking a row opens /programs/{id}?org={orgId}. The organisation travels in the address; opening the page without it shows "No organisation selected" and a Back to programs button. An unknown or deactivated program shows "Program not found".

Block Contents
Configuration The points-to-money rate (first-party) or the partner's web addresses, as saved
Members A read-only member table, for Loyalty programs only
Danger zone Edit config, Create credential and Rotate credential secret (partner-backed only), Deactivate program

Members

The member table is a paged, read-only list of the program's members.

Column Meaning
Card ID The membership or card number the POS uses
Name, Email, Mobile From the member's profile; may be blank

It is for checking that members exist. Balances, enrolment and edits are not available here. If a refresh fails but earlier results are on screen, the console keeps them and shows "Couldn't refresh members — showing the last loaded results."

Editing the configuration

Edit config replaces the program's settings: "Replace this program's local rules" (first-party) or "integration webhook URLs".

:::caution Edit config replaces, it does not merge The server replaces the whole configuration with what is sent. The console always sends every field it knows about, so unchanged values survive, but anyone calling the API directly must resend the full configuration or the omitted fields are cleared. :::

The program name cannot be changed in the console, though the loyalty API supports it.

Card-scan rules (identification)

The same panel holds the scan rules: the barcode shapes that identify a program's cards, so the POS can match a scanned card to a program without the operator searching. There are two kinds of rule.

Rule Fields Meaning
Sentinel pair Prefix (required), Suffix (optional), and whether to strip the markers Matches a scan that starts with the prefix and, if given, ends with the suffix. $ and $ match $MYCARDID123$. A prefix-only rule such as aura matches aura123456
Number range Start and End (whole numbers) Matches a scan that is entirely numeric and falls between the two numbers inclusive. 1–3000 matches 1234 but not 3001. It is not a leading-digits rule

Strip the markers decides what card ID the partner receives. If on, $MYCARDID123$ becomes MYCARDID123. If off, the markers are part of the ID and it is used whole (aura123456). Getting this wrong makes every valid card come back as "not found", so the editor describes both settings and offers Test a scan.

Test a scan takes a sample barcode and shows what the rules currently on screen would do with it. It follows the POS's matching order:

  1. The scan is trimmed of surrounding whitespace and scanner control characters.
  2. Sentinel pairs are tried first. The longest prefix plus suffix wins.
  3. Number ranges are tried second, and only if the scan is all digits. The card ID is the raw scan, so leading zeros are kept.
  4. If two sentinel pairs are equally specific the result is reported as Ambiguous rather than guessed.

The test uses this program's rules only and makes no call. A "no match" does not mean the card is unroutable, because the POS checks every program in the organisation.

Rules the server enforces on save:

Rule Detail
Marker length A prefix or suffix is at most 64 characters, with no control characters
Whole-set replacement Sending scan rules replaces all of them. Sending an empty list for both clears them. Leaving the block out changes nothing
No clashes inside an organisation No two live programs may claim the same sentinel pair. The error names the program that owns it
Empty is valid A program with no rules is found by member search instead. "A valid setup, not a missing step"

If the console cannot read a program's existing rules, it says so and "Saving will leave them untouched". Check that the console and the loyalty service are on matching versions.

Credentials

A partner-backed program signs its requests to the partner's web addresses with an HMAC credential (a Client ID and a client secret).

Fact Detail
Scope One credential per partner and organisation, shared by all that partner's programs in the organisation. It is not a per-program secret
Created By Create credential (during program creation, or from the detail page). The secret is shown once, with an "I've stored it" tick-box before the panel can close
Already exists Create refuses: "A credential already exists for this partner and organisation. Rotate it instead."
Partner must exist The loyalty service asks the core API whether the partner is provisioned. If not: "This partner is not provisioned for this organisation."
Rotated Rotate credential secret gives a new secret. The Client ID stays the same
Different from the partner's own secret This is not the partner's Keycloak secret from Partners. That one is for the partner calling Impos. This one is for Impos calling the partner

:::danger Rotating stops every program that uses the partner "The current secret stops working immediately. Every program using this partner in this organisation will fail until the new secret is deployed." Agree a time with the partner before rotating. :::

:::caution The secret is stored in readable form The loyalty service keeps the credential secret in plain text in its database (a recorded platform decision, protected by database access control). It is "returned exactly once", but it is not hashed. Treat database access to the loyalty service accordingly. :::

Deactivating a program

Deactivate program asks for confirmation, then soft-deletes the program: it leaves the list and its page becomes "not found". The confirmation says it can be restored.

:::caution Deactivating is reversible only through the API The loyalty API restores a deactivated program when its update call is made on it, provided that, for a partner-backed program, the credential still exists, and the program's scan rules do not now clash with another live program. The console has no restore button and cannot even open a deactivated program. Nothing in the console tells staff that this path exists. The credential is not removed when a program is deactivated. :::

Deactivating an already-deactivated program shows "This program no longer exists." and is treated as done.