loyalty/customer

fetch customer loyalty data

Fields

appIdstring required

The unique identifier for the store. This value is accessible at the block level via tapcartData?.appId


Description

Retrieves the logged-in user's loyalty data as well as the users available activities

Example

Tapcart.action("loyalty/customer", {
  appId: "AbC123XyZ9",
});

// Alternatively
Tapcart.actions?.getLoyaltyCustomer({ 
  appId: tapcartData?.appId 
})

Response

No response data is returned directly. Instead, the result is stored in the app variables under Tapcart.loyalty.customer and Tapcart.loyalty.activities

⚠️

Important Notes

  • This data becomes available upon customer login customer/login and can be accessed under app variables at Tapcart.loyalty.customer.