flexible reward, where the customer chooses how much of their balance to spend and the server generates a discount for that amount. This powers “choose your own discount” rewards in points mode, and it is the only redemption path on store-credit shops.
Usage
Parameters
The ID of a flexible reward (one whose
redemptionMode is "flexible"). Get reward IDs from getShopRewards.The amount to spend, in the shop’s loyalty unit (points, or minor currency units in store-credit mode). Must fall within the reward’s
flexibleConfig.minPoints and flexibleConfig.maxPoints.Response
Whether the redemption was successful.
The created reward record.
The cash value of the generated discount, in major currency units.
The amount deducted from the customer’s balance.
The customer’s remaining balance after redemption.