Accounts
Accounts
Create account
client.accounts.create(AccountCreateParams { account_type, currency, user_id, 3 more } params, RequestOptionsoptions?): Account { id, account_number, account_type, 10 more }
POST/api/v1/accounts
List accounts
client.accounts.list(AccountListParams { user_id, xEnvironment } params, RequestOptionsoptions?): AccountListResponse { id, account_number, account_type, 10 more }
GET/api/v1/accounts
Retrieve account
client.accounts.retrieve(stringid, AccountRetrieveParams { xEnvironment } params?, RequestOptionsoptions?): Account { id, account_number, account_type, 10 more }
GET/api/v1/accounts/{id}
Update account status
client.accounts.updateStatus(stringid, AccountUpdateStatusParams { status, xEnvironment } params, RequestOptionsoptions?): Account { id, account_number, account_type, 10 more }
PATCH/api/v1/accounts/{id}
Close account
client.accounts.close(stringid, AccountCloseParams { xEnvironment } params?, RequestOptionsoptions?): Account { id, account_number, account_type, 10 more }
DELETE/api/v1/accounts/{id}
Deposit into account
client.accounts.deposit(stringid, AccountDepositParams { amount, description, xEnvironment } params, RequestOptionsoptions?): AccountDepositResponse { account, transaction }
POST/api/v1/accounts/{id}/deposit
Withdraw from account
client.accounts.withdraw(stringid, AccountWithdrawParams { amount, description, xEnvironment } params, RequestOptionsoptions?): AccountWithdrawResponse { account, transaction }
POST/api/v1/accounts/{id}/withdraw
Transfer between accounts
client.accounts.transfer(stringid, AccountTransferParams { amount, to_account_id, description, xEnvironment } params, RequestOptionsoptions?): AccountTransferResponse { from_account, to_account, transaction }
POST/api/v1/accounts/{id}/transfer