LoyaltyProgram
object
How the loyalty program of the business is set up.
Fields
main_programstringRequiredThe main program. POS rules add to it whichever it is.
One of
"points""stamps"How points are earned and turned into vouchers. Present for every business: POS point rules give points even when the main program is stamps.
7 fields
points_per_unitinteger | nullRequiredPoints per unit of currency spent on items no rule matches.
nullwhen the main program is stamps: then onlyrulesgive points.points_to_rewardinteger | nullRequiredPoints needed for a voucher;
0ornullmeans points do not turn into vouchers.reward_valuenumber | nullRequiredThe amount of the voucher, in the business's currency.
reward_labelstring | nullRequiredThe title of the voucher.
expire_daysinteger | nullRequiredDays a voucher stays valid once active;
nullor0= no expiry.activate_afterintegerRequiredDays after it is issued that a voucher can be used (
0–4).One of
012349 fields
idintegerRequirednamestringRequiredscale_factornumberRequiredPoints per unit of the item's price;
0= the items give no points.is_activebooleanRequiredfalse= POS rules are switched off for the business, the rule gives no points now.included_skusarray of stringRequiredexcluded_skusarray of stringRequiredincluded_categoriesarray of stringRequiredCategory paths as sent by the POS;
/26/is category 26 and everything under it.excluded_categoriesarray of stringRequiredlocation_idsarray of integerRequiredIds from List locations where the rule applies; empty = every location.
11 fields
pos_stamp_rule_idinteger | nullRequiredThe POS stamp rule of this card;
nullfor the main card.titlestring | nullRequirednullfor the main card.detailsstring | nullRequirediconinteger | nullRequiredStamp icon:
1Coffee cup,2Ice cream,3Scissors,4Burger,5Subs,6Vape,7Hanger,8Butcher knife,9Bread,10Cupcake,11Knife and fork,12Pint glass,13Wine glass,14Cocktail glass,15Steak,16Gas station,17Vegetables,18Oil delivery,19Pizza,20Chopsticks in bowl,21Tires,22Car wash,23Paw stamp,24Fire stamp,25Golf.One of
12345678910111213141516171819202122232425nulltargetintegerRequiredStamps needed for a free item.
is_activebooleanRequiredfalse= POS rules are switched off for the business: the card keeps the stamps customers have, but earns no new ones. Alwaystruefor the main card.included_skusarray of stringRequiredexcluded_skusarray of stringRequiredincluded_categoriesarray of stringRequiredCategory paths as sent by the POS;
/26/is category 26 and everything under it.excluded_categoriesarray of stringRequiredlocation_idsarray of integerRequiredIds from List locations where the rule applies; empty = every location.
8 fields
idintegerRequirednamestringRequiredis_activebooleanRequiredfalse= POS rules are switched off for the business, the rule does not apply now.included_skusarray of stringRequiredexcluded_skusarray of stringRequiredincluded_categoriesarray of stringRequiredCategory paths as sent by the POS;
/26/is category 26 and everything under it.excluded_categoriesarray of stringRequiredlocation_idsarray of integerRequiredIds from List locations where the rule applies; empty = every location.
Vouchers for reaching an order total, smallest
spendfirst. Switched-off ones are left out; empty while minimum spend vouchers are switched off for the business. Vouchers already issued stay valid.4 fields
spendnumberRequiredOrder total that earns the voucher, in the business's currency.
rewardnumberRequiredThe amount of the voucher.
expire_daysintegerRequiredDays the voucher stays valid once active;
0= no expiry.activate_afterintegerRequiredDays after it is issued that the voucher can be used.
Running and upcoming time-limited offers, the earliest first. Empty when the business does not use time-limited offers.
14 fields
idintegerRequiredtitlestringRequireddescriptionstring | nullRequiredstarts_atstring · date-timeRequiredends_atstring · date-timeRequiredpoints_thresholdintegerRequiredOffer points needed for one voucher.
discount_typestringRequiredpercentoff the items, or afixedamount off.One of
"percent""fixed"discount_valuenumberRequiredmax_itemsintegerRequiredItems one customer can get discounted over the whole offer, across all their vouchers;
0= no limit.max_vouchers_per_customerintegerRequiredVouchers one customer can get from this offer.
included_skusarray of stringRequiredexcluded_skusarray of stringRequiredincluded_categoriesarray of stringRequiredCategory paths;
/26/is category 26 and everything under it.excluded_categoriesarray of stringRequired
The texts the Lynked app shows for the program, in display order.
4 fields
typestringRequiredWhat the text describes;
customis a text the business added.One of
"stamp_main""points_main""min_spend""stamp_rule""custom"labelstring | nullRequireddescriptionstring | nullRequiredpositioninteger | nullRequiredDisplay order, smallest first; the list is already sorted.