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