# How to Generate a Price Rule Id

First, you will need to visit your Shopify Admin dashboard and click on "Discount"

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FiK1BpTFmPufpsYO87ZL2%2FScreen%20Shot%202022-05-06%20at%203.54.59%20PM.png?alt=media\&token=ab9b73df-a53c-4c45-8b2c-5c5e0699b3da)

Next, create a new `Discount Code`. This will be the "template" in which items and such are eligible for your holder discounts. Once done, click "Save".

{% hint style="info" %}
Mintplex will **always** generate codes that are **one-time use per customer** and expire within **15 minutes** of creation.
{% endhint %}

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2F0SU82WFp7xXjHjaB4LSx%2FScreen%20Shot%202022-05-06%20at%203.58.54%20PM.png?alt=media\&token=142aefa5-f4e9-4138-a809-f5ae8bb13850)

Copy the number at the end of the URL and paste this into Mintplex

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FrxsTGD49op8Zy4sUEfTr%2FScreen%20Shot%202022-05-06%20at%203.59.28%20PM.png?alt=media\&token=604b302e-a5bc-48e4-843d-8f00e20388a1)

### Validate that your Shopify Settings are correct!

{% hint style="warning" %}
This step is absolutely required to ensure that the plugin is able to issue discounts to holders!
{% endhint %}

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FnHMPGMqqyDLoK7whiNGF%2FScreen%20Shot%202022-05-06%20at%204.01.22%20PM.png?alt=media\&token=21fdcaaa-9b2f-463d-8f26-45d36e934634)

{% hint style="info" %}
This discount code template can be disabled or removed once validation is passed! Any changes to the template discount will require you to re-click "Validate" in order for the changes to sync.
{% endhint %}
