Get the program
GET/v1/program
Returns the program for the brand that owns the key. Cache it for a few minutes; it changes only when someone edits the program in the unPLUG dashboard.
Permissions: Secret key with program:read, or a member token.
Guide
Points and rewardsResponse fields#
Returns 200 with Program
brand_idstring (uuid)Your brand.namestringThe program name guests see, for exampleRewards.point_nameobjectsingularandplural, for exampleBeanandBeans. Use these in your UI instead of the word "points".Show attributesHide attributes
singularstringpluralstring
earningobjectShow attributesHide attributes
typestringOne ofspend,visitpoints_per_dollarintegerWhentypeisspend.points_per_visitintegerWhentypeisvisit.roundingstringOne ofdownearn_onstringPoints are earned on the subtotal after discounts.One ofsubtotal
tiersarray of TierTiers from lowest to highest. Each hasid,name,min_lifetime_pointsand, when the tier gives one,upgrade_bonus_points(points added once when a member moves up into it). Tiers are based on lifetime points, so spending points never drops a member's tier.Show attributesTier
idstring (uuid)namestringmin_lifetime_pointsintegerupgrade_bonus_pointsintegerPoints added when a member reaches this tier.
default_time_zonestringIANA time zone used for anything that has no location, such as birthdays.currencystringISO 4217 code.USD.points_expiryobjectNullableComing soonComing soon{ "days_inactive": 365 }when points expire after a period with no activity. Points don't expire at launch, and the field is absent.Show attributesHide attributes
days_inactiveinteger
Error descriptions#
401Unauthorized
token_expired
The member token is older than 15 minutes. Get a new one from your server.
Any endpoint can also return the common errors.