akahu - v1.15.3 / AccountsResource
Utilities for managing Akahu accounts that have been linked by users.
https://developers.akahu.nz/docs/accessing-account-data
-
BaseResource
↳
AccountsResource
▸ list(token
): Promise
<Account
[]>
List all accounts that have been connected by the user associated with the specified token
.
https://developers.akahu.nz/reference/get_accounts
Name | Type |
---|---|
token |
string |
Promise
<Account
[]>
▸ get(token
, accountId
): Promise
<Account
>
Get a single account that has been connected by the user associated with the specified token
.
https://developers.akahu.nz/reference/get_accounts-id
Name | Type |
---|---|
token |
string |
accountId |
string |
Promise
<Account
>
▸ listTransactions(token
, accountId
, query?
): Promise
<Paginated
<Transaction
>>
List transactions for a specified account.
https://developers.akahu.nz/reference/get_accounts-id-transactions
Name | Type |
---|---|
token |
string |
accountId |
string |
query |
TransactionQueryParams |
Promise
<Paginated
<Transaction
>>
▸ listPendingTransactions(token
, accountId
): Promise
<PendingTransaction
[]>
List pending transactions for a specified account.
https://developers.akahu.nz/reference/get_accounts-id-transactions-pending
Name | Type |
---|---|
token |
string |
accountId |
string |
Promise
<PendingTransaction
[]>
▸ revoke(token
, accountId
): Promise
<void
>
Revoke a single account from the specified token
.
After this call the token will no longer have access to the specified account or it's associated data, including transactions.
https://developers.akahu.nz/reference/delete_accounts-id
Name | Type |
---|---|
token |
string |
accountId |
string |
Promise
<void
>
▸ refresh(token
, accountId
): Promise
<void
>
Refresh a single account that has been connected by the user associated with the specified token
.
https://developers.akahu.nz/reference/post_refresh-id
Name | Type |
---|---|
token |
string |
accountId |
string |
Promise
<void
>
▸ refreshAll(token
): Promise
<void
>
Refresh all accounts that have been connected by the user associated with the specified token
.
https://developers.akahu.nz/reference/post_refresh
Name | Type |
---|---|
token |
string |
Promise
<void
>