Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
External accounts Check a routing number for RTP

Check a routing number for RTP

Checks whether a US routing number can receive instant payments through Gravv, before you add an `ach_wire` external account with `payment_rail` `rtp`. A bank can take some instant payments and still answer false. When `valid` is false, adding the account for `rtp` returns 400 with the code `ERROR_CODE_INVALID_RTP_ROUTING_NUMBER`, so add it for `ach` or `wire` instead.

GEThttps://api.gravv.xyz/v1/external-accounts/routing-numbers/{routing_number}/rtpTry it
Api-Key

Checks whether a US routing number can receive instant payments through Gravv, before you add an ach_wire external account with payment_rail rtp. A bank can take some instant payments and still answer false. When valid is false, adding the account for rtp returns 400 with the code ERROR_CODE_INVALID_RTP_ROUTING_NUMBER, so add it for ach or wire instead.

valid: false is a 200, not an error. A 503 means the check could not run, so retry it. This route needs no Idempotency-Key.

Path parameters

NameDescription
routing_number:stringRequired
A US ABA routing number, 9 digits

Response

Returns 200 OK. The answer. valid is false when the routing number cannot receive instant payments.

NameDescription
data:object
Show 4 child attributesobject
error:null

Errors

StatusMeaning
200The answer. valid is false when the routing number cannot receive instant payments.
400The routing number is not 9 digits, or its checksum is wrong. No bank was asked.
503The check could not run. Retry with backoff.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/external-accounts/routing-numbers/021000021/rtp' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200400503OK
{
"data": {
"routing_number": "021000021",
"rail": "rtp",
"valid": true,
"bank_name": "JPMORGAN CHASE BANK"
},
"error": null
}