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

customer.rewards_updated

A customer's rewards changed

The one event for rewards. Sent after any change to the rewards a customer holds —points, stamps, vouchers, stamp vouchers, time-limited offer progress and vouchers, gift card balance — whatever caused it: an order on any channel, a voucher used, a change made by staff in the dashboard, a bonus for joining a group.

One order or one dashboard action sends one event per customer, with the state after all of it.

data is the full current state, not the change: replace what you store with it. There are no separate events per kind of reward.

No event is sent when a voucher expires: expiry is a time, not a change. Use valid_until and expires_at, or fetch GET /customers/{id}/rewards.

Request Lynked sends

POST to your subscribed URL, JSON body below, signed with X-Lynked-Signature.

  • idstring · uuid

    The event id. Retries and re-sends of this event keep it; use it to skip duplicates.

  • typestring

    Always "customer.rewards_updated"

  • versionstring

    The subscription's API version; data has the shape of this version.

    Always "v1"

  • created_atstring · date-time

    When the event happened.

  • The customer's rewards, the same object as GET /customers/{id}/rewards returns.

    9 fields
    • customer_idinteger
    • currencyCurrency

      The business currency. Amounts in Rewards and Orders are in this currency.

      One of 123

    • pointsoneOf

      null when points are not used.

      2 variants

      Exactly one of:

      RewardPoints

      • balanceinteger

        Points the customer holds, rounded down.

      • targetinteger | null

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

      • rewardstring | null

        What the customer gets at the target, as set up in the dashboard.

      Option 2

      • stamp_cardsarray of StampCard
        5 fields
        • pos_stamp_rule_idinteger | null

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

        • titlestring | null
        • detailsstring | null
        • stampsinteger

          Stamps collected, rounded down.

        • targetinteger

          Stamps needed for a free item.

      • vouchersarray of RewardVoucher

        Value vouchers the customer can use now or later (pending ones included).

        8 fields
        • idinteger
        • One of "points""gift_card""min_spend"

        • titlestring
        • amountnumber

          The discount, in the business currency, rounded to cents.

        • min_spendinteger | null

          The smallest order total the voucher applies to; null when there is none.

        • active_fromstring | null · date-time

          The voucher can be used from this time; a future time means it is pending.

        • valid_untilstring | null · date-time

          null when it does not expire.

        • created_atstring · date-time
      • stamp_vouchersarray of StampVoucher

        Free items earned on a stamp card.

        7 fields
        • idinteger
        • titlestring
        • pos_stamp_rule_idinteger | null

          The POS stamp rule it was earned under; null for the main card or a deleted rule.

        • is_rule_deletedboolean

          true when the rule was deleted after the voucher was issued; the voucher stays valid.

        • applies_tooneOf

          The rule's items as they were when the voucher was issued; null for the main card (any item).

          2 variants

          Exactly one of:

          RuleScope

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

            Category paths; a category includes its subcategories.

          • excluded_categoriesarray of string

          Option 2

          • expires_atstring | null · date-time

            null when it does not expire.

          • created_atstring · date-time
        • time_limited_offeroneOf

          The customer's progress in the time-limited offer running now; null when none runs.

          2 variants

          Exactly one of:

          TimeLimitedOfferProgress

          • idinteger
          • titlestring
          • starts_atstring · date-time
          • ends_atstring · date-time
          • pointsinteger

            Offer points collected, rounded down.

          • targetinteger

            Offer points needed for a voucher.

          Option 2

          • time_limited_vouchersarray of TimeLimitedVoucher

            Vouchers earned in a time-limited offer; listed while valid, also after the offer ended.

            9 fields
            • idinteger
            • time_limited_offer_idinteger
            • One of "percent""fixed"

            • discount_valuenumber
            • max_itemsinteger | null

              How many items the offer discounts in total; null when there is no limit.

            • items_leftinteger | null

              Items still discountable, counted over the whole offer; null when there is no limit.

            • applies_toRuleScope

              The items a voucher applies to. Empty included lists mean any item; excluded lists always win.

              4 fields
              • included_skusarray of string
              • excluded_skusarray of string
              • included_categoriesarray of string

                Category paths; a category includes its subcategories.

              • excluded_categoriesarray of string
            • valid_untilstring · date-time
            • created_atstring · date-time
          • gift_cardoneOf

            null when the customer has no gift card balance.

            2 variants

            Exactly one of:

            GiftCard

            • balancenumber

              Remaining gift card balance, in the business currency, rounded to cents.

            Option 2

          Your response

          Any 2xx status within 5 seconds; the body is ignored. Anything else (another status, a timeout, a redirect) is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. The same event can arrive more than once: skip an id you already processed. See the Webhooks guide.

          Request · Headers
          POST /your/webhook/url HTTP/3
          Content-Type: application/json
          User-Agent: Lynked-Webhooks/1
          X-Lynked-Signature: t=1764244800,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
          X-Lynked-Event: customer.rewards_updated
          X-Lynked-Event-Id: 01936f4e-7b2a-7c3d-9e8f-1a2b3c4d5e6f
          
          Body
          {
            "id": "01936f4e-7b2a-7c3d-9e8f-1a2b3c4d5e6f",
            "type": "customer.rewards_updated",
            "version": "v1",
            "created_at": "2026-11-27T12:00:00+00:00",
            "data": {
              "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
              }
            }
          }
          
          Your response
          HTTP/3 200 OK