Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET Crypto API Suite

SET Crypto API Suite · Wallets and balances

Sweep a wallet now

POST/v1/wallets/{id}/sweeps

Key scope: write · Success: 201

Sweeps now: by default everything above keep, less the rule's keepShare, split by the rule; an amount you name is sent as asked. With allocations and no rule, this is a one-off split payout across the customer's own banks.

Path parameters

id stringrequired
The wallet's id.

Headers

Idempotency-Key string
Optional. The same key and body run once; a replay answers with Idempotent-Replayed: true. Kept 24 hours.

Body

amount decimal string
Default: the balance less keep.
allocations [{ bankAccount, share }]
Overrides the rule's split for this sweep.

Errors

  • 400 allocations_invalid
  • 400 bank_account_invalid
  • 400 asset_not_permitted
  • 403 operator_cannot_withdraw
  • 404 wallet_unknown
  • 401 api_key_required
  • 401 api_key_invalid
  • 401 api_key_wrong_mode
  • 401 api_key_expired
  • 403 scope_missing
  • 403 platform_api_paused
  • 429 rate_limited
  • 503 api_disabled

All codes: Errors.