> ## 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.

# Manage Your Balance Webhook Settings

> Learn how you can update or delete your balance webhook settings.

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

***

You can view, update, and delete your balance webhook settings by using the [Configuration API](https://docs.adyen.com/api-explorer/balanceplatform/latest/overview).

## View all balance webhook settings

To get the list of settings and conditions for triggering the webhook, make a GET [/balancePlatforms/\{id}/webhooks/\{id}/settings](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings) request, specifying the ID of your balance platform and the ID of your balance webhook as path parameters.

**Get all settings**

```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 GET \
-d
```

**Response**

```json theme={null}
[
    {
        "id": "BWHS00000000000000000000000001",
        "type": "balance",
        "target": {
            "type": "balancePlatform",
            "id": "YOUR_BALANCE_PLATFORM"
        },
        "currency": "USD",
        "status": "active",
        "conditions": [
            {
                "balanceType": "available",
                "conditionType": "lessThan",
                "value": 500000
            }
        ]
    },
    {
        "id": "BWHS00000000000000000000000002",
        "type": "balance",
        "target": {
            "type": "balanceAccount",
            "id": "BA00000000000000000LIABLE"
        },
        "currency": "USD",
        "status": "active",
        "conditions": [
            {
                "balanceType": "available",
                "conditionType": "greaterThan",
                "value": 1000000
            }
        ]
    }
]
```

## View the conditions in a balance webhook setting

To get details of a balance webhook setting with the conditions for triggering the webhook, make a GET [/balancePlatforms/\{id}/webhooks/\{id}/settings/\{id}](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)) request, specifying the following IDs as path parameters:

* balance platform ID
* balance webhook ID
* balance webhook setting ID

**Get setting details**

```bash theme={null}
curl https://balanceplatform-api-test.adyen.com/balancePlatforms/YourBalancePlatform/webhooks/WBHK00000000000000000000000001/settings/BWHS00000000000000000000000001 \
-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \
-H 'content-type: application/json' \
-X GET \
-d
```

**Response**

```json theme={null}
{
    "id": "BWHS00000000000000000000000001",
    "type": "balance",
    "target": {
        "type": "balancePlatform",
        "id": "YOUR_BALANCE_PLATFORM"
    },
    "currency": "USD",
    "status": "active",
    "conditions": [
        {
            "balanceType": "available",
            "conditionType": "lessThan",
            "value": 500000
        }
    ]
}
```

## Update a balance webhook setting

To update the conditions for triggering balance webhooks, make a PATCH [/balancePlatforms/\{id}/webhooks/\{id}/settings/\{id}](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)) request, specifying the following IDs as path parameters:

* balance platform ID
* balance webhook ID
* balance webhook setting ID

In the body of the request, include the following parameters:

| Parameter | Required | Description |
| - | - | - |
| [type](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-type) | ![-white\_check\_mark-](https://docs.adyen.com/user/data/smileys/emoji/white_check_mark.png) | The type of the webhook you want to configure. Set this to **balance**. |
| [target.type](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-target-type) | | The resource for which you want to receive webhooks. Possible values: **balancePlatform**: receive webhooks for balance changes in your entire balance platform. **accountHolder**: receive webhooks for balance changes of a specific user. **balanceAccount**: receive webhooks for balance changes in a specific balance account. |
| [target.id](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-target-id) | | The unique identifier of the `target.type`. This can be the ID of your balance platform, your account holder, or your account holder's balance account. |
| [currency](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-currency) | | The currency of the balance for which you want to receive webhooks. |
| [status](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-status) | | Specifies the status of the webhook setting. Possible values: **active**: You receive a balance webhook if any of the conditions in this setting are met. **inactive**: You do not receive a balance webhook even if the conditions in this settings are met. |
| [conditions](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-conditions) | | The array of conditions a balance change must meet for Adyen to send the webhook. |
| [conditions.balanceType](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-conditions-balanceType) | | The type of balance for which you want to receive webhooks. Possible values: **available**: the balance available for use. **balance**: the sum of transactions that have already been settled. **pending**: the sum of transactions that will be settled in the future. **reserved**: the balance currently held in reserve. |
| [conditions.conditionType](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-conditions-conditionType) | | Possible values: **greaterThan**, **greaterThanOrEqual**, **lessThan**, **lessThanOrEqual**. |
| [conditions.value](https://docs.adyen.com/api-explorer/balanceplatform/latest/patch/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)#request-conditions-value) | | The value limit you set in the specified `balanceType` and `currency`. |

### Examples

The following examples provide an overview of the most common reasons to update a balance webhook setting.

\*\*

#### Add a new set of conditions

To add a new set of conditions to a balance webhook setting, send both the existing and the new condition set in the `conditions` array.

**Add new condition set**

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

\*\*

#### Remove a set of conditions

To remove a set of conditions from a balance webhook setting, exclude them from `conditions` array when you send the update request.

You must send the conditions you want to keep in the update request.

**Remove condition set**

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

\*\*

#### Deactivate a setting

To temporarily stop receiving webhooks for the specified conditions, set the `status` of the webhook setting to **inactive**.

**Deactivate a setting**

```bash theme={null}
curl https://balanceplatform-api-test.adyen.com/balancePlatforms/YourBalancePlatform/webhooks/WBHK00000000000000000000000001/settings/BWHS00000000000000000000000001 \
-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \
-H 'content-type: application/json' \
-X PATCH \
-d '{
    "type": "balance",
    "status": "inactive"
}'
```

\*\*

#### Remove all conditions

If you remove the only existing condition set from the webhook setting, you will receive updates for *all* balance changes in the specified balance account(s).

## Delete a balance webhook setting

If you want to permanently stop receiving webhooks for the specified conditions, send a DELETE [/balancePlatforms/\{id}/webhooks/\{id}/settings/\{id}](https://docs.adyen.com/api-explorer/balanceplatform/latest/delete/balancePlatforms/\(balancePlatformId\)/webhooks/\(webhookId\)/settings/\(settingId\)) request, specifying the following IDs as path parameters:

* balance platform ID
* balance webhook ID
* balance webhook setting ID

**Delete setting**

```bash theme={null}
curl https://balanceplatform-api-test.adyen.com/balancePlatforms/YourBalancePlatform/webhooks/WBHK00000000000000000000000001/settings/BWHS00000000000000000000000001 \
-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \
-H 'content-type: application/json' \
-X DELETE \
-d
```

## See also

[Configure balance webhook settings](https://adyen-preview.mintlify.site/marketplaces/balance-updates/configure-balance-webhook.md)

[Learn how you can configure and receive automatic notifications about the changes to balances in your balance platform.](https://adyen-preview.mintlify.site/marketplaces/balance-updates/configure-balance-webhook.md)

[Use cases](https://adyen-preview.mintlify.site/marketplaces/balance-updates/use-cases.md)

[See examples of how you can configure the balance webhook for specific use cases.](https://adyen-preview.mintlify.site/marketplaces/balance-updates/use-cases.md)


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