# Create an Access Token in Magento 2.x

In this little step-by-step tutorial we will learn how to allow Personal Discount to generate unique coupons in Magento.

### &#x20;1. Navigate to the Integrations panel

![](https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZdVZovthV0SPlgxS6Y%2F-LZdZ9D-Y9sHu1XDejwf%2F-LZdbvm8nQnC-Yn0x6d0%2Fimage.png?alt=media\&token=a5cdf58f-53d5-44e5-8f48-93f3305435d6)

### 2. Click on Add New Integration

![](https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZdVZovthV0SPlgxS6Y%2F-LZdZ9D-Y9sHu1XDejwf%2F-LZdcBoqUssyWJ5-3WEE%2Fimage.png?alt=media\&token=6f8687ba-1dc1-4da8-bb51-3d547ebb8fff)

### 3. Enter a name for the integration

![Click to enlarge the image](https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZdVZovthV0SPlgxS6Y%2F-LZdzxaOpYoJDgDfNSUO%2F-LZe12TJchyI2MjO_Fvj%2Fimage5.jpg?alt=media\&token=cc0768eb-5e33-4fd8-9b99-063bdb3880e4)

### 4. Open the API section and select Cart Price Rules

This resource will give Personal Discount full control over the coupons of your application.

![Click to enlarge the image](https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZdVZovthV0SPlgxS6Y%2F-LZdzxaOpYoJDgDfNSUO%2F-LZe0FQN5P9K88viA9Qr%2Fimage2.jpg?alt=media\&token=45464af3-8085-4149-92e2-137a1ed4a331)

### 5. Hover over the Save button and click on Save & Activate

![](https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZdVZovthV0SPlgxS6Y%2F-LZdZ9D-Y9sHu1XDejwf%2F-LZddkHOX3Xf13nJWV4u%2Fimage.png?alt=media\&token=12351cf5-3ac2-49f8-826d-9de29dfcfb2e)

### 6. Click on Allow button to confirm access to Cart Price Rules

![](https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZdVZovthV0SPlgxS6Y%2F-LZdzxaOpYoJDgDfNSUO%2F-LZe0M636jLlFMxhTa6i%2Fimage3.jpg?alt=media\&token=528556b9-7f0a-4632-a11b-4027e09e2627)

### 7. Get your token

You will see a screen with 4 fields. The one you need is Access Token. Copy it to clipboard and click on Done.

![Click to enlarge the image](https://3731721370-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZdVZovthV0SPlgxS6Y%2F-LZdzxaOpYoJDgDfNSUO%2F-LZe0QQ-_dT62Tc-7vmp%2Fimage4.jpg?alt=media\&token=7affb64a-9ebc-44b6-aaf1-02f7fe7d860e)
