Exchange Points for Rewards Recipe

📌 Purpose

This recipe walks through the process of setting up a new company along with a loyalty program where customers can exchange points for fixed £ off vouchers. The end result is a fully configured three-level company hierarchy, along with a points scheme, a reward bank and commonly used campaigns. This setup will also allow you to create sample wallets to begin making transactions.

🖼 Recipe Overview

You will begin with creating a new company unit, followed by redemption partner (aka banners) and stores with default settings. Once the units are established a points scheme will be setup prior to the rewards banks and campaigns. Four commonly used campaigns can be created via API with the recipes provided, allowing you to create coupons using a single tag for easy management of initial offers. Steps are provided to assist you in creating wallets, where from a single call you will create the wallet, a consumer object and a points account. Finally a reward bank step will be included to allow customers to exchange points for a tokenized £ off coupon.

📋 Prerequisites

  • Eagle Eye API access: required to make API calls
  • Company unit's clientId & secret: required to make API calls
  • Points base earn and spend rules: needed for points setup
  • Company, banner and store names and unique alphanumeric identifiers (no dashes) for each: required to assign against campaigns
  • Products ingested for use in product based campaigns: required for campaigns that target specific products

📤 Outputs

Note the following outputs as your complete your steps for use in future API calls and for validation purposes:

Output NamePurpose
incomingIdentifierClient assigned alphanumeric value used in banner, campaigns and loyalty rules
schemeIdSystem assigned identifier for your loyalty program points rules
campaignIdAuto assigned identifier for campaigns
pointsRewardBankId (aka bankId)Auto assigned identifier for reward banks
pointsRewardBankRewardIdAuto assigned identifier for rewards within a reward banks
walletIdIdentifier for customers' wallets, often used in APIs
accountIdIdentifier for points or coupon accounts assigned to a wallet

📒 Steps

Step 1: Company Creation

Begin by setting up your retailer brand, banners, and stores within the system. This ensures your loyalty program is connected to your operational structure, so all points earning and spending activities are correctly attributed to the right locations your customers shop in.


Step 2: Setup Loyalty Points Rules

Define how customers will earn points in your loyalty program. Setting up your loyalty scheme establishes the rules for how customers are rewarded, creating clear incentives that drive purchase frequency and brand engagement.


Step 3: Create Sample Campaigns

Set up sample promotional campaigns to demonstrate how your loyalty program can engage customers. These campaigns will include different offer types such as discounts, fixed point rewards, and bonus point incentives, giving you practical examples to validate the program before launch.

🚧

In this recipe, exclude the initialOffers tag in the tags array


Step 4: Create Reward Banks

To allow the exchange of points for coupon accounts in the wallet, use this section to create public (open) and personal (targeted) rewards banks. Use the campaignIds from step 3 when setting up your reward banks here.


Step 5: Sample Customer Wallets

Create test customer wallets to simulate real customer experiences. This step ensures each wallet correctly displays points balances, allowing you to test end-to-end functionality before activating the program for live customers.

🚧

In this recipe, exclude the campaign array in the request payload


Step 6: Credit Points to the Loyalty Account

Before an exchange can happen against the rewards account, points should be available in the wallet's points account. This step will credit points to the loyalty account created as part of the wallet service create call in step 5.


Step 7: Public Reward Bank Exchange

Now that wallets are created with a points balance, the next step is to exchange the points for coupons from the Reward Banks created in 4.1. This step will focus specifically on the public reward banks exchange process.


Step 8: Personal Reward Bank Exchange

To test the exchange of points for coupons from the Reward Banks created in 4.2, specifically targeted to customer wallets, use this step to setup the presonal reward banks exchange process.


✅ Business Readiness Checklist

Use these steps to validate the setup of your Loyalty Program:

🔧 Troubleshooting Tips