---
title: Add shareable codes to smart links (Shopify)
slug: add-shareable-codes-to-smart-links-shopify
description: Automatically apply an ambassador's shareable discount code at checkout when customers click their Roster smart link on Shopify.
docTags: 
createdAt: 2024-12-18T22:15:28.846Z
---

This guide explains how to add shareable discount codes to your program’s smart links. When a customer clicks on an ambassador’s smart link, the ambassador's shareable discount code is automatically applied during checkout. This feature simplifies the purchasing process for ambassadors and ensures accurate attribution of referrals.

:::hint{type="info"}
This is a Shopify feature. If your brand uses another cart or website, refer to this guide instead: [Add leakproof codes to smart links (Shopify Headless)](docId\:HgZFC7EmsDgX9L5L7Imyf)&#x20;
:::

***

## Step-by-step instructions

These steps assume a smart link already exists for the program. If that's not the case, simply follow the steps in [Set up smart links](docId\:aMBVb-At8xjE4WY49t9pe) before proceeding.

::::WorkflowBlock
:::WorkflowBlockItem
### Edit an existing smart link

1. Navigate to **settings** for the desired program.
2. Open the **referrals** tab.
3. Locate the existing smart link and click **edit**.
:::

:::WorkflowBlockItem
### Enable shareable codes as the discount

1. Open the **customer discount** section.
2. Select **shareable codes**.
3. Confirm that the program-level shareable discount code is displayed (e.g., Friends and Family 15% Off).
4. Click **save**.
:::

:::WorkflowBlockItem
### Test the shareable code

1. Navigate to your **contacts** and filter by program (e.g., influencers).
2. Select an ambassador’s profile and copy their smart link.
3. Open the smart link in a new tab, add a product to the cart, and proceed to checkout.
4. Verify that the shareable code is automatically applied in the discount field during checkout.
:::

:::WorkflowBlockItem
### Monitor and manage shareable code usage

1. Go to the **Referred Orders** report in Roster.
2. Confirm that the referral is attributed to the ambassador’s link.
3. View the **discount rules** to see:
   - Shareable code usage details (e.g., used or unused).
   - Set usage limits on the discount rule to prevent misuse.
4. Deactivate and assign new shareable codes if necessary.
:::
::::

***

## Next steps

- [Smart link FAQs](docId\:fEjnMn6QyVtiqGGobU-yZ) to find valuable tips and best practices when using Smart links.&#x20;
- [Shareable discount rules](docId\:htkG19I6lD2vQK0Vkqonu) for a deeper explaination.

***

## Need help?

If you have any questions about shareable codes or optimizing your smart links, contact our customer success team at [cs@getroster.com](mailto\:cs@getroster.com). We’re here to assist you!
