Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
External accounts Add an external account

Add an external account

Adds a bank account or mobile wallet that a customer pays out to. Use `GET /v1/external-accounts/institutions` for `institution_id`, and `POST /v1/external-accounts/verify` to check the holder's name first.

POSThttps://api.gravv.xyz/v1/external-accountsTry it
Api-Key

Adds a bank account or mobile wallet that a customer pays out to. Use GET /v1/external-accounts/institutions for institution_id, and POST /v1/external-accounts/verify to check the holder's name first.

bank_account and mobile_money return 200 with status active. swift, sepa, ach_wire and fps return 202 with status pending while setup runs. Get the account until it is active or setup_failed, or wait for the external_account.active or external_account.setup_failed webhook.

A duplicate (same customer, holder name, and account and bank) is a 400 with code ERROR_CODE_DUPLICATE_PAYEE and the existing payee_id. Deleted and failed accounts count as duplicates.

Headers

NameDescription
Idempotency-Key:stringRequired
1 to 255 printable ASCII characters. A retry with the same key within 24 hours returns the first response, including a 400. After you correct a request, send a new key.

Body parameters

Pick the tab for the kind of payee, and for a local bank account, the tab for its currency. Each tab lists the fields that kind uses and marks the ones Gravv requires when you save the payee. Unknown fields are ignored. Only the first problem found is reported.

African bank account (NGN, GHS, KES, XOF, XAF)Moroccan bank account (MAD)Mexican bank account (MXN)Brazilian account (BRL)Colombian bank account (COP)Indian bank account (INR)Hong Kong bank account (HKD)Bank account in another currencyMobile money walletUS bank account (ACH, wire, RTP)SWIFT (USD)SEPA (EUR)Faster Payments (GBP)

A bank account in Nigeria, Ghana, Kenya, the WAEMU zone (XOF) or the CEMAC zone (XAF). The response is 200 with status active. Send account_number and the bank's institution_id. You do not need a routing number.

NameDescription
payee_type:string

Leave it out to detect the type from the fields you send.

Possible values: bank_account

customer_id:stringRequired
The customer who owns this external account
currency:stringRequired

Three-letter ISO 4217 code of the currency paid out

Possible values: NGN, GHS, KES, XOF, XAF

account_name:stringRequired
Account holder's name. Unaccented letters, spaces and ' - . , & / ( ) only, starting with a letter, with no digits. It comes back in upper case, and may be replaced by the name the bank holds.
account_number:string
Letters and digits, with no spaces. Each country has its own rule: 10 digits in Nigeria (NUBAN), 10 to 16 digits in Ghana, 8 to 20 characters in Kenya, 24 characters in the WAEMU zone (the RIB) and 23 digits in the CEMAC zone. Needed to pay this payee.
institution_id:string
An id from GET /v1/external-accounts/institutions. Gravv saves a payee without one, but cannot pay it.
institution_country_iso_code:string
Bank country as an alpha-2 code. It picks the account number rule. Defaults to the institution's country.
account_owner_type:string

individual for a person, business for a company

Possible values: individual, business

address:object
The account holder's address. Required for swift, sepa, ach_wire and fps, and for some banks and payout corridors.
Show 7 child attributesobject
internal_account_id:string
Your account that pays this external account

Response

Returns 200 OK. Added and active

NameDescription
data:object
An external account. Empty fields are left out.
Show 21 child attributesobject
error:null

Errors

StatusMeaning
200Added and active
202Added and pending while setup runs
400Invalid or missing field, a duplicate, or a failed bank check. Correct it and send a new Idempotency-Key.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/external-accounts' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: add-payee-jane-doe-1' \
--header 'Content-Type: application/json' \
--data '{
"payee_type": "bank_account",
"customer_id": "3130ca8b-8b32-4843-8623-bf83e766b86a",
"currency": "NGN",
"account_name": "Ada Okafor",
"account_number": "0123456789",
"institution_id": "9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f"
}'
Responseapplication/json
200202400OK
{
"data": {
"id": "6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60",
"payee_type": "bank_account",
"account_number": "0123456789",
"institution_id": "9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f",
"institution_type": "bank",
"institution_name": "Example Bank",
"account_name": "ADA OKAFOR",
"customer_id": "3130ca8b-8b32-4843-8623-bf83e766b86a",
"currency": "NGN",
"institution_country_iso_code": "NG",
"status": "active",
"date_created": "2026-10-12T09:15:22.481Z"
},
"error": null
}