---
title: "userBankAccount"
method: PATCH
path: "/v2/userBankAccount/{bankAccountId}"
tags: ["Bank Connection"]
---

# userBankAccount

`PATCH /v2/userBankAccount/{bankAccountId}`

Selects a user's bank account. This sets the default bank account for transactions. If no bankAccountId is provided in the /transaction call, the selected account will be used.

<details>
<summary><strong>Error Glossary</strong> (click to expand)</summary>

| Code | HTTP Status | Message |
|------|-------------|-------------|
| `AP101` | 401 | No authenticated user |
| `AP400` | 200 | No bank account linked |
| `AP401` | 400 | Cannot validate bank account |
| `AP412` | 200 | Bank account already removed |
| `AP700` | 400 | Missing or invalid required parameter |
| `AP701` | 400 | Improperly formatted parameter |

</details>

## Headers

- `Content-Type` string, required
- `authorization` string, required

## Response `200`

Success - Bank Account Updated

- union
  - object
    - `bankAccount` object
      - `bankAccountId` integer
      - `bankName` string
      - `accountLast4` string
      - `name` string
      - `isSelected` boolean
      - `accountType` string
      - `status` string
      - `createdDate` string
  - 200failure
    - `error` object
      - `code` string
      - `message` string
      - `help` string — Support contact information

## Other responses

- `400` — Bad Request - Validation Errors

---

[API](https://skmtc.net/aero/apis/aeropay-v2-api.md) · [All operations](https://skmtc.net/aero/apis/aeropay-v2-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aero/aeropay-v2-api/revisions/4700c4ceeaad/schema)
