Sweep updated
Adyen sends this webhook when you successfully update a sweep.
Request Parameters
Contains event details.
The unique identifier of the balance account for which the sweep was configured.
The unique identifier of the balance platform.
Contains information about the sweep resource that triggered the event.
The destination or the source of the funds, depending on the sweep type
.
Either a balanceAccountId
, transferInstrumentId
, or merchantAccount
is required.
The unique identifier of the destination or source balance account.
If you are updating the counterparty from a transfer instrument to a balance account, set
transferInstrumentId
to null.
The merchant account that will be the source of funds.
You can only use this parameter with sweeps of type
pull and if you are processing payments with Adyen.
The unique identifier of the destination or source transfer instrument depending on the sweep type
. To set up automated top-up sweeps to balance accounts in your marketplace or platform, use this parameter in combination with a merchantAccount
and a sweep type
of pull.
Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set balanceAccountId
to null.
The three-character ISO currency code in uppercase. For example, EUR.
The sweep currency must match any of the balances currencies.
The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.
If the message is longer after replacing placeholders, the message will be cut off at 140 characters.
The unique identifier of the sweep.
The reason for disabling the sweep.
Your reference for the sweep configuration.
The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
The schedule when the triggerAmount
is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account.
A cron expression that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, 30 17 * * MON schedules a sweep every Monday at 17:30.
The expression must have five values separated by a single space in the following order:
-
Minute: 0-59
-
Hour: 0-23
-
Day of the month: 1-31
-
Month: 1-12 or JAN-DEC
-
Day of the week: 0-7 (0 and 7 are Sunday) or MON-SUN.
The following non-standard characters are supported: *, L, #, W and /. See crontab guru for more examples.
Required when type
is cron.
The schedule type.
Possible values:
-
cron: push out funds based on a
cronExpression
. -
daily: push out funds daily at 07:00 AM CET.
-
weekly: push out funds every Monday at 07:00 AM CET.
-
monthly: push out funds every first of the month at 07:00 AM CET.
-
balance: execute the sweep instantly if the
triggerAmount
is reached.
The status of the sweep. If not provided, by default, this is set to active.
Possible values:
-
active: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration.
-
inactive: the sweep is disabled and cannot be triggered.
The amount that must be pushed out or pulled in. You can configure either sweepAmount
or targetAmount
, not both.
The amount of the transaction, in minor units.
The amount that must be available in the balance account after the sweep. You can configure either sweepAmount
or targetAmount
, not both.
The amount of the transaction, in minor units.
The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The triggerAmount
is evaluated according to the specified schedule.type
.
-
For
type
pull, if the balance is less than or equal to thetriggerAmount
, funds are pulled in to the balance account. -
For
type
push, if the balance is more than or equal to thetriggerAmount
, funds are pushed out of the balance account.
The amount of the transaction, in minor units.
The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to push.
Possible values:
-
push: push out funds to a destination balance account or transfer instrument.
-
pull: pull in funds from a source merchant account, transfer instrument, or balance account.
The environment from which the webhook originated.
Possible values: test, live.
Type of webhook.
Response parameters
When you receive a webhook, you must respond with an HTTP status code.
HTTP Responses
200 - OK
The request has succeeded.
Show moreShow lessnotificationResponsestringRespond with any 2xx HTTP status code to accept the webhook.