LoyaltyProgram

When updating, already existing fields omitted from the payload will generally not be deleted unless otherwise specified.

  • Determines how calculated earned points will be rounded. When rounding to nearest, X.5 will be rounded up.

    Example: Earning 10 points/dollar on $3.51 = 35.1 points. Rounding down or nearest would yield 35 points, while up would yield 36.

    This field defaults to down when omitted.

  • Determines if/how eligible subtotals (total of item values less discounts) will be rounded to whole dollar values before calculating earned points. When rounding to nearest, $X.50 will be rounded up.

    Example: Earning 10 points/dollar on $3.51. Rounding up or nearest would result in $4.00 or 40 points. Rounding down would yield $3.00 or 30 points. none would result in 35.1 points, rounded according to accrual_point_rounding_mode.

    This field defaults to none when omitted.

    values
    nonedownupnearest
  • When true, replacement transactions (those with a replaces_transaction_id) will trigger point adjustments for loyalty enrollments that already earned points on a prior version of the transaction. The difference in point value between the replacement and the original is credited or debited accordingly.

    When false (default), replacement transactions are silently ignored for loyalty processing — enrollments keep whatever points they earned on the original transaction.

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

  • Integer numbers.

  • The maximum number of points that can be earned on a transaction. If this field is null or omitted, there is no limit.

  • Determines if and how calculated point expiration dates (after applying point_expiration_days) will be adjusted to align with a specific calendar boundary. When set to first_of_month, the computed expiration date will be moved forward to the first day of the following month. When set to none, the expiration date will remain exactly as calculated with no additional adjustment.

    Example: If point_expiration_days results in an expiration date of March 18:

    • none would keep the expiration date as March 18.
    • first_of_month would adjust the expiration date to April 1.

    This field defaults to none when omitted.

  • How many days after they are earned that points will expire, or 0 if they should never expire.

  • An optional timestamp in the format of HH:00 (00:00 to 23:00) that will control the time of day at which points will expire after the expiration date is determined.

    • required if point_expiration_time_zone is set
    • when null or omitted, points will expire at the same UTC time of day
    • any other value will be documented/interpreted as a local time
  • An optional string time zone to represent the locale of any explicit point_expiration_time

    • required if point_expiration_time is set
  • How many days transactions can be retro claimed after they occur. If this field is null or omitted, there is no time limitation.

  • Apply limitations to retro claims made over a certain number of days (e.g. if using a limitation type of "points" and this is set to 30, an enrollment may only earn 30 points from retro claims over a period of 30 days).

    • All retro claims will count toward limitations when this field is omitted or null.
    • Limited activity (retro claiming, point earn, etc.) will be prevented when set to 0.
  • Determines how many points can be earned through retro claims within the defined limitation period.

    • This limitation will not be applied if field is omitted or null.
    • This field only applies when using the "points" limitation type.
  • Determines how many transactions can be retro claimed within the defined limitation period.

    • This limitation will not be applied if field is omitted or null.
    • This field only applies when using the "claims" limitation type.
  • Determines how many transactions placed on the same date can be retro claimed within the defined limitation period.

    • This limitation will not be applied if field is omitted or null.
    • This field only applies when using the "claims" limitation type.
  • Determines what should be limited when retro claiming eligible transactions. Unrelated limitations such as max_points_per_transaction and retro_claim_days still apply.

    • none - no limitation (default)
    • points - limit points earned through retro claims. See related settings retro_claim_limitation_days & retro_claim_limitation_max_points for more details.
    • claims - limit number of retro claims allowed. See related settings retro_claim_limitation_days, retro_claim_limitation_total_claims, & retro_claim_limitation_total_claims_per_trans_date for more details
  • Determines how optional Loyalty Enrollment Tiering will work within a Loyalty Program, specifically how point earning activity is determined as qualifying (or not) toward meeting Tier requirements, and how long Enrollments are granted access to Tiers.

    Specific criteria (e.g. how many lifetime points are needed) for earning into each Tier is configured at the Tier level (see Loyalty Tier Grant Rule).

    Note: When updating a Loyalty Program, this object replaces the program's existing config in full rather than being merged with it. Send every field (e.g. starting from the config returned by the API, with modifications), or null to remove tiering from the program.

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

Examples
{
  "name": "Test Program 2",
  "description": "An example Loyalty Program",
  "default_point_accrual_rule": {
    "name": "5 points per dollar plus 10 points per visit base rule ",
    "accrual_multiplier": 0.05,
    "accrual_fixed": 10,
    "min_spend_amount": 0
  }
}