# Generating PayPal REST credentials

{% hint style="danger" %}
PayPal has recently made some changes and do not allow you to get REST credentials for personal accounts anymore. One option is to upgrade to a business account, create credentials and call PayPal to downgrade. Any credentials you create, will continue to work.
{% endhint %}

{% hint style="danger" %}
When generating REST credentials, Transaction Search permission is not granted by default, once you grant it, it may take several hours for that change to take effect. When testing the settings, if you get **PERMISSION\_DENIED** error, make sure you have the Transaction Search permission checked and if you do, simply wait for the PayPal cache to recognize this change and try again in a few hours.
{% endhint %}

To obtain REST credentials follow these steps:

* Login to [PayPal Developer Dashboard](https://developer.paypal.com/developer/applications)
* Select the correct enviornment: Live or Sandbox
*

```
<figure><img src="https://1028607433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9BkTOk434ezw65fP9EYl%2Fuploads%2FIdQmx8Mybeh6uRkA1gIG%2Fimage.png?alt=media&#x26;token=50c43808-57a4-4765-894a-93fe882df4ba" alt=""><figcaption></figcaption></figure>
```

* Navigate to Apps & Credentials on the left nav bar and click Create App
*

```
<figure><img src="https://1028607433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9BkTOk434ezw65fP9EYl%2Fuploads%2FrJ0qi6AODs1PMLFQ1RoY%2Fimage.png?alt=media&#x26;token=51c436ce-4597-4fd3-85b9-9fdf583cfa2d" alt=""><figcaption></figcaption></figure>
```

* Under REST API apps, click “Create App” button
* Give your app a name&#x20;
* On the next screen, your credentials will show. Copy the Client ID into the Client ID text box in Streams Manager and click on Show link to reveal the Secret. Copy the secret into the Client Secret text box in Streams Manager. **Make sure** no leading or trailing spaces are introduced while pasting
*

```
<figure><img src="https://1028607433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9BkTOk434ezw65fP9EYl%2Fuploads%2FB9MGyeaENDrft3WiO4XU%2Fimage.png?alt=media&#x26;token=01bf1395-fc77-4966-8f85-bc7c73415150" alt=""><figcaption></figcaption></figure>
```

* Scroll down to the bottom of the page and ensure that correct permissions are selected. **Transaction Search needs to be checked!**
*

```
<figure><img src="https://1028607433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9BkTOk434ezw65fP9EYl%2Fuploads%2FSkcu9BZDAlHfM11hZbWe%2Fimage.png?alt=media&#x26;token=1f3225d9-0f65-48a5-a028-9d23f44472ae" alt=""><figcaption></figcaption></figure>
```

*
* Click Save Changes to save changes in PayPal
* Click Test button to test the settings in Streams Manager

**Given that Transaction search permission is not granted by default, once you grant it, it may take several hours for that change to take effect.** When testing the settings, if you get **PERMISSION\_DENIED** error, make sure you have the Transaction Search permission checked and if you do, simply wait for the PayPal cache to recognize this change and try again in a few hours.
