Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
API Reference External accounts overview

External accounts overview

Save, verify, correct and look up payees outside Gravv, and find the banks and wallet operators they can be at.

2 min read

Use the External Accounts API to save the payees your customers send money to, check a bank account's holder, correct a payee that failed setup, and list the banks and wallet operators a payee can point at.

How it works

An external account (payee) is a bank account, mobile wallet or other destination outside Gravv. The usual flow has four steps:

1.
Find the institution. For a local bank or mobile wallet payee, call GET /v1/external-accounts/institutions. These payees require an institution_id. For a SWIFT bank, find the institution by swift_code instead.
2.
Check the holder or routing number (optional). Call POST /v1/external-accounts/verify. It covers bank accounts only. Trust the returned name when verification_source is provider. A value of local means only that the format looks right. For a US payee paid by wire or rtp, check the routing number for that rail with GET /v1/external-accounts/routing-numbers/{routing_number}/wire or /rtp.
3.
Look for an existing payee, then save it. Call GET /v1/external-accounts with search, then POST /v1/external-accounts.
4.
Pay it. Once the payee is active, pay it with the Transfers API.

Setup and status

ResponsePayee typesMeaning
HTTP 200bank_account, mobile_moneystatus is active at once
HTTP 202ach_wire, sepa, swift, fpsstatus is pending while setup runs. Wait for external_account.active or external_account.setup_failed, or poll GET /v1/external-accounts/{external_account_id}

A payee that ends in setup_failed still counts as a duplicate, so you can't save it again. Correct it in place with PATCH /v1/external-accounts/{external_account_id} instead. See Update an external account. A duplicate returns HTTP 400 with the existing id in data.payee_id. Some payee errors carry a code. Branch on it when it is present, and otherwise match on the start of the message.

A listed institution or country is not an open route. Gravv decides whether a payee can be paid when you send the transfer. See Payments and supported countries.

Endpoints

EndpointDescription
POST /v1/external-accountsAdd an external account
GET /v1/external-accountsList external accounts, with search
POST /v1/external-accounts/verifyCheck a bank account's format, and its holder's name where the bank supports it
GET /v1/external-accounts/routing-numbers/{routing_number}/wireCheck whether a US routing number can receive wires
GET /v1/external-accounts/routing-numbers/{routing_number}/rtpCheck whether a US routing number can receive instant payments
GET /v1/external-accounts/{external_account_id}Retrieve an external account, its status and any error_message
PATCH /v1/external-accounts/{external_account_id}Correct a payee that failed setup, retry its setup, or add details a route needs
GET /v1/external-accounts/institutionsList banks and wallet operators. min_amount and max_amount are reference values, not limits

Authentication

All requests use https://api.gravv.xyz and authenticate with the Api-Key header. POST /v1/external-accounts requires an Idempotency-Key header. The verify, routing number and PATCH calls do not.

Was this page helpful? Yes No