LoyaltyEnrollment
A Sparkfly Member's enrollment into a Sparkfly Loyalty Program.
When updating, already existing fields omitted from the payload will generally not be deleted unless otherwise specified.
- memberType: integer
_id requiredID of the backing Sparkfly Member being enrolled.
- createdType: stringFormat: date-time
_at read-onlythe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- externalType: string
_id - fraudType: stringenum
_risk _level The assessed fraud risk level for this enrollment. Used to flag potentially suspicious enrollments for review.
values- none
- low
- medium
- high
- historicalType: integer
_points read-onlyTotal amount of points credited to a Member since they were first enrolled.
- idType: integerread-only
Unique identifier for the Enrollment.
- pointType: integer
_balance read-onlyCurrent balance of non-expired points available for use.
- programType: integer
_id read-onlyID of the Loyalty Program the enrollment is for.
- sourceType: string
General purpose field available to track how Members signed up (e.g. "app", "referral", "in-person", etc.)
- statusType: stringenumread-only
Status of the Member's enrollment.
values- active
- suspended
- archived
- tierType: integer
_id read-onlyThis will get returned on all enrollment endpoints except for the Get Enrollments route.
- tierType: stringFormat: date
_term _end _date read-onlyThe last day of an Enrollment's current "Tier Term". Each Tier Term spans one full grant term (see
grant_term_type), whether it originated from an automatic tier advancement or was extended after a previous term lapsed. This is a fully inclusive UTC date (a Tier Term ends at midnight of the following date if they don't advance before). This field is only used by tiered Programs that are configured to align renewals with tier term end dates (seealign_renewal_with_tier_term_end). - tierType: stringFormat: date-time
_term _start _time read-onlyThe start of the Enrollment's current "Tier Term". This is a UTC timestamp representing either the moment an enrollment last automatically advanced tiers (see LoyaltyTierGrant
type) or immediately following theend_dateof a previous, lapsed tier term. This field is only used by tiered Programs that are configured to align renewals with tier term end dates (seealign_renewal_with_tier_term_end). - updatedType: stringFormat: date-time
_at read-onlythe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z