Represents an accrual rule, which defines how buyers can earn points from the base loyalty program.
LoyaltyProgramAccrualRule
Name | Type | Tags | Description |
---|---|---|---|
accrualType |
string |
Required | The type of the accrual rule that defines how buyers can earn points. |
points |
number | undefined |
Optional | The number of points that buyers earn based on the accrual_type .Constraints: >= 1 |
visitData |
LoyaltyProgramAccrualRuleVisitData | undefined |
Optional | Represents additional data for rules with the VISIT accrual type. |
spendData |
LoyaltyProgramAccrualRuleSpendData | undefined |
Optional | Represents additional data for rules with the SPEND accrual type. |
itemVariationData |
LoyaltyProgramAccrualRuleItemVariationData | undefined |
Optional | Represents additional data for rules with the ITEM_VARIATION accrual type. |
categoryData |
LoyaltyProgramAccrualRuleCategoryData | undefined |
Optional | Represents additional data for rules with the CATEGORY accrual type. |
{
"accrual_type": "ITEM_VARIATION",
"visit_data": null,
"spend_data": null,
"item_variation_data": null,
"category_data": null
}