> ## Documentation Index
> Fetch the complete documentation index at: https://adyen-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Example Use Cases

> See examples of how you can configure the balance webhook for specific use cases.

**Limited availability**\
Balance webhooks are in pilot phase. Some of the processes and documentation may change as the feature evolves.

***

On this page, you can see examples of how you can configure the balance webhook for specific use cases, complete with example API requests and the triggered webhook event.

## Any current balance drops below a limit

### Use case

I want to get notified if the balance drops below USD 5000 in any of the balance accounts in my balance platform.

### Create webhook setting and define conditions

Using the [Configuration API](https://docs.adyen.com/api-explorer/balanceplatform/latest/overview), create a webhook setting for the specific currency and value limit. In your API request, specify the following parameters and values:

| Parameter | Required | Value |
| - | - | - |
| [type](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-type) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **balance** |
| [target.type](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-target-type) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **balancePlatform** |
| [target.id](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-target-id) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The `id` of your balance platform, for example, **YOUR\_BALANCE\_PLATFORM**. |
| [currency](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-currency) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **USD** |
| [status](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-status) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **active** |
| [conditions.balanceType](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-balanceType) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **balance** |
| [conditions.conditionType](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-conditionType) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **lessThan** |
| [conditions.value](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-value) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **500000** |

**Get notified when the balance drops below USD 5000**

```bash theme={null}
curl https://balanceplatform-api-test.adyen.com/balancePlatforms/YourBalancePlatform/webhooks/WBHK00000000000000000000000001/settings \
-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \
-H 'content-type: application/json' \
-X POST \
-d '{
    "type": "balance",
    "target" : {
        "type": "balancePlatform",
        "id": "YOUR_BALANCE_PLATFORM"
    },
    "currency": "USD",
    "status": "active",
    "conditions": [
        {
            "balanceType": "balance",
            "conditionType": "lessThan",
            "value": 500000
        }
    ]
}'
```

### Webhook

The following example shows the webhook event you receive when the balance matches the condition.

**Current balance below USD 5000**

```json theme={null}
{
    "data": {
        "settingIds": "BWHS00000000000000000000000001",
        "creationDate": "2025-01-19T13:37:38+02:00",
        "balancePlatform": "YOUR_BALANCE_PLATFORM",
        "currency": "USD",
        "balances": {
            "available": 499900,
            "pending": 350000,
            "reserved": 120000,
            "balance": 470000
        }
    },
    "environment": "test",
    "type": "balancePlatform.balanceAccount.balance.updated"
}
```

## Current balance of a specific user drops below a limit

### Use case

I want to be notified if the current balance reaches or drops below USD 5000 in any of my user's balance accounts.

### Create webhook setting and define conditions

Using the [Configuration API](https://docs.adyen.com/api-explorer/balanceplatform/latest/overview), create a webhook setting and specify the following parameters and values:

| Parameter | Required | Value |
| - | - | - |
| [type](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-type) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **balance** |
| [target.type](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-target-type) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **accountHolder** |
| [target.id](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-target-id) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The `accountHolderId` of your user, for example, **AH00000000000000000000001**. |
| [currency](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-currency) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **USD** |
| [status](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-status) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **active** |
| [conditions.balanceType](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-balanceType) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **balance** |
| [conditions.conditionType](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-conditionType) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **lessThanOrEqual** |
| [conditions.value](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-value) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **500000** |

**Get notified about a specific user\\'s balance changes**

```bash theme={null}
curl https://balanceplatform-api-test.adyen.com/balancePlatforms/YourBalancePlatform/webhooks/WBHK00000000000000000000000001/settings \
-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \
-H 'content-type: application/json' \
-X POST \
-d '{
    "type": "balance",
    "target" : {
        "type": "accountHolder",
        "id": "AH00000000000000000000001"
    },
    "currency": "USD",
    "status": "active",
    "conditions": [
        {
            "balanceType": "balance",
            "conditionType": "lessThanOrEqual",
            "value": 500000
        }
    ]
}'
```

### Webhook

The following example shows the webhook event you receive when the balance matches the condition.

**Current balance reached USD 5000**

```json theme={null}
{
    "data": {
        "settingIds": "BWHS00000000000000000000000001",
        "creationDate": "2025-01-19T13:37:38+02:00",
        "balancePlatform": "YOUR_BALANCE_PLATFORM",
        "accountHolderId": "AH00000000000000000000001",
        "currency": "USD",
        "balances": {
            "available": 440000,
            "pending": 350000,
            "reserved": 120000,
            "balance": 500000
        }
    },
    "environment": "test",
    "type": "balancePlatform.balanceAccount.balance.updated"
}
```

## Available balance of a specific balance account drops below a limit

### Use case

I want to get notified when the available balance on six of my users' balance accounts, which hold foreign currencies, drop below 1000 in their respective currencies.

### Create webhook setting and define conditions

Using the [Configuration API](https://docs.adyen.com/api-explorer/balanceplatform/latest/overview), create a webhook setting for **each of the balance accounts**, specifying the following parameters and values:

| Parameter | Required | Value |
| - | - | - |
| [type](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-type) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **balance** |
| [target.type](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-target-type) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **balanceAccount** |
| [target.id](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-target-id) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The `id` of the specific balance account, for example, **BA00000000000000000000001**. |
| [currency](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-currency) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The currency of the balance for which you want to receive notifications. For example, **JPY**. |
| [status](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-status) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **active** |
| [conditions.balanceType](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-balanceType) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **available** |
| [conditions.conditionType](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-conditionType) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **lessThan** |
| [conditions.value](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings#request-conditions-value) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | **100000** |

**Get notified about specific balance accounts**

```bash theme={null}
curl https://balanceplatform-api-test.adyen.com/balancePlatforms/YourBalancePlatform/webhooks/WBHK00000000000000000000000001/settings \
-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \
-H 'content-type: application/json' \
-X POST \
-d '{
    "type": "balance",
    "target" : {
        "type": "balanceAccount",
        "id": "BA00000000000000000000001"
    },
    "currency": "JPY",
    "status": "active",
    "conditions": [
        {
            "balanceType": "available",
            "conditionType": "lessThan",
            "value": 100000
        }
    ]
}'
```

### Webhook

The following example shows the webhook event you receive when the balance matches the condition.

**Available balance below JPY 1000**

```json theme={null}
{
    "data": {
        "settingIds": "BWHS00000000000000000000000001",
        "creationDate": "2025-01-19T13:37:38+02:00",
        "balancePlatform": "YOUR_BALANCE_PLATFORM",
        "accountHolderId": "AH00000000000000000000001",
        "currency": "JPY",
        "balances": {
            "available": 95000,
            "pending": 0,
            "reserved": 120000,
            "balance": 70000
        }
    },
    "environment": "test",
    "type": "balancePlatform.balanceAccount.balance.updated"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.