LoyaltyPointAccrualRule

When updating, already existing fields omitted from the payload will generally not be deleted unless otherwise specified. Time selector, item set ID, ineligible item set ID, and tier ID are exceptions.

  • A fixed point value that will be earned for a transaction regardless of the amount spent, as long as the minimum spend criteria is met.

  • The ratio of how many points are earned per smallest unit of currency (cents for USD). 5 points per dollar would be a multiplier of 5 points/100 cents, or 0.05.

  • How much (in smallest currency unit/cents) must be spent in a transaction to earn points.

  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

  • Integer numbers.

  • Optional. The ID of a Sparkfly Item Set whose Items are excluded from earning points. When specified, Items in that set never earn points, even if they also appear in the eligible item_set_id. By default, no Items are excluded.

  • Optional. The ID of a Sparkfly Item Set whose Items are eligible to earn points. By default, all Items on a Transaction can earn points. When specified, only Items in that set are eligible to earn points (subject to any ineligible_item_set_id exclusions).

  • Integer numbers.

  • The current status of the Point Accrual Rule.

    values
    pendingactivesuspendedarchived
  • Optional. By default, Transactions placed through any store location will earn points. By specifying the ID of a Sparkfly Store List here, only Transactions made through a Store in that list will be eligible to earn points.

  • Optional tier ID for rules for if tiering is enabled.

  • Optional. By default, a point accrual rule is always valid, but a time selector can be specified to make it only apply at specific days/dates/times.

    Properties: 2
  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

Examples
{
  "name": "5 points per dollar plus 10 points per visit base rule ",
  "accrual_multiplier": 0.05,
  "accrual_fixed": 10,
  "min_spend_amount": 0
}