Skip to main content

Loyalty Catalog Events

List of Catalogs

CatalogDescription
Survey CatalogCatalog representing values for Surveys in an app.
Reward CatalogCatalog representing values for Rewards in an app.


"Required Catalog Fields"

Some catalog fields can be marked as optional below but may be required for your app. Please refer to your integration notes to verify which fields are required for your use-case.

Survey Catalog

Below are the Survey Catalog values.

Format

ParamUsabilityFormatDescription
nameREQUIREDSTRINGName of the survey, provided by the partner.
descriptionOPTIONALSTRINGDescription of the survey, provided by the partner.
durationOPTIONALINTDuration of the survey, provided by the partner. (in Seconds)
typeREQUIREDSTRINGType of the survey, provided by the partner.
reward_idREQUIREDSTRINGReward Id for the survey, provided by the partner.
questions_listREQUIREDARRAY(STRING)List of Questions for the survey, provided by the partner.
creation_dateOPTIONALSTRINGCreation Date of the survey, provided by the partner. (ISO 8601 format)
expiry_dateOPTIONALSTRINGExpiry Date of the survey, provided by the partner. (ISO 8601 format)
organization_idOPTIONALSTRINGOrganization Id of the survey, provided by the partner.
organization_nameOPTIONALSTRINGOrganization Name of the survey, provided by the partner.

Usage

    val surveyCatalogModel = SurveyCatalogModel(
name = "Kerri Salazar",
duration = "940",
type = "natoque",
rewardId = "consul",
questionsList = "item1, item1",
description = "dolor",
creationDate = System.currentTimeMillis(),
expiryDate = System.currentTimeMillis(),
organizationId = "feugiat",
organizationName = "Jules Baxter"
)

CFLoyaltyEvent.logCatalog(LoyaltyCatalogSubject.Survey, "testSurveyId", surveyCatalogModel)


Reward Catalog

Below are the Reward Catalog values.

Format

ParamUsabilityFormatDescription
nameREQUIREDSTRINGName of the reward, provided by the partner.
descriptionOPTIONALSTRINGDescription of the reward, provided by the partner.
typeREQUIREDSTRINGType of the reward, provided by the partner.
required_pointsREQUIREDFLOATRequired Points for the reward, provided by the partner.
creation_dateOPTIONALSTRINGCreation Date of the reward, provided by the partner. (ISO 8601 format)
expiry_dateOPTIONALSTRINGExpiry Date of the reward, provided by the partner. (ISO 8601 format)
organization_idOPTIONALSTRINGOrganization Id of the reward, provided by the partner.
organization_nameOPTIONALSTRINGOrganization Name of the reward, provided by the partner.

Usage

    val rewardCatalogModel = RewardCatalogModel(
name = "Florine Kane",
description = "nostrum",
type = "consetetur",
requiredPoints = "4.5f",
creationDate = System.currentTimeMillis(),
expiryDate = System.currentTimeMillis(),
organizationId = "legimus",
organizationName = "Helen Vega"
)
CFLoyaltyEvent.logCatalog(LoyaltyCatalogSubject.Reward, "testRewardId", rewardCatalogModel)