loyalty/rewards
fetches a list of loyalty rewards
Fields
appId • string required
appId • string requiredThe unique identifier for the store. This value is accessible at the block level via tapcartData?.appId
Description
Retrieves the customer's loyalty history from the enabled loyalty provider
Example
Tapcart.action("loyalty/rewards", {
appId: "AbC123XyZ9",
});
// Alternatively
Tapcart.actions?.getLoyaltyRewards({
appId: tapcartData?.appId
})Response
No response data is returned directly. Instead, the result is stored in the app variables under Tapcart.loyalty.rewards.
Important Notes
- This data becomes available upon customer login
customer/loginand can be accessed under app variables atTapcart.loyalty.rewards.
Updated 3 months ago
