Skip to main content
PUT
/
customers
/
{customerID}
/
external_accounts
/
{externalAccountID}
Update an External Account
curl --request PUT \
  --url https://api.bridge.xyz/v0/customers/{customerID}/external_accounts/{externalAccountID} \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": {
    "street_line_1": "<string>",
    "city": "<string>",
    "country": "<string>",
    "street_line_2": "<string>",
    "state": "<string>",
    "postal_code": "<string>"
  },
  "account": {
    "checking_or_savings": "checking",
    "routing_number": "<unknown>"
  }
}
'
{
"account_type": "us",
"id": "<string>",
"customer_id": "<string>",
"currency": "usd",
"account_owner_name": "<string>",
"account": {
"routing_number": "<string>",
"last_4": "<string>",
"checking_or_savings": "checking"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"active": true,
"bank_name": "<string>",
"last_4": "<string>",
"iban": {
"country": "<string>",
"last_4": "<string>",
"bic": "<string>"
},
"swift": {
"account": {
"country": "<string>",
"last_4": "<string>",
"bic": "<string>"
},
"address": {
"street_line_1": "<string>",
"city": "<string>",
"country": "<string>",
"street_line_2": "<string>",
"state": "<string>",
"postal_code": "<string>"
},
"category": "<string>",
"purpose_of_funds": [
"<string>"
],
"short_business_description": "<string>"
},
"clabe": {
"last_4": "<string>"
},
"pix": {
"last_4": "<string>"
},
"account_owner_type": "individual",
"first_name": "<string>",
"last_name": "<string>",
"business_name": "<string>",
"beneficiary_address_valid": true
}

Authorizations

Api-Key
string
header
required

Path Parameters

customerID
string
required

A UUID that uniquely identifies a resource

Required string length: 1 - 42
externalAccountID
string
required

A UUID that uniquely identifies a resource

Required string length: 1 - 42

Body

application/json

External Account details to be updated

address
object
required

address of the beneficiary of this account

account
object

US bank account information. Required when the account_type is us. However, the top-level account_number and routing_number fields in deprecation will continue to be supported.

Response

External Account object updated

  • ACH
  • IBAN
  • SWIFT
  • CLABE
  • Pix

US ACH bank account using account and routing numbers

account_type
enum<string>
required

Type of the bank account.

Available options:
us
id
string
required

A UUID that uniquely identifies a resource

Required string length: 1 - 42
customer_id
string
required

The id of the Bridge customer that this External Account belongs to

Minimum string length: 1
currency
enum<string>
required

Currency associated with the bank account.

Available options:
usd,
eur,
mxn
account_owner_name
string
required

Owner of the account Bank Account (e.g. "John Doe"). For ach or wire transfers, this field must be at least 3 characters, at most 35 characters, and follow either of the following regex patterns:

  • ach: ^(?!\s*$)[\x20-\x7E]*$
  • wire: ^[ \w!"#$%&'()+,\-./:;<=>?@\\_`~]*$
Required string length: 1 - 256
account
object
required

US bank account information. It's populated when the account_type is us

created_at
string<date-time>
required

Time of creation of the External Account

updated_at
string<date-time>
required

Time of last update of the External Account

active
boolean
required

Whether or not this External Account is active

bank_name
string

Bank name of the account (e.g. "Chase")

Required string length: 1 - 256
last_4
string
deprecated

Last 4 digits of the bank account number for us account type. This field is getting deprecated in favor of the account.last_4 field

Minimum string length: 1
iban
object

IBAN bank account information. It's populated when the account_type is iban.

swift
object

SWIFT bank account information. Required when using SWIFT payment rails. Supported account types are iban and unknown.

clabe
object

CLABE bank account information for the SPEI (Mexican) payment rail. It's populated when the account_type is clabe.

pix
pix_key · object

Pix bank account information for the Brazilian Pix payment rail. It's populated when the account_type is pix. Contains either Pix key or BR Code information.

  • pix_key
  • br_code
account_owner_type
enum<string>

Type of the account ownership

Available options:
individual,
business
first_name
string

First name of the individual account owner

last_name
string

Last name of the individual account owner

business_name
string

Business name of the business account owner

beneficiary_address_valid
boolean

Whether the beneficiary address is valid. A valid beneficiary address is required for all US External Accounts