Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Guides Savings Save and withdraw

Save and withdraw

Move money from a savings account into savings and back with POST /v1/transfer, and follow each move to completion.

4 min read

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.

1.
You save 100. The response is pending. About a minute later transfer.status.completed arrives: available 70, saved 110.
2.
Later you withdraw 50. transfer.status.completed arrives: available 120, saved 60 plus any interest.

Before you start

•
An active savings account. See How savings works.
•
For a save, enough available money on the account.
•
A scoped key needs transfer:initiate.

Save

source is the account as internal_account. destination is the same id as savings.

save request
curl --request POST \
--url https://api.gravv.xyz/v1/transfer \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: ef216a7b-6ac8-46f3-8eef-83b36b3c2dcc' \
--header 'Content-Type: application/json' \
--data '
{
"source": {
"source_type": "internal_account",
"id": "d9eae506-77b4-4e8b-8ab3-caaf96054d79"
},
"destination": {
"destination_type": "savings",
"id": "d9eae506-77b4-4e8b-8ab3-caaf96054d79"
},
"amount": "100.00",
"customer_id": "b140f51d-2598-410a-a583-e1cb7a871443",
"client_reference": "ada-save-0001"
}
'
save response
{
"data": {
"amount": "100",
"amount_currency": "USD",
"date_created": "2026-10-27T09:16:07.361842Z",
"fee": "0",
"fee_currency": null,
"local_amount": null,
"local_currency": null,
"reference": "adc7c093-5ada-4193-904f-201eb52204b5",
"requires_approval": false,
"transaction_id": "49652648-66c1-4434-bdba-54bf8462e884",
"transfer_status": "pending"
},
"error": null
}

Withdraw

Swap the sides: source is savings, destination is the same id as internal_account.

withdraw request
curl --request POST \
--url https://api.gravv.xyz/v1/transfer \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: fa4509b2-802c-4e75-b857-d3d3af528b92' \
--header 'Content-Type: application/json' \
--data '
{
"source": {
"source_type": "savings",
"id": "d9eae506-77b4-4e8b-8ab3-caaf96054d79"
},
"destination": {
"destination_type": "internal_account",
"id": "d9eae506-77b4-4e8b-8ab3-caaf96054d79"
},
"amount": "50.00",
"customer_id": "b140f51d-2598-410a-a583-e1cb7a871443",
"client_reference": "ada-withdraw-0001"
}
'

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

•
Use the same savings account id on both sides. customer_id must be the account's customer.
•
The amount has at most 2 decimal places. If you send crypto_asset, it must be USDC.
•
A withdrawal cannot be more than the saved balance.
•
In live, the smallest save is 1 USD. A smaller save is accepted and then fails.
•
No supporting documents, no fee, no limits and no approval step.
•
Only POST /v1/transfer moves savings. Simulated transfers are refused.

Follow a move

1.
You receive 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.
2.
Read GET /v1/savings/{id} with the account id for the new balances.
3.
In the transaction list, each move shows as two rows of 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

ResponseWhyFix
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 typesSend the same id, with internal_account on one side and savings on the other
400 insufficient balanceThe save is more than the money available on the accountSave less, or wait for a deposit
400 The amount is more than the savings balance.The withdrawal is more than the saved balanceRead 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 accountUse the account id with internal_account
400 This account can't be used for savings.The account is not a savings accountOpen a savings account
400 The savings account is not active. or The savings account is not ready for savings yet.The account is still openingWait for applications.accounts.completed
400 The savings account must belong to the customer the transfer is for.customer_id is another customerSend the account's customer
400 Only USDC can be saved.crypto_asset is not USDCLeave it out, or send USDC
400 Savings moves take no supporting documents.You sent supporting_document_idsLeave them out
400 Savings moves are not available on this endpoint.A simulated transferSend a normal POST /v1/transfer
transfer.status.failed on a live save under 1 USDBelow the smallest saveSave at least 1 USD
400 We couldn't read the savings balance right now. Please try again shortly.A short outageRetry 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 inSaveWithdrawal
.13Fails, and nothing movesWaits about 2 minutes with transfer.savings.awaiting_liquidity, then completes
.14CompletesFails, and the money stays in savings
Anything elseCompletesCompletes

Sandbox does not apply the 1 USD minimum. See Test savings end to end.

Reference

Was this page helpful? Yes No