Get the loyalty program
/loyalty-programHow customers earn points and stamps, and what they get for them.
POS rules (points.rules, the stamp cards of rules, no_stamp_rules) are always listed. While
POS rules are switched off for the business their is_active is false: they give nothing
new, but stamp cards keep the progress customers have. The stamp_cards here are the cards of
stamp_cards in Get a customer's rewards,
matched by pos_stamp_rule_id.
Responses
Success
- 200 OKLoyaltyProgram
The loyalty program.
7 fields
main_programstringThe main program. POS rules add to it whichever it is.
One of
"points""stamps"pointsProgramPointsHow 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 | nullPoints per unit of currency spent on items no rule matches.
nullwhen the main program is stamps: then onlyrulesgive points.points_to_rewardinteger | nullPoints needed for a voucher;
0ornullmeans points do not turn into vouchers.reward_valuenumber | nullThe amount of the voucher, in the business's currency.
reward_labelstring | nullThe title of the voucher.
expire_daysinteger | nullDays a voucher stays valid once active;
nullor0= no expiry.activate_afterintegerDays after it is issued that a voucher can be used (
0–4).One of
01234rulesarray of PointRule9 fields
idintegernamestringscale_factornumberPoints per unit of the item's price;
0= the items give no points.is_activebooleanfalse= POS rules are switched off for the business, the rule gives no points now.included_skusarray of stringexcluded_skusarray of stringincluded_categoriesarray of stringCategory paths as sent by the POS;
/26/is category 26 and everything under it.excluded_categoriesarray of stringlocation_idsarray of integerIds from List locations where the rule applies; empty = every location.
stamp_cardsarray of ProgramStampCard11 fields
pos_stamp_rule_idinteger | nullThe POS stamp rule of this card;
nullfor the main card.titlestring | nullnullfor the main card.detailsstring | nulliconinteger | nullStamp 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
12345678910111213141516171819202122232425nulltargetintegerStamps needed for a free item.
is_activebooleanfalse= 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 stringexcluded_skusarray of stringincluded_categoriesarray of stringCategory paths as sent by the POS;
/26/is category 26 and everything under it.excluded_categoriesarray of stringlocation_idsarray of integerIds from List locations where the rule applies; empty = every location.
no_stamp_rulesarray of NoStampRule8 fields
idintegernamestringis_activebooleanfalse= POS rules are switched off for the business, the rule does not apply now.included_skusarray of stringexcluded_skusarray of stringincluded_categoriesarray of stringCategory paths as sent by the POS;
/26/is category 26 and everything under it.excluded_categoriesarray of stringlocation_idsarray of integerIds from List locations where the rule applies; empty = every location.
min_spend_rewardsarray of MinSpendRewardVouchers 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
spendnumberOrder total that earns the voucher, in the business's currency.
rewardnumberThe amount of the voucher.
expire_daysintegerDays the voucher stays valid once active;
0= no expiry.activate_afterintegerDays after it is issued that the voucher can be used.
time_limited_offersarray of ProgramTimeLimitedOfferRunning and upcoming time-limited offers, the earliest first. Empty when the business does not use time-limited offers.
14 fields
idintegertitlestringdescriptionstring | nullstarts_atstring · date-timeends_atstring · date-timepoints_thresholdintegerOffer points needed for one voucher.
discount_typestringpercentoff the items, or afixedamount off.One of
"percent""fixed"discount_valuenumbermax_itemsintegerItems one customer can get discounted over the whole offer, across all their vouchers;
0= no limit.max_vouchers_per_customerintegerVouchers one customer can get from this offer.
included_skusarray of stringexcluded_skusarray of stringincluded_categoriesarray of stringCategory paths;
/26/is category 26 and everything under it.excluded_categoriesarray of string
labelsarray of LoyaltyLabelThe texts the Lynked app shows for the program, in display order.
4 fields
typestringWhat the text describes;
customis a text the business added.One of
"stamp_main""points_main""min_spend""stamp_rule""custom"labelstring | nulldescriptionstring | nullpositioninteger | nullDisplay order, smallest first; the list is already sorted.
Errors
- 401 UnauthorizedError
The API key is missing, invalid or revoked.
3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 403 ForbiddenError
The Public API is disabled for this business.
3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 422 Unprocessable EntityValidationError
The request is invalid;
errorslists the problems per field.4 fields
messagestringAll problems in one line.
errorsobjectRequest field path → its problems.
error_codestringundefinedfor validation errors for now; see Errors for the list of codes.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 429 Too Many RequestsRateLimitError
More than 120 requests per minute for this business.
HeadersRetry-AfterintegerSeconds to wait before the next request.
4 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
retry_afterintegerSeconds to wait before the next request; the same value as the
Retry-Afterheader.
- 500 Internal Server ErrorError
Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the
error_uid.3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
curl 'https://api.lynked.ie/api/public/v1/loyalty-program' \
-H 'Authorization: Bearer lk_live_...'
HTTP/3 200 OK
Content-Type: application/json
{
"main_program": "points",
"points": {
"points_per_unit": 1,
"points_to_reward": 100,
"reward_value": 5,
"reward_label": "€5 off",
"expire_days": 30,
"activate_after": 0,
"rules": [
{
"id": 7,
"name": "Beer",
"scale_factor": 2,
"is_active": true,
"included_skus": [
"BAGEL-PLAIN"
],
"excluded_skus": [],
"included_categories": [
"/26/"
],
"excluded_categories": [
"/26/145/"
],
"location_ids": []
}
]
},
"stamp_cards": [
{
"pos_stamp_rule_id": 14,
"title": "Bagels",
"details": "Buy 5 bagels",
"icon": 9,
"target": 5,
"is_active": true,
"included_skus": [
"BAGEL-PLAIN"
],
"excluded_skus": [],
"included_categories": [
"/26/"
],
"excluded_categories": [
"/26/145/"
],
"location_ids": []
}
],
"no_stamp_rules": [
{
"id": 21,
"name": "No stamps",
"is_active": true,
"included_skus": [
"BAGEL-PLAIN"
],
"excluded_skus": [],
"included_categories": [
"/26/"
],
"excluded_categories": [
"/26/145/"
],
"location_ids": []
}
],
"min_spend_rewards": [
{
"spend": 50,
"reward": 5,
"expire_days": 30,
"activate_after": 0
}
],
"time_limited_offers": [
{
"id": 9,
"title": "Double December",
"description": "Collect 100 offer points in December for 20% off",
"starts_at": "2026-12-01T00:00:00+00:00",
"ends_at": "2027-01-01T00:00:00+00:00",
"points_threshold": 100,
"discount_type": "percent",
"discount_value": 20,
"max_items": 2,
"max_vouchers_per_customer": 1,
"included_skus": [],
"excluded_skus": [
"GIFT-CARD"
],
"included_categories": [],
"excluded_categories": []
}
],
"labels": [
{
"type": "stamp_main",
"label": "Collect points",
"description": "1 point for every €1 spent",
"position": 1
}
]
}