Receive deposits
Know when money lands on a v2 account: the deposit webhooks for fiat-only and wallet-backed accounts, and how to credit once.
API version: v2.
When a payer sends money to an active account's bank details, Gravv books the deposit and sends webhooks of category transfer. Which webhooks you get depends on whether the account is fiat-only or wallet-backed.
A money example. Ada's client pays 1,200.00 USD by ACH into her wallet-backed account.
inflow.onchain.completed for the wallet.transfer.inflow.deposit_settled. Gravv bills any deposit fee on your plan for that rail to your business separately.GET /v2/accounts/{id} shows the new balance.Webhooks by account
| Account | Events |
|---|---|
| Fiat-only (USD at a US bank, EUR or GBP with one IBAN, NGN, Kenya-held) | transfer.inflow.completed |
| Wallet-backed | transfer.inflow.deposit_settled (status settled, tokenized true), and inflow.onchain.completed from the wallet side |
| Held for a decision on the Dashboard | transfer.inflow.awaiting_approval first |
| The credit failed or was reversed | transfer.inflow.payout_failed or transfer.inflow.compensated |
event_group_id is the deposit's transaction_id. A wallet-backed deposit also carries tx_hash, the on-chain hash of the USDC that settled it. It is the same value as tx_hash on the on-chain event for that money, and settlement_event_group_id is the event_group_id of that event. Match the two events on either field and credit the customer once.
amount is a decimal string in the account's currency. Gravv does not take its deposit fee out of it.
Rules
event_id. Retries repeat events.tx_hash. Credit your customer once per tx_hash.blockchain_network. Gravv does not credit another token, or a token on another network, sent to wallet_address. If this happens, contact support.fee_charge row. See See a deposit arrive. If the amount is lower than what the payer sent, the difference comes from the sending side, such as a bank's charges on the way.To produce these webhooks without a real transfer, see Test accounts in sandbox.