Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Recipes Wallets and deposits Know what a bank deposit costs

Know what a bank deposit costs

Find out which bank deposits into a customer's account carry a Gravv fee, on which rail, who pays the fee and where to find it.

4 min read

This recipe shows which bank deposits into a customer's account carry a Gravv fee, on which rail, who pays the fee and where to find it. It is for a US payroll platform whose business customers fund their Gravv USD account by wire from their own bank.

Status. Available.

Money example

1.
Your customer Acme Ltd has an active USD account. You show its routing and account numbers.
2.
Acme's bank sends a 2,500.00 USD wire.
3.
Gravv credits the account the full 2,500.00 USD and sends transfer.inflow.completed, or transfer.inflow.deposit_settled if the account converts deposits to USDC.
4.
Gravv bills the wire deposit fee on your plan to your business, from your main account or on your monthly invoice. Gravv does not take it out of Acme's 2,500.00 USD.

Before you start

•
The account is active and has its bank details. To set this up, see Share account details and receive a deposit.
•
You have registered your webhook URL in the Dashboard.

Find out what is required

The fee depends on the rail the money arrives on, and on the kind of account. Your prices per rail are in your pricing plan. The API does not return them.

RailAccount that converts deposits to stablecoinOther bank-held accountNGN account
ACHChargedNot charged todayNot applicable
Wire, RTP, SWIFT, SEPA, FPSCharged, at that rail's priceCharged, at that rail's priceNot applicable
Rail not knownCharged a flat deposit feeNot chargedNot applicable
Local NGN transferNot applicableNot applicableNot charged
•
Gravv bills the fee to your business and does not deduct it from the deposit.
•
Gravv does not refund the fee if the deposit later fails or is reversed.

Steps

1. Credit the customer when the deposit lands

Follow Share account details and receive a deposit. On an account that converts deposits, transfer.inflow.deposit_settled and inflow.onchain.completed describe one deposit, so credit the customer once.

2. Find the fee

Find the deposit row with the transaction_id from the webhook, then the fee row for the same customer, as in See a deposit arrive.

cURLNodePython
curl --request GET \
--url 'https://api.gravv.xyz/v1/transactions?customer_id=121ae3e6-03a6-4966-a13b-ca7fd644de2f&transaction_type=fee_charge' \
--header 'Api-Key: <API_KEY>'

What can go wrong

ResponseWhyFix
No bank details on the accountThe account is not active yetFinish the account application
transfer.inflow.awaiting_approvalYour account holds deposits for approvalApprove or reject it in the Dashboard. The API has no approve route
transfer.inflow.payout_failed or transfer.inflow.compensatedCrediting failed, or was reversedContact support with the transaction_id. Gravv does not refund the deposit fee
No webhook, but the payer says they sent the moneyThe payer used wrong bank details, the bank is still processing, or your server missed a webhookCheck webhook history with event_type=transfer, and check the details the payer used
No fee rowYour plan has no fee for that rail, or the fee is on your monthly invoiceNo action needed

Webhooks you will receive

•
transfer.inflow.awaiting_approval, only on accounts that hold deposits for approval.
•
Then transfer.inflow.completed or transfer.inflow.deposit_settled. On accounts that convert deposits, inflow.onchain.completed comes with it.
•
On a failure, transfer.inflow.payout_failed or transfer.inflow.compensated.

Testing in sandbox

Simulate a deposit on each rail (ach, wire, rtp, swift, sepa, fps) to see that rail's fee on your sandbox billing. Each new Idempotency-Key makes a new deposit, and amount is a string.

cURLNodePython
curl --request POST \
--url https://api.gravv.xyz/v2/accounts/simulate/deposit \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: 0252c0da-374a-4eac-bf9a-2203e6881143' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "416e99b0-e13e-413e-bdaa-ea00a01d616f",
"amount": "2500.00",
"rail": "wire"
}
'

The response {"data":{"accepted":true,"reference":"…","state":"pending"},"error":null} does not mean the account is credited. Wait for the webhook. With a live key, this call returns 403.

Reference