Skip to content

Latest commit

 

History

History
154 lines (88 loc) · 4.08 KB

AkahuClient.md

File metadata and controls

154 lines (88 loc) · 4.08 KB

akahu - v1.15.3 / AkahuClient

Class: AkahuClient

The AkahuClient provides a simple interface to the Akahu API and utilities that assist with common usage patterns.

AkahuClient uses axios under the hood to make API requests. A subset of axios request options can be passed through to the underlying axios instance using the options available in AkahuClientConfig.

In the case of an error while making an API request, you can expect to handle one of the following two exceptions:

  • AkahuErrorResponse When an error response is returned from the API
  • AxiosError when an error occurred during the request process, but no response was received (i.e. due to network issues).

Table of contents

Constructors

Resource Properties

Constructors

constructor

new AkahuClient(config)

Parameters

Name Type
config AkahuClientConfig

Resource Properties

auth

auth: AuthResource

Utilities for authorizing users using OAuth2.

https://developers.akahu.nz/docs/authorizing-with-oauth2


identities

identities: IdentitiesResource

Utilities for requesting identity verification using OAuth2.

https://developers.akahu.nz/docs/identity-verification


users

users: UsersResource

Utilities for retrieving information about the Akahu user.


connections

connections: ConnectionsResource

Utilities to view connections that are available to your app, and refresh accounts under a given connection.


categories

categories: CategoriesResource

Utilities to view categories that are available to your app.


accounts

accounts: AccountsResource

Utilities for managing Akahu accounts that have been linked by users.

https://developers.akahu.nz/docs/accessing-account-data


payments

payments: PaymentsResource

Utilities for managing bank account payments on behalf of users.

https://developers.akahu.nz/docs/making-a-payment


transfers

transfers: TransfersResource

Utilities for managing bank account transfers on behalf of users.

https://developers.akahu.nz/docs/making-a-transfer


transactions

transactions: TransactionsResource

Utilities for retrieving bank transactions from connected user accounts.

https://developers.akahu.nz/docs/accessing-transactional-data


webhooks

webhooks: WebhooksResource

Utilities for managing, retrieving, and validating webhooks.

https://developers.akahu.nz/docs/reference-webhooks


parties

parties: PartiesResource

Fetch identity data relating to the party that the user has logged-in to their institution as when connecting accounts to Akahu. i.e. the user's "profile" information at the connected institution.