Handle rewards event notifications
Guide on processing rewards event notifications
Overview
If you already have a loyalty program and your customers are earning rewards, you can integrate with Imprints rewards event notification to handle rewards originating from Imprint.
As the loyalty program maintainer, you are responsible for managing the customer’s reward balance and issuing rewards when required. Imprint track rewards earned by customers from transactions and promotions and notifies you when rewards are available or should be issued.
How it works
- Rewards Tracking
- Customer earns rewards from transactions and promotions.
- Imprint keeps track of accumulated rewards.
- Rewards Issuance Event Notification
- When it is time for the reward to be available or usable, Imprint post a reward event notification to the endpoint you provided
- Handling the Rewards Event Notification
- Upon receiving the event, you should process the request and issue the reward to the customer.
- If the reward is successfully issued, respond to the event notification with a 200 status code.
- If there is an issue with issuing the reward, respond with an appropriate error code.
- Imprint will retry sending the event with exponential backoff.
Reward Webhook Configuration Options
The rewards program can be configured in one of two ways:
- Per-Event Reward
- Receive rewards for each individual event, such as transactions or offers, and their status updates.
- Aggregrate Statement Reward
- Receive a single aggregated reward at the end of the customer’s statement cycle, representing the total rewards earned during the statement period
Aggregate Statement Reward
When configured for aggregate statement rewards, your program will receive a single AVAILABLE
reward event
at the end of the customer’s current statement cycle. This event reflects the total amount of rewards earned during the cycle.
Reward Issuance Upon Statement Closure
Once a customer’s statement closes, you will receive a AVAILABLE
reward event structured as follows:
Individual Rewards
If your program is configured up to receive rewards for each individual event (transactions or offers).
You will receive reward events when the reward is created and when the reward is available.
Transaction Reward Processing:
- When the transaction is
CAPTURED
orREFUNDED
, aPENDING
reward is created and you will receive aPENDING
transactional reward event.
Example of a reward event send after a transaction identified by fbfe3146-3a72-4edf-a31b-b2773e9153d8
is CAPTURED
Offer Reward Processing:
- When a promotion is satisfied, an offer reward is created and you will receive a
PENDING
offer reward event.
Statement Closure:
- When the customer’s statement closes, you will receive an
AVAILABLE
reward event for each reward created during the statement cycle.
Example of a reward event send after the customer’s statement closes
Examples
Promotional Reward
Customer should be issued $50.00 for satisfying the conditions of a promotion.
Transactional Reward
Customer should be issued $1.00 for making a transaction identified by transaction_id
One-time Reward
Customer should be issued a one-off reward