# Re-authorize Releva in Shopify

> Give the Releva app in Shopify the permission to create discounts again, so Releva can create and manage the codes of your Shopify coupons.

To create Shopify coupons, the Releva app needs Shopify’s permission to manage discounts. A shop that installed the app before Shopify coupons existed, or that removed the permission, has to approve it. Until then Releva cannot create, change or remove codes in your store.

## Before you start

* You can approve app permissions in your Shopify admin (store owner or a staff account with app permissions).

* You see one of these messages in **Data Platform › Dynamic Coupons**:

  * **Releva needs permission to create discounts**, after you select **Save** on a new coupon.
  * **Code generation failed** on a coupon’s edit page, with “The store integration must be re-authorized before codes can be generated.”
  * **Releva needs permission to read your catalog**, under **Applies to**.
  * **Error** as a coupon’s **Status**.

## Steps

1. In the message, select **Re-authorize Releva in Shopify**.

   Shopify opens in a new tab. If the message has no button, open the coupon’s edit page: the button is in the **Code generation failed** message there.

2. In Shopify, review the permissions the Releva app asks for and approve them.

3. Go back to the Releva tab.

4. Retry what you were doing.

   * For a new coupon, select **Save** again.
   * For an existing coupon, select **Add Codes** in its row menu to start creating codes now. Otherwise Releva tries again within an hour.

## Check it worked

* A new coupon saves and appears on the **Shopify Coupons** tab.
* An existing coupon’s **Status** changes from **Error** to **Generating**, then **Live**, and **Available/Total** grows.

## Troubleshooting

**The message comes back after you approved.** The approval was made for another store, or not completed. Check that you are logged in to the Shopify store that is connected to this Releva shop, then select the button again.

**Shopify shows an error or a login page.** Log in to the Shopify admin of your store first, then select **Re-authorize Releva in Shopify** again.

**“Could not reach the store integration. Try again later.”** This is not a permission problem: Releva could not reach your store. Wait a few minutes and try again. Contact support if it persists.

## Next steps

* [Create Shopify coupons](https://releva.ai/documentation/guides/dynamic-coupons/create-shopify-coupons/): Finish setting up the coupon that needed the permission.
* [Connect your Shopify store](https://releva.ai/documentation/integrations/shopify/connect-your-shopify-store/): Check the Releva app’s installation and settings in Shopify.