Accounts

Accounts represent the financial accounts an organization holds with Flex. Use the Accounts API to list accounts, retrieve their details and balances, open banking accounts, rename accounts, and request account closure.

Each account has a unique id and an organizationId identifying the organization it belongs to. An organization can have multiple accounts.

Account types

The type field identifies the account type:

TypeDescription
bankingA deposit account that holds the organization’s funds and may have associated Reward Cards.
creditA credit account. Its available balance represents the amount available to spend.
cryptoA cryptocurrency account, including stablecoins such as USDC and USDT.
investmentAn investment account. Its available balance represents cash available to withdraw, rather than the account’s total value.

Opening an account through this API supports banking only. When Reward Cards are enabled for your organization, opening a banking account also sets it up for Reward Card use. The returned account has type banking.

Account closure through this API also supports banking only. Credit, crypto, and investment accounts cannot be closed through this API.

Balances

Each account includes a balances object. The balances returned depend on the account type:

Account typeBalances
bankingavailable, pending, hold
creditavailable, hold
cryptoavailable, pending, hold
investmentavailable, pending, hold

available is the amount available to spend or withdraw. pending represents funds awaiting settlement, and hold represents reserved funds.

Balance amounts include their currency and scale. An asOf timestamp indicates when a balance was last confirmed. See Amounts for how to interpret monetary values.

Access and changes

Your API key needs the appropriate permission in the account’s organization:

ActionRequired scope
List or retrieve accountsaccounts:read
Open or rename accountsaccounts:write
Close accountsaccounts:close

Every write request requires an idempotencyKey. Reuse the same key and request data when retrying the same operation. See Idempotency.

Endpoints