logoAccess

Update bank account

PATCH
/api/v1/payment_methods/{id}

Update account_name or account_number. Normalized fields are re-derived automatically.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Path Parameters

id*string

Unique bank account ID

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Request Body

  1. body
account_name?string

Updated account holder name

Length1 <= length
account_number?string

Updated bank account number or wallet phone number

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
id*string
bank_code*string
account_name*string
account_number*string
status*string
created_at*string
updated_at*string
curl -X PATCH 'https://api.tryaccess.xyz/api/v1/payment_methods/ba_01J9Z8K2P3Q4R5S6T7U8V9W0X1' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "string",  "bank_code": "string",  "account_name": "string",  "account_number": "string",  "status": "string",  "created_at": "string",  "updated_at": "string"}

How is this guide?