Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Guides Accounts Test accounts in sandbox

Test accounts in sandbox

Simulate a deposit on a sandbox v2 account with POST /v2/accounts/simulate/deposit, and know what sandbox cannot do yet.

3 min read

API version: v2.

POST /v2/accounts/simulate/deposit puts a test deposit on a sandbox account. The deposit runs through the real process, including fees, ledger entries and webhooks.

A money example. You simulate a 250.00 USD wire into Ada's sandbox account. Because her account is wallet-backed, test USDC first reaches the account's wallet, and then Gravv records the bank deposit. You receive transfer.inflow.deposit_settled, and ledger_balance.projected rises first, then ledger_balance.posted.

Before you start

•
A sandbox key (it starts with grvSec_sandbox_). If you use a scoped API key, it needs transfer:initiate.
•
An active sandbox account with bank details.

What sandbox can and cannot do

•
You need a verified sandbox customer. Until their KYC is completed, POST /v2/accounts returns CUSTOMER_KYC_INCOMPLETE. See Verify a customer in sandbox. Capabilities, requirements, the lists and the error paths work for any customer.
•
Sandbox can list different options, limits and excluded countries than live.

With a verified customer, this is what sandbox does today (checked on 16 October 2026):

AccountIn sandbox
NGN, person or businessOpens at once. Simulated deposits land
EUR held in Kenya, businessOpens after the bank's test review, but has no account number yet, so the simulator refuses a deposit
GBP held in Kenya, businessOpens after the bank's test review and takes simulated deposits, but the account shows no balance yet
USD, and the other EUR and GBP optionsCalls the bank's own test system with the full form and documents. Activation is not instant, it can stay pending, and you cannot force a result

Simulate a deposit

Each new Idempotency-Key makes a new deposit. The same key returns the same reference.

Simulate a wire deposit
curl --request POST \
--url https://api.gravv.xyz/v2/accounts/simulate/deposit \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: 53b44e53-fd48-4ab9-9791-d29de1325df4' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "6f1c2a9e-3b1d-4f7a-9c62-0d8e4b7a5c11",
"amount": "250.00",
"rail": "wire"
}
'
Response
{
"data": {
"accepted": true,
"reference": "d3b07384-d9a0-4c8f-9e2b-6f1a2c3d4e5f",
"state": "pending"
},
"error": null
}

accepted does not mean Gravv has credited the deposit. Wait for the deposit webhooks.

Accountrail
USDach, wire, rtp or swift, from the option's rails
EURsepa
GBPfps
NGNLeave rail out. For NGN, send "currency": "NGN" and an amount in naira such as "50000.00"

Errors

ResponseWhyFix
403 Forbidden: insufficient permissions to perform this actionA live keyUse a grvSec_sandbox_ key
403 with required_any transfer:initiateA scoped key without the permissionAdd it
400 invalid request payload: cannot unmarshal number …amount sent as a numberSend "250.00"
400 rail must be one of ach, wire, rtp, swift, sepa, fpsUnknown railUse a listed rail
400 account has no linked virtual account to deposit intoThe account is not active yetWait for activation
400 account has no wallet to deliver a simulated deposit toA wallet-backed account without a walletOpen a new account on another network
400 amount cannot be expressed on this account's receiving railMore than 2 decimalsUse at most 2 decimals
400 the simulated deposit was not recorded; the amount may be below what this account's rail creditsToo smallUse a larger amount
400 deposit simulation is not supported for this account's receiving railNo simulator for this optionTest with another option
404 Resource not foundThe account_id is wrong, is a live id or belongs to another business. The API looks up the account before it checks the amountUse a sandbox account id

For test funds in an account's wallet, see Fund account wallets during testing.

Was this page helpful? Yes No