> ## Documentation Index
> Fetch the complete documentation index at: https://docs.subtotal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rewarding linked accounts

> Set up Okendo to reward points when customers link a retailer account.

## Create a custom earning rule in Okendo

In your Okendo admin, navigate to the Loyalty Program and create a new custom earning rule for linked accounts.

Set the **Action Type** to **Award a fixed amount of points** and choose the number of points you'd like to award each time a customer links an account.

<img src="https://mintcdn.com/typecastleinc/DCqLBIGMD9FcP8hN/images/integrations/okendo/okendo-link-account.png?fit=max&auto=format&n=DCqLBIGMD9FcP8hN&q=85&s=579c6dbce25731ca9632536ab7d812bf" alt="okendo link an account earning rule" className="rounded-lg border border-gray-100" width="982" height="867" data-path="images/integrations/okendo/okendo-link-account.png" />

Save the rule, then copy its `Action ID` — you'll need it in the next step.

<Note>
  Customers can earn from this action one time per retailer. Linking and unlinking the same account repeatedly will not result in additional points.
</Note>

## Add the action in Subtotal

In the Subtotal Dashboard, navigate to your [Okendo integration](https://dashboard.subtotal.com/integrations/okendo) and click `Add action`.

Choose `account.linked` as the event, give the action a name, optionally restrict to specific retailers, and paste the Okendo earning rule's `Action ID` into the **Okendo earning rule ID** field.

<img src="https://mintcdn.com/typecastleinc/DCqLBIGMD9FcP8hN/images/integrations/okendo/okendo-subtotal-link-account.png?fit=max&auto=format&n=DCqLBIGMD9FcP8hN&q=85&s=3671554123f18af6d0e51ae5da150a8e" alt="add account.linked action in subtotal" className="rounded-lg border border-gray-100" width="684" height="546" data-path="images/integrations/okendo/okendo-subtotal-link-account.png" />

Click `Create`. Subtotal will now trigger this earning rule whenever a customer links a retailer account.
