# Change a Shopify coupon

> Change the discount, combinations or active dates of a Shopify coupon in Data Platform › Dynamic Coupons, and see the history of its earlier settings.

You can change everything you set when you created a Shopify coupon. The merge tag stays the same as long as you keep the name, so campaigns and workflows that use the coupon get codes with the new discount from then on. Codes already sent keep the discount they were created with.

## Before you start

* You have a Shopify coupon. See [Create Shopify coupons](https://releva.ai/documentation/guides/dynamic-coupons/create-shopify-coupons/).
* You know that changing the discount replaces the unsent codes: Releva removes them from your Shopify store and creates new ones with the new settings.
* Your plan includes updating coupons. If **Save** shows a lock icon, ask your account owner to unlock it.

## Steps

1. Go to **Data Platform › Dynamic Coupons** and open the **Shopify Coupons** tab.

2. Select the name of the coupon.

   The edit page shows a card with the name, the current discount and **Available: N / Total: N**, then the same form as when you created the coupon.

3. Leave **Name** as it is.

   The name is the merge tag. Renaming the coupon makes every message that uses `{{dynamicCoupons.<old name>}}` stop getting codes.

4. Change the settings under **Coupon details**, **Discount**, **Combinations** and **Active dates**.

   An expiration date under **On a specific date** must be in the future.

5. Select **Save**.

   You return to **Shopify Coupons**.

## Check it worked

* The coupon’s row shows the new discount summary under its name. **Status** reads **Generating** while the new codes are created, then **Live**.
* Open the row’s menu and select **View History**. The table lists each version of the settings under **Coupon Definition**, with its **Start Date**, **End Date** and **Codes Sent**. The current version shows **Active** instead of an end date.
* If you changed only the name, the history has no new row and the codes are not replaced.

## Troubleshooting

**Available dropped to a few codes after Save.** Releva removed the unsent codes with the old discount and is creating new ones in batches. Wait a minute and reload the page.

**“The expiration date must be in the future.”** The date under **Expiration** has passed. Pick a later date, or choose **After 1 year** or **After a certain number of days/hours**.

**Status shows Error with “The coupon’s expiration date has passed”.** Releva stopped creating codes because the coupon expired. Change **Expiration** and save to start again.

**Customers with an older code get the old discount.** That is expected: a code that was sent keeps the settings it was created with. Only codes sent after the change use the new discount.

## Next steps

* [Add codes to a Shopify coupon](https://releva.ai/documentation/guides/dynamic-coupons/add-codes-to-a-shopify-coupon/): Fill the pool again quickly after a change, before a large send.
* [Delete a Shopify coupon](https://releva.ai/documentation/guides/dynamic-coupons/delete-a-shopify-coupon/): Remove the coupon instead when the offer ends for good.
* [How dynamic coupons work](https://releva.ai/documentation/learn/dynamic-coupons/how-dynamic-coupons-work/): Learn how Shopify coupons differ from uploaded lists.