Exchange

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.

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 PUBLIC Reward Banks the number of exchanges is counted against the calling walletId.
  • For PRIVATE Reward 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.

Language
Credentials