Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Guides Savings How savings works

How savings works

Give a customer a USD savings account that earns a daily yield, and move money in and out of savings with ordinary transfers.

3 min read

A savings account is a USD account with its own US bank details. Money that arrives on it is available. When the customer moves money into savings, it earns interest every night until they take it out.

Status. Available in sandbox. Not yet available with a live key: the savings endpoints return 501 until savings opens in live.

A money example. Ada has a savings account.

1.
Her employer pays 150.00 USD into it. Available is 150, saved is 0.
2.
She saves 100. About a minute later, available is 50 and saved is 100.
3.
Overnight her savings earns 0.01. Saved is 100.01.
4.
She withdraws 50. Available is 100, saved is 50.01.

Think of a jar on a shelf. Available money is in the customer's hand. Saving puts money in the jar, where it grows a little every night. Withdrawing takes it back out into their hand.

The parts

PartWhat it isHow you use it
Savings accountA USD account from POST /v2/accounts with category savingsShare its bank details to receive money
SavingsThe money the customer moved into savings. It earns interestRead it with GET /v1/savings/{id}
SaveA transfer from the account into its savingsPOST /v1/transfer, see Save and withdraw
WithdrawA transfer from savings back to the accountPOST /v1/transfer, see Save and withdraw
RateToday's yearly rate, such as 3.46%GET /v1/savings/rate
StatementOne row per day with what was saved, withdrawn and earnedStatements and interest

Savings is held in USDC, a digital dollar worth 1 USD, in a savings pool on the Avalanche network. The customer sees US dollars, and you never move USDC yourself.

Open a savings account

Open it like any v2 account, with category savings. See Open an account.

open a savings account request
curl --request POST \
--url https://api.gravv.xyz/v2/accounts \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: f0a5fb5f-043a-4ae4-8273-b8086e42c794' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "b140f51d-2598-410a-a583-e1cb7a871443",
"customer_type": "individual",
"currency": "USD",
"category": "savings",
"label": "Ada savings"
}
'

The response is account_id with status pending. Wait for applications.accounts.completed, or read the account until it is active. An active savings account shows savings_wallet_id and savings_wallet_address.

The rules:

•
The customer's KYC must be completed.
•
USD only. Leave out account_type, or send regular.
•
Leave out network, or send avalanche_c_chain. Do not send wallet_id: the account always uses the customer's own savings wallet.
•
One savings account per customer. A second one returns 409 SAVINGS_ACCOUNT_ALREADY_EXISTS.
•
A savings account cannot have a settlement wallet, and cannot be closed yet.
•
Savings must be switched on for your business. GET /v1/accounts/capabilities lists savings in an option's categories when you can open one there.

What it costs and what it earns

•
Saving and withdrawing have no fee, no limits and no approval step.
•
The rate changes once a day. Read it with GET /v1/savings/rate and show it next to your save button. apy 3.46 means 3.46% a year.
•
Interest is added once a night, at about 01:30 UTC, and never more than 0.1% of the saved balance in one night.
•
In live, the smallest save is 1 USD.

Webhooks

EventWhen
transfer.status.pending, then transfer.status.completed or transfer.status.failedFor every save and withdrawal, as for any transfer
transfer.savings.awaiting_liquidityA withdrawal waits for the savings pool to have the cash. The money is safe and the withdrawal completes later
savings.interest.creditedInterest was added to a customer's savings

See Event catalogue for the fields.

Next steps

Was this page helpful? Yes No