This method is for
fixed rewards. For flexible rewards (where the customer chooses an amount) use redeemFlexible. On store-credit shops fixed-cost redemption is disabled, so redeemFlexible is the only redemption path. See Loyalty modes.Usage
Parameters
string
required
The ID of the reward to redeem. You can get reward IDs from
getShopRewards.Response
boolean
Whether the redemption was successful.
string
The generated Shopify discount code.
object
A summary of the redeemed reward.
object
The full customer reward record that was created, including
id, status, expiresAt, and the discount code. Same shape as an entry from getCustomerRewards.