Get rewards
/customers/{id}/rewardsEverything the customer holds now: points, stamp cards, vouchers, stamp
vouchers, time-limited offer progress and vouchers, gift card balance. The same object is sent
in customer.rewards_updated. Read-only.
Path parameters
idintegerRequiredThe customer id.
Responses
Success
- 200 OKRewards
The customer's rewards.
9 fields
customer_idintegercurrencyCurrencyThe business currency. Amounts in Rewards and Orders are in this currency.
One of
123pointsoneOfnullwhen points are not used.2 variants
Exactly one of:
RewardPoints
balanceintegerPoints the customer holds, rounded down.
targetinteger | nullPoints needed for a voucher;
0ornullmeans points do not turn into vouchers.rewardstring | nullWhat the customer gets at the target, as set up in the dashboard.
Option 2
stamp_cardsarray of StampCard5 fields
pos_stamp_rule_idinteger | nullThe POS stamp rule of this card;
nullfor the main card.titlestring | nulldetailsstring | nullstampsintegerStamps collected, rounded down.
targetintegerStamps needed for a free item.
vouchersarray of RewardVoucherValue vouchers the customer can use now or later (pending ones included).
8 fields
idintegerkindVoucherKindOne of
"points""gift_card""min_spend"titlestringamountnumberThe discount, in the business currency, rounded to cents.
min_spendinteger | nullThe smallest order total the voucher applies to;
nullwhen there is none.active_fromstring | null · date-timeThe voucher can be used from this time; a future time means it is pending.
valid_untilstring | null · date-timenullwhen it does not expire.created_atstring · date-time
stamp_vouchersarray of StampVoucherFree items earned on a stamp card.
7 fields
idintegertitlestringpos_stamp_rule_idinteger | nullThe POS stamp rule it was earned under;
nullfor the main card or a deleted rule.is_rule_deletedbooleantruewhen the rule was deleted after the voucher was issued; the voucher stays valid.applies_tooneOfThe 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 stringexcluded_skusarray of stringincluded_categoriesarray of stringCategory paths; a category includes its subcategories.
excluded_categoriesarray of string
Option 2
expires_atstring | null · date-timenullwhen it does not expire.created_atstring · date-time
time_limited_offeroneOfThe customer's progress in the time-limited offer running now;
nullwhen none runs.2 variants
Exactly one of:
TimeLimitedOfferProgress
idintegertitlestringstarts_atstring · date-timeends_atstring · date-timepointsintegerOffer points collected, rounded down.
targetintegerOffer points needed for a voucher.
Option 2
time_limited_vouchersarray of TimeLimitedVoucherVouchers earned in a time-limited offer; listed while valid, also after the offer ended.
9 fields
idintegertime_limited_offer_idintegerdiscount_typeTimeLimitedDiscountTypeOne of
"percent""fixed"discount_valuenumbermax_itemsinteger | nullHow many items the offer discounts in total;
nullwhen there is no limit.items_leftinteger | nullItems still discountable, counted over the whole offer;
nullwhen there is no limit.applies_toRuleScopeThe items a voucher applies to. Empty included lists mean any item; excluded lists always win.
4 fields
included_skusarray of stringexcluded_skusarray of stringincluded_categoriesarray of stringCategory paths; a category includes its subcategories.
excluded_categoriesarray of string
valid_untilstring · date-timecreated_atstring · date-time
gift_cardoneOfnullwhen the customer has no gift card balance.2 variants
Exactly one of:
GiftCard
balancenumberRemaining gift card balance, in the business currency, rounded to cents.
Option 2
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.
- 404 Not FoundError
The resource does not exist or does not belong to 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/customers/{id}/rewards' \
-H 'Authorization: Bearer lk_live_...'
HTTP/3 200 OK
Content-Type: application/json
{
"customer_id": 1042,
"currency": 2,
"points": {
"balance": 120,
"target": 200,
"reward": "€5 off"
},
"stamp_cards": [
{
"pos_stamp_rule_id": 14,
"title": "Bagels",
"details": "Buy 5 bagels",
"stamps": 2,
"target": 5
}
],
"vouchers": [
{
"id": 881,
"kind": "points",
"title": "€5 off",
"amount": 5,
"min_spend": null,
"active_from": "2026-01-01T12:00:00Z",
"valid_until": "2026-12-31T23:59:59+00:00",
"created_at": "2026-01-01T12:00:00Z"
}
],
"stamp_vouchers": [
{
"id": 312,
"title": "Free bagel",
"pos_stamp_rule_id": 14,
"is_rule_deleted": true,
"applies_to": {
"included_skus": [
"BAGEL-PLAIN"
],
"excluded_skus": [],
"included_categories": [
"Bakery/Bagels"
],
"excluded_categories": []
},
"expires_at": "2026-01-01T12:00:00Z",
"created_at": "2026-01-01T12:00:00Z"
}
],
"time_limited_offer": {
"id": 9,
"title": "Double December",
"starts_at": "2026-01-01T12:00:00Z",
"ends_at": "2026-01-01T12:00:00Z",
"points": 40,
"target": 100
},
"time_limited_vouchers": [
{
"id": 51,
"time_limited_offer_id": 9,
"discount_type": "percent",
"discount_value": 20,
"max_items": 2,
"items_left": 1,
"applies_to": {
"included_skus": [
"BAGEL-PLAIN"
],
"excluded_skus": [],
"included_categories": [
"Bakery/Bagels"
],
"excluded_categories": []
},
"valid_until": "2026-01-01T12:00:00Z",
"created_at": "2026-01-01T12:00:00Z"
}
],
"gift_card": {
"balance": 12.5
}
}