> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/a/adyen.md).

# Adyen

Adyen is a payments platform. OctoXLabs reads payment terminals as devices and the users of your companies as user assets, through the Management API.

## Use cases

* Find Adyen users that have no match in your directory.

```
Adapters = adyen AND NOT Adapters = active-directory
```

* Find devices that Adyen reports but your EDR does not cover.

```
Adapters = adyen AND NOT Adapters = falcon-crowdstrike
```

* Review devices that Adyen has not seen recently.

```
Adapters = adyen AND NOT LastSeen last now-30d/d
```

* Check what one Adyen connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                                                            | Port | Protocol |
| ------------------- | -------------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | management-live.adyen.com (default). Use management-test.adyen.com for a test account. | 443  | HTTPS    |

### Required permissions

| Scope or role                          | Permission                                 | Needed for    |
| -------------------------------------- | ------------------------------------------ | ------------- |
| Management API - Account read          | Read                                       | Companies     |
| Management API - Users read and write  | Read (the adapter only sends GET requests) | Company users |
| Management API - Terminal actions read | Read                                       | Terminals     |

The API credential must be created on your Company account and have these three roles.

## Create credentials in Adyen

{% stepper %}
{% step %}

### Open Customer Area

Log in to your Customer Area and select your **Company** account.
{% endstep %}

{% step %}

### Open API credentials

Go to **Developers** > **API credentials**.
{% endstep %}

{% step %}

### Choose the tab

Select the **Payments** or **Platforms** tab, depending on your integration type.
{% endstep %}

{% step %}

### Open the credential

Select the credential username.
{% endstep %}

{% step %}

### Open the API key tab

Under **Server settings** > **Authentication**, select the **API key** tab.
{% endstep %}

{% step %}

### Generate the key

Select **Generate API key** and copy the key.
{% endstep %}

{% step %}

### Save

Select **Save changes**. The key cannot be copied again after you leave the page.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default                   | Description                                                                             |
| --------- | -------- | ------- | ------------------------- | --------------------------------------------------------------------------------------- |
| Domain    | No       | String  | management-live.adyen.com | Domain of the Adyen Management API. Use `management-test.adyen.com` for a test account. |
| API Key   | Yes      | String  | None                      | API key of the credential. Sent in the `X-API-Key` header.                              |
| Proxy     | No       | String  | None                      | Proxy address. The connector sends requests through `http://<value>`.                   |
| Timeout   | No       | Integer | 30                        | Time in seconds to wait for API responses.                                              |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

{% hint style="info" %}
Available starting from version 6.9.1.
{% endhint %}
