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

Update an external account

Corrects an external account. Use it to fix the bank details of a `setup_failed` account, which runs setup again, or to add the national ID, PIX key or address that a payout corridor asks for. An empty body on a failed account retries setup.

PATCHhttps://api.gravv.xyz/v1/external-accounts/{external_account_id}Try it
Api-Key

Corrects an external account. Use it to fix the bank details of a setup_failed account, which runs setup again, or to add the national ID, PIX key or address that a payout corridor asks for. An empty body on a failed account retries setup.

It always returns 202. Get the account until it is active or setup_failed. A 409 means the account cannot change in its current state, so add a new one instead. This route needs no Idempotency-Key.

A change to routing_number or payment_rail that leaves a US account on wire or rtp gets the same routing check as POST.

Path parameters

NameDescription
external_account_id:stringRequired
ID of the external account

Body parameters

NameDescription
account_name:string
Cannot be cleared
account_number:string | null
iban:string | null
bic:string | null
routing_number:string | null
bank_name:string | null
institution_id:string | null
account_owner_type:string | null
Possible values: individual, business
institution_country_iso_code:string | null
payment_rail:string | null
Possible values: ach, wire, rtp
bank_account_type:string | null
Possible values: checking, savings
bank_address_line_1:string | null
bank_city:string | null
bank_state:string | null
bank_postal_code:string | null
bank_country:string | null
intermediary_financial_institution:string | null
intermediary_bank_routing_number:string | null
intermediary_bank_address1:string | null
intermediary_bank_address2:string | null
intermediary_bank_city:string | null
intermediary_bank_state:string | null
intermediary_bank_zip_code:string | null
intermediary_bank_country:string | null
address:object
A new address needs address_line1, city and country. It cannot be cleared.
Show 7 child attributesobject
national_id:string | null
national_id_type:string | null
pix_key:string | null

Response

Returns 202 Accepted. Updated. Setup runs again after a bank details change.

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

Errors

StatusMeaning
202Updated. Setup runs again after a bank details change.
400Invalid field or ID
404No such external account
409The account cannot change in its state, its address is already registered, the change makes a duplicate, or another request changed it first
500The update failed. Retry later.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request PATCH \
--url 'https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60' \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"account_number": "87654321",
"bank_postal_code": "E14 5HQ"
}'
Responseapplication/json
202400404409500Accepted
{
"data": {
"id": "6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60",
"institution_id": "550e8400-e29b-41d4-a716-446655440000",
"payee_type": "bank_account",
"account_number": "000123456789",
"institution_type": "bank",
"institution_name": "Example Bank",
"account_name": "JANE DOE",
"iban": "string",
"bic": "string",
"customer_id": "3130ca8b-8b32-4843-8623-bf83e766b86a",
"currency": "USD",
"institution_country_iso_code": "US",
"address": {
"address_line1": "350 Fifth Avenue",
"address_line2": "string",
"house_building_number": "string",
"city": "New York",
"state": "NY",
"postal_code": "10118",
"country": "US"
},
"account_owner_type": "individual",
"routing_number": "string",
"status": "active",
"date_created": "2026-10-12T09:15:22.481Z",
"phone_number": "string",
"error_message": "these account details could not be accepted",
"national_id_type": "string",
"national_id_masked": "string"
},
"error": {}
}
Responseapplication/json
200OK
{
"data": {
"id": "string",
"institution_id": "string",
"payee_type": "bank_account",
"account_number": "string",
"institution_type": "bank",
"institution_name": "string",
"account_name": "string",
"iban": "string",
"bic": "string",
"customer_id": "string",
"currency": "string",
"institution_country_iso_code": "string",
"address": {
"address_line1": "string",
"address_line2": "string",
"house_building_number": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country": "string"
},
"account_owner_type": "individual",
"routing_number": "string",
"status": "pending",
"date_created": "string",
"phone_number": "string",
"error_message": "string",
"national_id_type": "string",
"national_id_masked": "string"
},
"error": null
}