Create a new account.

For admin and client expects different request body, check schemas. For admin: not allowed if admin has no "create_accounts" permission. Also admin need "create_accounts_with_initial_balance" permission to create account with not zero balance.

List of possible error codes:

CodeStatusTargetDescription
ACCOUNT_EXISTS_FOR_TYPE400commonCurrent user already have account of selected type
Body Params

For creation by admin

string
length ≥ 28

should contains alphanumeric characters only.

number
required

The ID of the account type.

string
required

The ID of an existing user.

string

Additional description or details about the account.

boolean

Indicates whether the account is active or not.

string

The initial balance of the account.

boolean

Indicates whether withdrawals are allowed for the account.

boolean

Indicates whether deposits are allowed for the account.

string

The maturity date of the account.

number

The day of the month on which the account payout occurs.

number

The ID of the interest account where the payout should be transferred

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json