# How to create a Shopify App Key

{% hint style="warning" %}
You must have admin access to your Shopify store to do this setup.
{% endhint %}

First, go to your store admin interface and click on Apps on the sidebar.

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FLb2nEaoyVFFYgTkkKMhD%2FScreen%20Shot%202022-05-06%20at%203.21.44%20PM.png?alt=media\&token=9c53c85a-b59e-43f0-9d0a-2c02e5257dc0)

Next, Click on "Develop Apps"

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FRzhhkGfb6Y9xS5fVuSqZ%2FScreen%20Shot%202022-05-06%20at%203.43.37%20PM.png?alt=media\&token=8b6b77d7-a063-4fe6-ac3a-9cb3ebdea1c4)

Now start a new App with "Create an App"

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2Fmj3xBEjnL73heaTOpp3j%2FScreen%20Shot%202022-05-06%20at%203.44.36%20PM.png?alt=media\&token=bb51c86d-55e4-4c5a-b1e9-e4d412cc85f6)

Name the app anything - this is not critical to the function of this plugin, but be sure its at least identifiable in what its function is. Click "Create App".

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FGyhACXsws9JYVNj03ZlP%2FScreen%20Shot%202022-05-06%20at%203.45.20%20PM.png?alt=media\&token=83de6a65-6825-46c0-9ef6-db4f1c808706)

Now, you want to select "Configure Admin API Scope"

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FlWN3m9CIPlY2BxYPAlcd%2FScreen%20Shot%202022-05-06%20at%203.47.10%20PM.png?alt=media\&token=101131ae-a12f-4a48-9c72-1bc7755e2105)

Next you want to filter the selection by using the phrase "discounts" and then enabling `read` and `write` permissions for both `discounts` and `price_rules` and click "Save".

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FEmOeGQiLVEVkJYBkTzSD%2FScreen%20Shot%202022-05-06%20at%203.48.02%20PM.png?alt=media\&token=c804e51e-bc1b-40c2-980c-fc037a0184ff)

Now click on "Api Credentials" and select to "Install App"

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FnN4XjssO6ri0wDyiLt0V%2FScreen%20Shot%202022-05-06%20at%203.49.27%20PM.png?alt=media\&token=1989ec04-dd3b-4111-a6b3-9e4782cc2861)

Finally, you will see a modal with an input to "Reveal token once". Select this and take this string and paste it into the proper field on Mintplex.

{% hint style="info" %}
Your Shopify API key is AES-256 encrypted on Mintplex and is not publiclly readable or stored in a readable format for your security. You cannot retrieve this value from Mintplex should you lose it.
{% endhint %}

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2FAbCZhhlXtFaGpdl1GenP%2FScreen%20Shot%202022-05-06%20at%203.50.24%20PM.png?alt=media\&token=62864db9-f072-478c-b016-9520dc9441db)

![](https://28907275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYpTOTvxCBAB2lWnWYhw%2Fuploads%2F77j4o5oRihpAXKkK7fLJ%2FScreen%20Shot%202022-05-06%20at%203.52.49%20PM.png?alt=media\&token=45c7194c-1f35-4e3e-82d7-2c443d09a57c)

You're done! Removing and un-installing the app from Shopify will break the functionality of this plugin so please only do so once you are totally finished with the discount plugin.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mintplex-labs-inc.gitbook.io/rampp.xyz-documentation/mintplex-apps-faq/shopify-token-discount-plugin/advanced-setup-vs-basic-setup/advanced-setup-faq/how-to-create-a-shopify-app-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
