SET Merchant API · Wallets
Sweep a wallet now
POST/v1/wallets/{id}/sweeps
Sweeps now: by default everything above keep, split by the rule. With allocations and no rule, this is a one-off split payout across the customer's own banks.
Path parameters
idstringrequired- The wallet's id.
Headers
Idempotency-Keystring- Optional. The same key and body run once; a replay answers with
Idempotent-Replayed: true. Kept 24 hours.
Body
amountdecimal string- Default: the balance less
keep. allocations[{ bankAccount, share }]- Overrides the rule's split for this sweep.
Errors
400 allocations_invalid400 bank_account_invalid403 operator_cannot_withdraw404 wallet_unknown401 api_key_required401 api_key_invalid401 api_key_wrong_mode403 scope_missing429 rate_limited