{"title":"Example use cases","category":"default","creationDate":1776961627,"content":"<p><span style=\"color: #0ABF53;\"><span style=\"font-size: 20px;\"><strong>Limited availability<\/strong><\/span><\/span><br \/>\nBalance webhooks are in pilot phase. Some of the processes and documentation may change as the feature evolves.<\/p>\n<hr \/>\n<p>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.<\/p>\n<h2>Any current balance drops below a limit<\/h2>\n<h3>Use case<\/h3>\n<p>I want to get notified if the balance drops below USD 5000 in any of the balance accounts in my balance platform.<\/p>\n<h3>Create webhook setting and define conditions<\/h3>\n<p>Using the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Configuration API<\/a>, create a webhook setting for the specific currency and value limit. In your API request, specify the following parameters and values:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: left;\">Required<\/th>\n<th style=\"text-align: left;\">Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">type<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>balance<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-target-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">target.type<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>balancePlatform<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-target-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">target.id<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The <code>id<\/code> of your balance platform, for example, <strong>YOUR_BALANCE_PLATFORM<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-currency\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">currency<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>USD<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-status\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">status<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>active<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-balanceType\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.balanceType<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>balance<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-conditionType\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.conditionType<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>lessThan<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-value\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.value<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>500000<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Get notified when the balance drops below USD 5000'\" :id=\"'balance-change-limit'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/balanceplatform-api-test.adyen.com\\\/balancePlatforms\\\/YourBalancePlatform\\\/webhooks\\\/WBHK00000000000000000000000001\\\/settings \\\\\\n-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X POST \\\\\\n-d '{\\n    \\&quot;type\\&quot;: \\&quot;balance\\&quot;,\\n    \\&quot;target\\&quot; : {\\n        \\&quot;type\\&quot;: \\&quot;balancePlatform\\&quot;,\\n        \\&quot;id\\&quot;: \\&quot;YOUR_BALANCE_PLATFORM\\&quot;\\n    },\\n    \\&quot;currency\\&quot;: \\&quot;USD\\&quot;,\\n    \\&quot;status\\&quot;: \\&quot;active\\&quot;,\\n    \\&quot;conditions\\&quot;: [\\n        {\\n            \\&quot;balanceType\\&quot;: \\&quot;balance\\&quot;,\\n            \\&quot;conditionType\\&quot;: \\&quot;lessThan\\&quot;,\\n            \\&quot;value\\&quot;: 500000\\n        }\\n    ]\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3>Webhook<\/h3>\n<p>The following example shows the webhook event you receive when the balance matches the condition.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Current balance below USD 5000'\" :id=\"'use-case-1'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"data\\\": {\\n        \\\"settingIds\\\": \\\"BWHS00000000000000000000000001\\\",\\n        \\\"creationDate\\\": \\\"2025-01-19T13:37:38+02:00\\\",\\n        \\\"balancePlatform\\\": \\\"YOUR_BALANCE_PLATFORM\\\",\\n        \\\"currency\\\": \\\"USD\\\",\\n        \\\"balances\\\": {\\n            \\\"available\\\": 499900,\\n            \\\"pending\\\": 350000,\\n            \\\"reserved\\\": 120000,\\n            \\\"balance\\\": 470000\\n        }\\n    },\\n    \\\"environment\\\": \\\"test\\\",\\n    \\\"type\\\": \\\"balancePlatform.balanceAccount.balance.updated\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2>Current balance of a specific user drops below a limit<\/h2>\n<h3>Use case<\/h3>\n<p>I want to be notified if the current balance reaches or drops below USD 5000 in any of my user's balance accounts.<\/p>\n<h3>Create webhook setting and define conditions<\/h3>\n<p>Using the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Configuration API<\/a>, create a webhook setting and specify the following parameters and values:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: left;\">Required<\/th>\n<th style=\"text-align: left;\">Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">type<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>balance<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-target-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">target.type<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>accountHolder<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-target-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">target.id<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The <code>accountHolderId<\/code> of your user, for example, <strong>AH00000000000000000000001<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-currency\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">currency<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>USD<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-status\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">status<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>active<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-balanceType\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.balanceType<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>balance<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-conditionType\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.conditionType<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>lessThanOrEqual<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-value\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.value<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>500000<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Get notified about a specific user\\'s balance changes'\" :id=\"'ah-balance-changes'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/balanceplatform-api-test.adyen.com\\\/balancePlatforms\\\/YourBalancePlatform\\\/webhooks\\\/WBHK00000000000000000000000001\\\/settings \\\\\\n-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X POST \\\\\\n-d '{\\n    \\&quot;type\\&quot;: \\&quot;balance\\&quot;,\\n    \\&quot;target\\&quot; : {\\n        \\&quot;type\\&quot;: \\&quot;accountHolder\\&quot;,\\n        \\&quot;id\\&quot;: \\&quot;AH00000000000000000000001\\&quot;\\n    },\\n    \\&quot;currency\\&quot;: \\&quot;USD\\&quot;,\\n    \\&quot;status\\&quot;: \\&quot;active\\&quot;,\\n    \\&quot;conditions\\&quot;: [\\n        {\\n            \\&quot;balanceType\\&quot;: \\&quot;balance\\&quot;,\\n            \\&quot;conditionType\\&quot;: \\&quot;lessThanOrEqual\\&quot;,\\n            \\&quot;value\\&quot;: 500000\\n        }\\n    ]\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3>Webhook<\/h3>\n<p>The following example shows the webhook event you receive when the balance matches the condition.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Current balance reached USD 5000'\" :id=\"'use-case-2'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"data\\\": {\\n        \\\"settingIds\\\": \\\"BWHS00000000000000000000000001\\\",\\n        \\\"creationDate\\\": \\\"2025-01-19T13:37:38+02:00\\\",\\n        \\\"balancePlatform\\\": \\\"YOUR_BALANCE_PLATFORM\\\",\\n        \\\"accountHolderId\\\": \\\"AH00000000000000000000001\\\",\\n        \\\"currency\\\": \\\"USD\\\",\\n        \\\"balances\\\": {\\n            \\\"available\\\": 440000,\\n            \\\"pending\\\": 350000,\\n            \\\"reserved\\\": 120000,\\n            \\\"balance\\\": 500000\\n        }\\n    },\\n    \\\"environment\\\": \\\"test\\\",\\n    \\\"type\\\": \\\"balancePlatform.balanceAccount.balance.updated\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h2>Available balance of a specific balance account drops below a limit<\/h2>\n<h3>Use case<\/h3>\n<p>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.<\/p>\n<h3>Create webhook setting and define conditions<\/h3>\n<p>Using the  <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/overview\" class=\" external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Configuration API<\/a>, create a webhook setting for <strong>each of the balance accounts<\/strong>, specifying the following parameters and values:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">Parameter<\/th>\n<th style=\"text-align: left;\">Required<\/th>\n<th style=\"text-align: left;\">Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">type<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>balance<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-target-type\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">target.type<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>balanceAccount<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-target-id\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">target.id<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The <code>id<\/code> of the specific balance account, for example, <strong>BA00000000000000000000001<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-currency\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">currency<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\">The currency of the balance for which you want to receive notifications. For example, <strong>JPY<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-status\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">status<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>active<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-balanceType\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.balanceType<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>available<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-conditionType\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.conditionType<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>lessThan<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"> <a href=\"https:\/\/docs.adyen.com\/api-explorer\/balanceplatform\/latest\/post\/balancePlatforms\/(balancePlatformId)\/webhooks\/(webhookId)\/settings#request-conditions-value\" class=\"codeLabel  external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">conditions.value<\/a><\/td>\n<td style=\"text-align: left;\"><img title=\"-white_check_mark-\" alt=\"-white_check_mark-\" class=\"smileys\" src=\"\/user\/data\/smileys\/emoji\/white_check_mark.png\" \/><\/td>\n<td style=\"text-align: left;\"><strong>100000<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Get notified about specific balance accounts'\" :id=\"'ba-balance-drop'\" :code-data=\"[{&quot;language&quot;:&quot;bash&quot;,&quot;tabTitle&quot;:&quot;&quot;,&quot;content&quot;:&quot;curl https:\\\/\\\/balanceplatform-api-test.adyen.com\\\/balancePlatforms\\\/YourBalancePlatform\\\/webhooks\\\/WBHK00000000000000000000000001\\\/settings \\\\\\n-H 'x-api-key: ADYEN_BALANCE_PLATFORM_API_KEY' \\\\\\n-H 'content-type: application\\\/json' \\\\\\n-X POST \\\\\\n-d '{\\n    \\&quot;type\\&quot;: \\&quot;balance\\&quot;,\\n    \\&quot;target\\&quot; : {\\n        \\&quot;type\\&quot;: \\&quot;balanceAccount\\&quot;,\\n        \\&quot;id\\&quot;: \\&quot;BA00000000000000000000001\\&quot;\\n    },\\n    \\&quot;currency\\&quot;: \\&quot;JPY\\&quot;,\\n    \\&quot;status\\&quot;: \\&quot;active\\&quot;,\\n    \\&quot;conditions\\&quot;: [\\n        {\\n            \\&quot;balanceType\\&quot;: \\&quot;available\\&quot;,\\n            \\&quot;conditionType\\&quot;: \\&quot;lessThan\\&quot;,\\n            \\&quot;value\\&quot;: 100000\\n        }\\n    ]\\n}'&quot;}]\" :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>\n<h3>Webhook<\/h3>\n<p>The following example shows the webhook event you receive when the balance matches the condition.<\/p>\n<div data-component-wrapper=\"code-sample\">\n    <code-sample :title=\"'Available balance below JPY 1000'\" :id=\"'use-case-3'\" :code-data='[{\"language\":\"json\",\"tabTitle\":\"\",\"content\":\"{\\n    \\\"data\\\": {\\n        \\\"settingIds\\\": \\\"BWHS00000000000000000000000001\\\",\\n        \\\"creationDate\\\": \\\"2025-01-19T13:37:38+02:00\\\",\\n        \\\"balancePlatform\\\": \\\"YOUR_BALANCE_PLATFORM\\\",\\n        \\\"accountHolderId\\\": \\\"AH00000000000000000000001\\\",\\n        \\\"currency\\\": \\\"JPY\\\",\\n        \\\"balances\\\": {\\n            \\\"available\\\": 95000,\\n            \\\"pending\\\": 0,\\n            \\\"reserved\\\": 120000,\\n            \\\"balance\\\": 70000\\n        }\\n    },\\n    \\\"environment\\\": \\\"test\\\",\\n    \\\"type\\\": \\\"balancePlatform.balanceAccount.balance.updated\\\"\\n}\"}]' :enable-copy-link-to-code-block=\"true\" :code-sample-card-size=\"'fullsize'\"><\/code-sample>\n<\/div>","url":"https:\/\/docs.adyen.com\/pt\/marketplaces\/balance-updates\/use-cases","articleFields":{"description":"See examples of how you can configure the balance webhook for specific use cases.","cache_enable":false,"parameters":{"directoryPath":"\/marketplaces","model":"marketplace"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/marketplaces\/balance-updates\/use-cases","title":"Example use cases","content":"Limited availability\nBalance webhooks are in pilot phase. Some of the processes and documentation may change as the feature evolves.\n\nOn 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.\nAny current balance drops below a limit\nUse case\nI want to get notified if the balance drops below USD 5000 in any of the balance accounts in my balance platform.\nCreate webhook setting and define conditions\nUsing the  Configuration API, create a webhook setting for the specific currency and value limit. In your API request, specify the following parameters and values:\n\n\n\nParameter\nRequired\nValue\n\n\n\n\n type\n\nbalance\n\n\n target.type\n\nbalancePlatform\n\n\n target.id\n\nThe id of your balance platform, for example, YOUR_BALANCE_PLATFORM.\n\n\n currency\n\nUSD\n\n\n status\n\nactive\n\n\n conditions.balanceType\n\nbalance\n\n\n conditions.conditionType\n\nlessThan\n\n\n conditions.value\n\n500000\n\n\n\n\n    \n\nWebhook\nThe following example shows the webhook event you receive when the balance matches the condition.\n\n    \n\nCurrent balance of a specific user drops below a limit\nUse case\nI want to be notified if the current balance reaches or drops below USD 5000 in any of my user's balance accounts.\nCreate webhook setting and define conditions\nUsing the  Configuration API, create a webhook setting and specify the following parameters and values:\n\n\n\nParameter\nRequired\nValue\n\n\n\n\n type\n\nbalance\n\n\n target.type\n\naccountHolder\n\n\n target.id\n\nThe accountHolderId of your user, for example, AH00000000000000000000001.\n\n\n currency\n\nUSD\n\n\n status\n\nactive\n\n\n conditions.balanceType\n\nbalance\n\n\n conditions.conditionType\n\nlessThanOrEqual\n\n\n conditions.value\n\n500000\n\n\n\n\n    \n\nWebhook\nThe following example shows the webhook event you receive when the balance matches the condition.\n\n    \n\nAvailable balance of a specific balance account drops below a limit\nUse case\nI 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.\nCreate webhook setting and define conditions\nUsing the  Configuration API, create a webhook setting for each of the balance accounts, specifying the following parameters and values:\n\n\n\nParameter\nRequired\nValue\n\n\n\n\n type\n\nbalance\n\n\n target.type\n\nbalanceAccount\n\n\n target.id\n\nThe id of the specific balance account, for example, BA00000000000000000000001.\n\n\n currency\n\nThe currency of the balance for which you want to receive notifications. For example, JPY.\n\n\n status\n\nactive\n\n\n conditions.balanceType\n\navailable\n\n\n conditions.conditionType\n\nlessThan\n\n\n conditions.value\n\n100000\n\n\n\n\n    \n\nWebhook\nThe following example shows the webhook event you receive when the balance matches the condition.\n\n    \n","type":"page","locale":"pt","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Marketplaces","lvl2":"Track balance updates","lvl3":"Example use cases"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/marketplaces","lvl2":"https:\/\/docs.adyen.com\/pt\/marketplaces\/balance-updates","lvl3":"\/pt\/marketplaces\/balance-updates\/use-cases"},"levels":4,"category":"Marketplaces","category_color":"green","tags":["Example","cases"]}}
