Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Recipes Bank payouts Pay a US bank account instantly by RTP

Pay a US bank account instantly by RTP

Save an RTP payee and send an instant USD payment from a bank-held USD account.

6 min read

Use this recipe to save an RTP payee and send an instant USD payment from a bank-held USD account.

Who it is for. An on-demand staffing app that pays a shift worker the same minute it approves the shift.

Status. Available from bank-held USD accounts, if the receiving bank takes instant payments. Not supported from wallet-backed accounts.

Money example

1.
The staffing app's bank-held USD account holds 3,000.00 USD.
2.
The app pays 180.00 USD to Luis Ortega by RTP. In this example, the fee on its plan is 0.50 USD.
3.
Gravv debits the account 180.50 USD. Luis's bank credits 180.00 USD within seconds.

Before you start

•
The source must be a bank-held USD account. A wallet-backed account cannot pay by RTP.

Find out what is required

Save the payee with "payment_rail": "rtp". Not every bank can receive instant payments, so check the routing number first:

cURLNodePython
curl --request GET \
--url https://api.gravv.xyz/v1/external-accounts/routing-numbers/021000021/rtp \
--header 'Api-Key: <API_KEY>'
Response
{
"data": {
"routing_number": "021000021",
"rail": "rtp",
"valid": true,
"bank_name": "JPMORGAN CHASE BANK"
},
"error": null
}

If valid is false, save the payee for ach or wire instead. A bank can take some instant payments and still answer false. Gravv runs the same check when you save the payee, and refuses the number there with ERROR_CODE_INVALID_RTP_ROUTING_NUMBER. See Check a US routing number for wire or RTP.

Steps

1. Save the RTP payee

cURLNodePython
curl --request POST \
--url https://api.gravv.xyz/v1/external-accounts \
--header 'Api-Key: <API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 81981a8a-21d2-4920-bdb4-5633cba433cd' \
--data '
{
"customer_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"payee_type": "ach_wire",
"currency": "USD",
"account_name": "Luis Ortega",
"account_number": "7781203345",
"routing_number": "021000021",
"payment_rail": "rtp",
"bank_account_type": "checking",
"account_owner_type": "individual",
"bank_name": "JPMorgan Chase Bank",
"internal_account_id": "c56a4180-65aa-42ec-a945-5fd21dec0538",
"address": {
"address_line1": "1450 Oak Street",
"city": "Chicago",
"state": "IL",
"postal_code": "60610",
"country": "US"
}
}
'

The response is HTTP 202 with status pending and the payee id, here 3d813cbb-47fb-42ba-91df-831e1593ac29. Wait for the external_account.active webhook.

2. Send the payment

cURLNodePython
curl --request POST \
--url https://api.gravv.xyz/v1/transfer \
--header 'Api-Key: <API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: e6ecc4de-197e-45e9-9a97-7140e2a3338e' \
--data '
{
"customer_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"source": {
"source_type": "internal_account",
"id": "c56a4180-65aa-42ec-a945-5fd21dec0538"
},
"destination": {
"destination_type": "external_account",
"id": "3d813cbb-47fb-42ba-91df-831e1593ac29",
"rail": "rtp"
},
"amount": "180.00",
"description": "Shift 88123 pay",
"client_reference": "shift-88123"
}
'
Response
{
"data": {
"amount": "180",
"amount_currency": "USD",
"reference": "9c2e4a6b-8d0f-4b2c-9e4a-6c8e0a2b4d34",
"date_created": "2026-10-13T16:45:10.311Z",
"transfer_status": "pending",
"transaction_id": "4b6d8f0a-2c4e-4d6f-8a0c-4e6a8c0e2f45",
"local_amount": null,
"local_currency": null,
"fee": "0.5",
"fee_currency": "USD",
"requires_approval": false
},
"error": null
}

RTP has no note for the receiving bank. The API accepts payment_rail_reference but does not send it.

3. Follow it to the end

Read GET /v1/transactions/4b6d8f0a-2c4e-4d6f-8a0c-4e6a8c0e2f45 (it shows channel rtp), or wait for transfer.status.completed.

What can go wrong

ResponseWhyFix
The first payout from a new bank-held account stays pending for up to 72 hoursThe bank approves the payee for that paying account before it pays out. Gravv checks again every 5 minutes for the first hour, then every 15 minutesWait. If the bank has not approved it within 72 hours, the transfer fails and Gravv refunds the amount and fee
400 routing number <routing_number> cannot receive instant payments; use ach or wire: invalid input (ERROR_CODE_INVALID_RTP_ROUTING_NUMBER)The receiving bank cannot receive instant paymentsSave the payee for ach or wire instead, with a new key
400 transfers to US/USD are not supported at this timeThe source is wallet-backed. RTP pays only from bank-held USD accountsUse ACH or wire, or pay from a bank-held account
400 transfers from this account to US/USD are not supported at this timeThe payee was registered against another bank-held accountSave the RTP payee with internal_account_id set to the source
400 this payee is registered for ach transfers, not rtp — …You saved the payee for ACHSave an RTP payee. See two rails
Every error in the ACH recipe also applies to RTP

Webhooks you will receive

You receive the same webhooks as for ACH: external_account.created, then external_account.active, then transfer.status.pending, then transfer.status.completed.

Testing in sandbox

In sandbox, every valid routing number passes the RTP check except 123456780 and 011000015, on the lookup and when you save the payee. 021000021 saves, and the payee becomes active in under a minute. 011000015 can receive wires but not instant payments, so use it to test your fallback from RTP to wire. POST /v2/accounts/simulate/deposit accepts "rail": "rtp" to fund an account.

Reference