loyalty/record/activity

Fields

appId • string required

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

activityName • string required

The name of the activity to be recorded


Description

Records a specified customer activity with the enabled loyalty provider.

Example

Tapcart.action("loyalty/record/activity", {
  appId: "AbC123XyZ9",
	activityName: "enable_push_notifications"
});

// Alternatively
Tapcart.actions?.recordLoyaltyActivity({ 
  appId: tapcartData?.appId, 
  activityName: "enable_push_notifications" 
})

Response

No response data is returned.


Did this page help you?