loyalty/record/activity

Fields

appIdstring required

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

activityNamestring 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.