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

Check a routing number for wire

Checks whether a US routing number can receive wires, before you add an `ach_wire` external account with `payment_rail` `wire`. Some banks use one routing number for ACH and another for wires. When `valid` is false, adding the account for `wire` returns 400 with the code `ERROR_CODE_INVALID_WIRE_ROUTING_NUMBER`, so ask for the bank's wire routing number or add the account for `ach`.

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

Checks whether a US routing number can receive wires, before you add an ach_wire external account with payment_rail wire. Some banks use one routing number for ACH and another for wires. When valid is false, adding the account for wire returns 400 with the code ERROR_CODE_INVALID_WIRE_ROUTING_NUMBER, so ask for the bank's wire routing number or add the account for ach.

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 wires.

NameDescription
data:object
Show 4 child attributesobject
error:null

Errors

StatusMeaning
200The answer. valid is false when the routing number cannot receive wires.
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/wire' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200400503OK
{
"data": {
"routing_number": "021000021",
"rail": "wire",
"valid": true,
"bank_name": "JPMORGAN CHASE BANK"
},
"error": null
}