This API method allows the calling application to perform a Reward Bank exchange. Exchange means a Consumer will receive a specific reward as per Rewards Bank definition. For example: receive a two for one COUPON in exchange for 150 loyalty points (reward cost), after reaching or exceeding 170 points current balance (reward threshold)). If for any reasons this operation fails, EES AIR would perform a Rollback operation, so Consumer Account's will be restored to the state before this API call. Most typical causes why an exchange could fail could be linked to Reward's complex configuration (e.g. Campaign's Issuance limits or Issuance Windows)
Returned error code and an error message would explain why this exchange call failed.
- To exchange against an individual wallet you must provide
accountIdin the body and notschemeId. - To exchange against a household you must provide
schemeIdin the body and notaccountId.
Please note:
- By default for Loyalty Points Accounts, EES AIR allows exchanges of an
amount larger than the account's available balance, which would result
in a negative balance. This could be mitigated by EES Scheme
settings:- Disable 'allow negative balance'
- Enable 'AUTOTOPUP' - EES AIR will detect these negative balances and instantly correct them by bringing a balance to zero (and creating a corresponding Account Transaction of type 'AUTOTOPUP').
- ROLLBACK would leave traces in EES AIR in the form of VOIDED Wallet
Transaction and VOIDED Wallet Account Transaction. If for any reasons
Rollback mechanism fails, this endpoint would return the HTTP 207
(Multi-Status) header with all details, allowing to rectify this
situation. If for any reasons Rollback mechanism fails, this endpoint
would return the HTTP 207 (Multi-Status) header with all details,
allowing to rectify this situation.
If the Reward Bank has an Exchange Limit set against it then the number of exchanges will be checked. The call will fail with an ELE Exchange Limit Exceeded error if the limit has been reached.
- For
PUBLICReward Banks the number of exchanges is counted against the callingwalletId. - For
PRIVATEReward Banks the number of exchanges is counted against an active Wallet Link for the Reward Bank.
If multiple active Wallet Links exist between the same Personal Reward Bank and Wallet and are both valid for the same Reward then each link can be used up to the Exchange Limit before being marked as USED. EES AIR automatically selects the link expiring the soonest first, then the link most specific to the Reward being exchanged.
Household exchange
When the request includes the schemeId in the payload body and not accountId, the Reward's cost is taken from across the calling Wallet's household, i.e. the ACTIVE Points Accounts for that Scheme on the calling Wallet, its parent Wallet and its sibling Wallets. When the calling Wallet is itself a parent, its household is its child Wallets. The cost is split in proportion to each Account's usable balance. An Account with a negative balance is not charged, but its balance still counts towards the household total. Where the Scheme has a Points Burn Limit, no Account is charged more than it may still burn in the period.
If the household cannot cover the cost the exchange is refused with IF Insufficient Funds, and if the household may not burn enough points (due to a limit) it is refused with RV Rule Violation. Where Household Sharing is disabled on the Scheme only the calling Wallet's Account is charged.
The Reward is issued once, to the calling Wallet, and the Reward Bank, Reward and Exchange Limit checks described above apply to the calling Wallet; a household exchange counts as one use.
The Wallet Transaction is created against the calling Wallet and records an EXCHANGE Account Transaction for every contributing Account, including those on other Wallets in the household, as well as the Reward's CREATE Account Transaction. If the exchange cannot be completed once some Accounts have been charged, EES AIR performs the Rollback described above against every charged Account.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||

