Save and withdraw
Move money from a savings account into savings and back with POST /v1/transfer, and follow each move to completion.
A save and a withdrawal are ordinary transfers. Both use the savings account id on both sides. Only the side types change.
Status. Available in sandbox. Not yet available with a live key.
A money example. Ada's savings account holds 170 available and 10 saved.
pending. About a minute later transfer.status.completed arrives: available 70, saved 110.transfer.status.completed arrives: available 120, saved 60 plus any interest.Before you start
active savings account. See How savings works.transfer:initiate.Save
source is the account as internal_account. destination is the same id as savings.
Withdraw
Swap the sides: source is savings, destination is the same id as internal_account.
The response has the same shape as a save. To pay the money out to a bank, send a second transfer from the account once the withdrawal is completed.
The rules
customer_id must be the account's customer.crypto_asset, it must be USDC.POST /v1/transfer moves savings. Simulated transfers are refused.Follow a move
transfer.status.pending, then transfer.status.completed or transfer.status.failed. workflow_type is savings_deposit for a save and savings_withdrawal for a withdrawal. A completed save carries saved_amount, which can be a few millionths below amount.GET /v1/savings/{id} with the account id for the new balances.savings_deposit or savings_withdrawal, one with direction out and one with direction in.A withdrawal that waits
In live, the savings pool sometimes needs time to free the cash for a withdrawal. You then receive transfer.savings.awaiting_liquidity, with a message you can show the customer: "Your withdrawal is queued. Your money is safe and keeps earning until it is paid out." It is not a failure. While it waits, pending_balance on the savings is negative. transfer.status.completed follows when the money is paid.
A savings wallet with no account
A savings wallet made with POST /v1/wallets and wallet_type savings, with no savings account, uses internal_crypto_wallet instead of internal_account, with the wallet id on both sides. For a wallet that has an account, use the account.
What can go wrong
| Response | Why | Fix |
|---|---|---|
400 Savings moves are between a savings wallet or savings account and its own savings: ... | Different ids on the two sides, or the wrong side types | Send the same id, with internal_account on one side and savings on the other |
400 insufficient balance | The save is more than the money available on the account | Save less, or wait for a deposit |
400 The amount is more than the savings balance. | The withdrawal is more than the saved balance | Read saved_balance and withdraw at most that |
400 This savings wallet belongs to a savings account: save from, and withdraw to, the account instead. | You used the wallet door for a wallet that has an account | Use the account id with internal_account |
400 This account can't be used for savings. | The account is not a savings account | Open a savings account |
400 The savings account is not active. or The savings account is not ready for savings yet. | The account is still opening | Wait for applications.accounts.completed |
400 The savings account must belong to the customer the transfer is for. | customer_id is another customer | Send the account's customer |
400 Only USDC can be saved. | crypto_asset is not USDC | Leave it out, or send USDC |
400 Savings moves take no supporting documents. | You sent supporting_document_ids | Leave them out |
400 Savings moves are not available on this endpoint. | A simulated transfer | Send a normal POST /v1/transfer |
transfer.status.failed on a live save under 1 USD | Below the smallest save | Save at least 1 USD |
400 We couldn't read the savings balance right now. Please try again shortly. | A short outage | Retry with a new Idempotency-Key |
Testing in sandbox
Sandbox settles a save or a withdrawal in about a minute. The cents of the amount choose the outcome:
| Amount ends in | Save | Withdrawal |
|---|---|---|
.13 | Fails, and nothing moves | Waits about 2 minutes with transfer.savings.awaiting_liquidity, then completes |
.14 | Completes | Fails, and the money stays in savings |
| Anything else | Completes | Completes |
Sandbox does not apply the 1 USD minimum. See Test savings end to end.