Rewards
object
Every reward a customer holds, as it stands now. The same object is the data
of customer.rewards_updated. A part is empty (null or []) when that kind of reward is not
used or the customer holds none.
Vouchers carry no codes: the customer redeems them with their Lynked barcode.
Expired and used vouchers are not listed, and no event is sent when a voucher expires — use
valid_until / expires_at.
Fields
customer_idintegerRequiredThe business currency. Amounts in Rewards and Orders are in this currency.
One of
123pointsoneOfRequirednullwhen points are not used.2 variants
Exactly one of:
RewardPoints
balanceintegerRequiredPoints the customer holds, rounded down.
targetinteger | nullRequiredPoints needed for a voucher;
0ornullmeans points do not turn into vouchers.rewardstring | nullRequiredWhat the customer gets at the target, as set up in the dashboard.
Option 2
5 fields
pos_stamp_rule_idinteger | nullRequiredThe POS stamp rule of this card;
nullfor the main card.titlestring | nullRequireddetailsstring | nullRequiredstampsintegerRequiredStamps collected, rounded down.
targetintegerRequiredStamps needed for a free item.
Value vouchers the customer can use now or later (pending ones included).
8 fields
idintegerRequiredOne of
"points""gift_card""min_spend"titlestringRequiredamountnumberRequiredThe discount, in the business currency, rounded to cents.
min_spendinteger | nullRequiredThe smallest order total the voucher applies to;
nullwhen there is none.active_fromstring | null · date-timeRequiredThe voucher can be used from this time; a future time means it is pending.
valid_untilstring | null · date-timeRequirednullwhen it does not expire.created_atstring · date-timeRequired
Free items earned on a stamp card.
7 fields
idintegerRequiredtitlestringRequiredpos_stamp_rule_idinteger | nullRequiredThe POS stamp rule it was earned under;
nullfor the main card or a deleted rule.is_rule_deletedbooleanRequiredtruewhen the rule was deleted after the voucher was issued; the voucher stays valid.applies_tooneOfRequiredThe rule's items as they were when the voucher was issued;
nullfor the main card (any item).2 variants
Exactly one of:
RuleScope
included_skusarray of stringRequiredexcluded_skusarray of stringRequiredincluded_categoriesarray of stringRequiredCategory paths; a category includes its subcategories.
excluded_categoriesarray of stringRequired
Option 2
expires_atstring | null · date-timeRequirednullwhen it does not expire.created_atstring · date-timeRequired
time_limited_offeroneOfRequiredThe customer's progress in the time-limited offer running now;
nullwhen none runs.2 variants
Exactly one of:
TimeLimitedOfferProgress
idintegerRequiredtitlestringRequiredstarts_atstring · date-timeRequiredends_atstring · date-timeRequiredpointsintegerRequiredOffer points collected, rounded down.
targetintegerRequiredOffer points needed for a voucher.
Option 2
Vouchers earned in a time-limited offer; listed while valid, also after the offer ended.
9 fields
idintegerRequiredtime_limited_offer_idintegerRequiredOne of
"percent""fixed"discount_valuenumberRequiredmax_itemsinteger | nullRequiredHow many items the offer discounts in total;
nullwhen there is no limit.items_leftinteger | nullRequiredItems still discountable, counted over the whole offer;
nullwhen there is no limit.The items a voucher applies to. Empty included lists mean any item; excluded lists always win.
4 fields
included_skusarray of stringRequiredexcluded_skusarray of stringRequiredincluded_categoriesarray of stringRequiredCategory paths; a category includes its subcategories.
excluded_categoriesarray of stringRequired
valid_untilstring · date-timeRequiredcreated_atstring · date-timeRequired
gift_cardoneOfRequirednullwhen the customer has no gift card balance.2 variants
Exactly one of:
GiftCard
balancenumberRequiredRemaining gift card balance, in the business currency, rounded to cents.
Option 2