Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Sandbox Simulate a deposit

Simulate a deposit

Sandbox only. A live key gets a 403. Sends a test bank deposit to an account through the normal deposit flow, with fees, ledger entries and webhooks. The account must be `active` with bank details.

POSThttps://api.gravv.xyz/v2/accounts/simulate/depositTry it
Api-Key

Sandbox only. A live key gets a 403. Sends a test bank deposit to an account through the normal deposit flow, with fees, ledger entries and webhooks. The account must be active with bank details.

A 200 means Gravv accepted the deposit, not that it settled. Wait for the transfer.inflow.completed or transfer.inflow.deposit_settled webhook. Each new Idempotency-Key makes a new deposit.

Headers

NameDescription
Idempotency-Key:stringRequired
Required for POST requests. The key is 1 to 255 printable ASCII characters. A retry with the same key within 24 hours returns the first response, so reuse the key when you retry the same request.

Body parameters

NameDescription
account_id:stringRequired
An active account of yours with bank details
amount:stringRequired
Positive amount in major units, as a string. It must fit the rail's smallest unit.
currency:string
Defaults to the account currency
rail:string

Rail the deposit arrives on. Defaults to the bank's usual rail.

Possible values: ach, wire, rtp, swift, sepa, fps

Response

Returns 200 OK. Deposit accepted

NameDescription
data:object
Show 3 child attributesobject
error:null

Errors

StatusMeaning
200Deposit accepted
400Invalid amount or rail, or the account cannot take a test deposit
403Not a sandbox key
404Not found, or not in your business
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v2/accounts/simulate/deposit' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: open-usd-account-jane-1' \
--header 'Content-Type: application/json' \
--data '{
"account_id": "6f1c2a9e-3b1d-4f7a-9c62-0d8e4b7a5c11",
"amount": "250.00",
"rail": "wire"
}'
Responseapplication/json
200400403404OK
{
"data": {
"accepted": true,
"reference": "d3b07384-d9a0-4c8f-9e2b-6f1a2c3d4e5f",
"state": "pending"
},
"error": null
}