The Lynked Public API is in development. Endpoints will appear here as they go live.

Get the loyalty program

GET
/loyalty-program

How 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
  • The loyalty program.

    7 fields
    • main_programstring

      The 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 | null

        Points per unit of currency spent on items no rule matches. null when the main program is stamps: then only rules give points.

      • points_to_rewardinteger | null

        Points needed for a voucher; 0 or null means points do not turn into vouchers.

      • reward_valuenumber | null

        The amount of the voucher, in the business's currency.

      • reward_labelstring | null

        The title of the voucher.

      • expire_daysinteger | null

        Days a voucher stays valid once active; null or 0 = no expiry.

      • activate_afterinteger

        Days after it is issued that a voucher can be used (0–4).

        One of 01234

      • rulesarray of PointRule
        9 fields
        • idinteger
        • namestring
        • scale_factornumber

          Points per unit of the item's price; 0 = the items give no points.

        • is_activeboolean

          false = POS rules are switched off for the business, the rule gives no points now.

        • included_skusarray of string
        • excluded_skusarray of string
        • included_categoriesarray of string

          Category paths as sent by the POS; /26/ is category 26 and everything under it.

        • excluded_categoriesarray of string
        • location_idsarray of integer

          Ids from List locations where the rule applies; empty = every location.

    • stamp_cardsarray of ProgramStampCard
      11 fields
      • pos_stamp_rule_idinteger | null

        The POS stamp rule of this card; null for the main card.

      • titlestring | null

        null for the main card.

      • detailsstring | null
      • iconinteger | null

        Stamp icon: 1 Coffee cup, 2 Ice cream, 3 Scissors, 4 Burger, 5 Subs, 6 Vape, 7 Hanger, 8 Butcher knife, 9 Bread, 10 Cupcake, 11 Knife and fork, 12 Pint glass, 13 Wine glass, 14 Cocktail glass, 15 Steak, 16 Gas station, 17 Vegetables, 18 Oil delivery, 19 Pizza, 20 Chopsticks in bowl, 21 Tires, 22 Car wash, 23 Paw stamp, 24 Fire stamp, 25 Golf.

        One of 12345678910111213141516171819202122232425null

      • targetinteger

        Stamps needed for a free item.

      • is_activeboolean

        false = POS rules are switched off for the business: the card keeps the stamps customers have, but earns no new ones. Always true for the main card.

      • included_skusarray of string
      • excluded_skusarray of string
      • included_categoriesarray of string

        Category paths as sent by the POS; /26/ is category 26 and everything under it.

      • excluded_categoriesarray of string
      • location_idsarray of integer

        Ids from List locations where the rule applies; empty = every location.

    • no_stamp_rulesarray of NoStampRule
      8 fields
      • idinteger
      • namestring
      • is_activeboolean

        false = POS rules are switched off for the business, the rule does not apply now.

      • included_skusarray of string
      • excluded_skusarray of string
      • included_categoriesarray of string

        Category paths as sent by the POS; /26/ is category 26 and everything under it.

      • excluded_categoriesarray of string
      • location_idsarray of integer

        Ids from List locations where the rule applies; empty = every location.

    • min_spend_rewardsarray of MinSpendReward

      Vouchers for reaching an order total, smallest spend first. Switched-off ones are left out; empty while minimum spend vouchers are switched off for the business. Vouchers already issued stay valid.

      4 fields
      • spendnumber

        Order total that earns the voucher, in the business's currency.

      • rewardnumber

        The amount of the voucher.

      • expire_daysinteger

        Days the voucher stays valid once active; 0 = no expiry.

      • activate_afterinteger

        Days after it is issued that the voucher can be used.

    • time_limited_offersarray of ProgramTimeLimitedOffer

      Running and upcoming time-limited offers, the earliest first. Empty when the business does not use time-limited offers.

      14 fields
      • idinteger
      • titlestring
      • descriptionstring | null
      • starts_atstring · date-time
      • ends_atstring · date-time
      • points_thresholdinteger

        Offer points needed for one voucher.

      • discount_typestring

        percent off the items, or a fixed amount off.

        One of "percent""fixed"

      • discount_valuenumber
      • max_itemsinteger

        Items one customer can get discounted over the whole offer, across all their vouchers; 0 = no limit.

      • max_vouchers_per_customerinteger

        Vouchers one customer can get from this offer.

      • included_skusarray of string
      • excluded_skusarray of string
      • included_categoriesarray of string

        Category paths; /26/ is category 26 and everything under it.

      • excluded_categoriesarray of string
    • labelsarray of LoyaltyLabel

      The texts the Lynked app shows for the program, in display order.

      4 fields
      • typestring

        What the text describes; custom is a text the business added.

        One of "stamp_main""points_main""min_spend""stamp_rule""custom"

      • labelstring | null
      • descriptionstring | null
      • positioninteger | null

        Display order, smallest first; the list is already sorted.

Errors
  • 401 UnauthorizedError

    The API key is missing, invalid or revoked.

    3 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier 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
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

  • 422 Unprocessable EntityValidationError

    The request is invalid; errors lists the problems per field.

    4 fields
    • messagestring

      All problems in one line.

    • errorsobject

      Request field path → its problems.

    • error_codestring

      undefined for validation errors for now; see Errors for the list of codes.

    • error_uidstring

      Identifier 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.

    Headers
    • Retry-Afterinteger

      Seconds to wait before the next request.

    4 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

    • retry_afterinteger

      Seconds to wait before the next request; the same value as the Retry-After header.

  • 500 Internal Server ErrorError

    Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the error_uid.

    3 fields
    • messagestring

      What went wrong. The text may change; use error_code in your code.

    • error_codestring

      Machine-readable code of the problem, for example api_key_invalid; it does not change within v1. Every error has one: internal_server_error on a 500, undefined when the error has no specific code yet. See Errors for the list.

    • error_uidstring

      Identifier of this error in Lynked's logs. Quote it when you contact Lynked support.

Request
curl 'https://api.lynked.ie/api/public/v1/loyalty-program' \
  -H 'Authorization: Bearer lk_live_...'
Response 200 OK
HTTP/3 200 OK
Content-Type: application/json
Body
{
  "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
    }
  ]
}