Bank Account
A Bank Account represents a financial institution account owned by an organization. Bank accounts store routing and account identification details and are used for payouts, billing, or invoice settlements. A single bank account can be designated as the primary account for its owner organization, which updates the organization’s primary_bank_account_id pointer.
Sample Object
{
"id": "bnk_678stu901vwx",
"owner_id": "org_abc123def456",
"account_number": "1234567890",
"bic": "BOFAUS3N",
"iban": "US12345678901234567890",
"currency": "USD"
}Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the bank account. Auto-generated on create. |
owner_id | string | ID of the organization that owns this bank account. |
account_number | string | Financial institution account number. |
bic | string | Bank Identifier Code (SWIFT BIC). |
iban | string | International Bank Account Number. |
currency | string | Account currency. ISO 4217 format. |
primary | boolean | When set to true on create or update, this bank account becomes the organization’s primary bank account. |
Actions
Adding a bank account to an organization
Adds a new bank account to an organization. When the primary flag is set to true, the organization’s primary_bank_account_id is updated.
obx app identity:organizations:bank-accounts init
obx app identity:organizations:bank-accounts push init --org-id org_abc123def456Listing an organization’s bank accounts
Returns all bank accounts owned by a specific organization.
obx app identity:organizations:bank-accounts list --org-id org_abc123def456Getting an organization’s bank account
Returns a specific bank account by its ID within the context of the organization owner.
obx app identity:organizations:bank-accounts pull bnk_678stu901vwx --org-id org_abc123def456Updating an organization’s bank account
Updates the fields of a bank account. Set primary to true to promote this account as the organization’s primary bank account.
obx app identity:organizations:bank-accounts push bnk_678stu901vwx --org-id org_abc123def456Deleting an organization’s bank account
Removes a bank account from the organization. If the deleted account was the primary bank account, the organization’s primary_bank_account_id is set to null.
obx app identity:organizations:bank-accounts delete bnk_678stu901vwx --org-id org_abc123def456Deleting all of an organization’s bank accounts
Removes every bank account owned by the organization in a single operation.
obx app identity:organizations:bank-accounts delete-all --org-id org_abc123def456