---
title: Re-import Shopify discount codes
slug: re-import-shopify-discount-codes
description: Re-importing Shopify discount codes into Roster is a crucial feature for resolving situations where discount codes or entire discount rules have been.
docTags: 
createdAt: 2024-12-11T23:20:51.136Z
---

Re-importing Shopify discount codes into Roster is a crucial feature for resolving situations where discount codes or entire discount rules have been mistakenly deleted or deactivated in Shopify. With this process, brands can ensure their ambassadors’ discount codes are restored and fully functional, maintaining a seamless experience for both ambassadors and customers.

***

## Step-by-step instructions

::::WorkflowBlock
:::WorkflowBlockItem
### Export the discount codes from Roster

1. Navigate to `More` in the left-hand navigation menu.
2. Click on `Discounts` and select the relevant discount rule (e.g., `Friends and Family Discount`).
3. Click `Export` to download a CSV file containing the discount codes.
4. Open the exported CSV file.
5. Rename the `ambassador email` column to `email` to ensure compatibility with the import process.
:::

:::WorkflowBlockItem
### Recreate the discount rule in Shopify (if needed)

1. If the entire top-level discount code (aka the discount rule in Roster) has been deleted in Shopify:
   - Click `Edit Discount Rule` within Roster.
   - Click `Save`&#x20;
   - This will force Roster to re-create a top-level discount code in Shopify into which the codes can be recreated.&#x20;
2. Verify the discount rule by clicking `View in Shopify` from Roster.
   - Ensure the rule appears correctly in Shopify with all associated codes.
:::

:::WorkflowBlockItem
### Re-import the discount codes into Roster

1. Return to the `Discounts` page and select the same discount rule.
2. Click `Import` and choose `Import assigned codes` from the options.
3. Click `Browse` to upload the updated CSV file.
4. Review the import summary, which will display the total number of codes being imported.
5. Click `Import` to reassign the discount codes to their respective ambassadors.
:::

:::WorkflowBlockItem
### Verify synchronization and functionality

1. Navigate back to the `Discounts` page in Roster and click `View all codes` under the relevant rule.
2. Confirm that the codes are active and assigned to the correct ambassadors.
3. In Shopify, refresh the discount code to ensure all codes are listed and functional.
4. Optionally, test a discount code in your store to confirm it applies correctly at checkout.
:::
::::

***

## Need help?

If you have any questions or need additional guidance, contact us at [support@getroster.com](mailto\:support@getroster.com).
