---
title: Import unassigned shareable codes
slug: import-unassigned-shareable-codes
description: The process of importing a batch of unassigned shareable codes into a discount rule in Roster.
docTags: 
createdAt: 2024-12-20T22:27:21.568Z
---

In this guide, we'll walk through the process of importing a batch of unassigned shareable codes into a discount rule in Roster. This feature is particularly useful for brands not using Shopify, allowing for automated shareable code assignment without manual intervention.

***

## Step-by-step instructions

These steps assume you already have already completed the steps in the[Set up shareable codes](docId\:u3oAvTofDPmoZzXVfDei4) guide and that you are not using Shopify as your e-commerce platform

::::WorkflowBlock
:::WorkflowBlockItem
### Prepare your CSV file

1. Create a CSV file with a single column titled **Code** in the header.
2. Add the list of unassigned discount codes under the **Code** header.
3. Save the file in `.csv` format.

Example:

```text
Code
CODE-A1B2C3
CODE-X9Y8Z7
CODE-4K3L5M
```

Or download this sample CSV file:

::File{src="https://api.archbee.com/api/presign/1gdZ9Yjy-k8GW0Lioyrwz-bBkIZlrr4lgWRLlb9wmYt-20241223-210428.csv" label="codes.csv"}
:::

:::WorkflowBlockItem
### Navigate to the discount rule

1. Go to the **Discounts** section in your Roster account.
2. Select the discount rule you want to upload the codes to.
:::

:::WorkflowBlockItem
### Import unassigned codes

1. Click on **More Actions > Import** within the selected discount rule
2. Then select **Import Unassigned Codes** from the dialog.
3. Choose the CSV file containing the codes.
4. Review the preview showing the number of codes to be imported.
5. Click **Import** to complete the process.
:::

:::WorkflowBlockItem
### Verify unassigned codes

1. Return to the discount rule page.
2. The unassigned codes will not be displayed in the list of codes, but the Unassigned Codes summary total should equal the number of unassigned codes that have imported into the discount rule. &#x20;

::Image[]{src="https://api.archbee.com/api/optimize/mmAK_JBzN5YWZNnNvmD7r/zw_tbTNAEG7lAWYdFj8FA_image.png" size="100" isUploading="false" width="2707" height="867" darkWidth="2707" darkHeight="867" showCaption="false" indent="2"}


:::

:::WorkflowBlockItem
### Set up a "low codes" reminder (optional)

1. Click on **More Actions > Set reminder**&#x20;
2. Specify a threshold (e.g., when only five codes remain).
3. Select one or more team members to receive the email reminders.
4. Save the settings to enable email notifications.

The selected team members will receive an email reminder when the number of unassigned codes drops below the threshold.
:::

:::WorkflowBlockItem
### Test the code assignment process

1. Simulate an ambassador logging into their profile.
2. Navigate to the discount card in their ambassador dashboard.
3. Click **Show Code** to have Roster assign an available unassigned code to the ambassador.
4. Verify the assigned code appears and that the remaining count updates in the discount rule.
:::
::::

***

## Need help?

If you have any questions about importing unassigned shareable codes or managing discount rules, contact our customer success team at [cs@getroster.com](mailto\:cs@getroster.com). We're here to help!

