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

LoyaltyProgram

object

How the loyalty program of the business is set up.

Fields

  • main_programstringRequired

    The main program. POS rules add to it whichever it is.

    One of "points""stamps"

  • pointsProgramPointsRequired

    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 | nullRequired

      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 | nullRequired

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

    • reward_valuenumber | nullRequired

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

    • reward_labelstring | nullRequired

      The title of the voucher.

    • expire_daysinteger | nullRequired

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

    • activate_afterintegerRequired

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

      One of 01234

    • rulesarray of PointRuleRequired
      9 fields
      • idintegerRequired
      • namestringRequired
      • scale_factornumberRequired

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

      • is_activebooleanRequired

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

      • included_skusarray of stringRequired
      • excluded_skusarray of stringRequired
      • included_categoriesarray of stringRequired

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

      • excluded_categoriesarray of stringRequired
      • location_idsarray of integerRequired

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

  • stamp_cardsarray of ProgramStampCardRequired
    11 fields
    • pos_stamp_rule_idinteger | nullRequired

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

    • titlestring | nullRequired

      null for the main card.

    • detailsstring | nullRequired
    • iconinteger | nullRequired

      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

    • targetintegerRequired

      Stamps needed for a free item.

    • is_activebooleanRequired

      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 stringRequired
    • excluded_skusarray of stringRequired
    • included_categoriesarray of stringRequired

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

    • excluded_categoriesarray of stringRequired
    • location_idsarray of integerRequired

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

  • no_stamp_rulesarray of NoStampRuleRequired
    8 fields
    • idintegerRequired
    • namestringRequired
    • is_activebooleanRequired

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

    • included_skusarray of stringRequired
    • excluded_skusarray of stringRequired
    • included_categoriesarray of stringRequired

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

    • excluded_categoriesarray of stringRequired
    • location_idsarray of integerRequired

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

  • min_spend_rewardsarray of MinSpendRewardRequired

    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
    • spendnumberRequired

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

    • rewardnumberRequired

      The amount of the voucher.

    • expire_daysintegerRequired

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

    • activate_afterintegerRequired

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

  • time_limited_offersarray of ProgramTimeLimitedOfferRequired

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

    14 fields
    • idintegerRequired
    • titlestringRequired
    • descriptionstring | nullRequired
    • starts_atstring · date-timeRequired
    • ends_atstring · date-timeRequired
    • points_thresholdintegerRequired

      Offer points needed for one voucher.

    • discount_typestringRequired

      percent off the items, or a fixed amount off.

      One of "percent""fixed"

    • discount_valuenumberRequired
    • max_itemsintegerRequired

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

    • max_vouchers_per_customerintegerRequired

      Vouchers one customer can get from this offer.

    • included_skusarray of stringRequired
    • excluded_skusarray of stringRequired
    • included_categoriesarray of stringRequired

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

    • excluded_categoriesarray of stringRequired
  • labelsarray of LoyaltyLabelRequired

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

    4 fields
    • typestringRequired

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

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

    • labelstring | nullRequired
    • descriptionstring | nullRequired
    • positioninteger | nullRequired

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