Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.64 KB

loyalty-program-accrual-rule.md

File metadata and controls

32 lines (23 loc) · 1.64 KB

Loyalty Program Accrual Rule

Represents an accrual rule, which defines how buyers can earn points from the base loyalty program.

Structure

LoyaltyProgramAccrualRule

Fields

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.

Example (as JSON)

{
  "accrual_type": "ITEM_VARIATION",
  "visit_data": null,
  "spend_data": null,
  "item_variation_data": null,
  "category_data": null
}