Skip to main content
POST
/
deposit_sweep
Create a Deposit Sweep
curl --request POST \
  --url https://api.treasuryprime.com/deposit_sweep \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "account_id": "acct_11hryybpgdc399",
  "network": "network-name",
  "opted_in": true,
  "threshold_balance": "250000.00"
}'
{
  "account_id": "acct_abc123456",
  "bank_id": "bank_example",
  "created_at": "2023-04-27T15:26:58Z",
  "id": "dsa_abc654321",
  "network": "network-name",
  "network_account_id": "abc123456",
  "opted_in": true,
  "sweep_balance": "2500.00",
  "threshold_balance": "125000.00",
  "updated_at": "2023-06-29T13:58:20Z"
}

Authorizations

Authorization
string
header
required

Body

application/json
account_id
string
required
network
string
required
opted_in
boolean
required
threshold_balance
string
required

Response

200 - application/json
account_id
string
bank_id
string
id
string
network
string
network_account_id
string
opted_in
boolean
sweep_balance
string
threshold_balance
string