# Customer Accounts
source: https://developer.mastercard.com/open-finance-au/documentation/access-and-config/accounts/index.md

Customer account records have a lot of different data points that can be used in your application. There are a few important pieces of information to note that can be used to properly identify accounts you want to use in your application, and some data points that will help you best organize account data inside your application.

## Key Account Record Fields {#key-account-record-fields}

|        Field         |                                                                                                            Description                                                                                                             |
|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `id`                 | Store this unique account identifier for future account data retrieval and organization                                                                                                                                            |
| `institutionId`      | The ID of the Financial Institution. This is useful for organizing accounts by Financial Institution.                                                                                                                              |
| `institutionLoginId` | This is the unique identifier for a set of accounts that are added under the same set of login credentials. You can display accounts grouped by this identifier to show which accounts were added with the same login credentials. |
| `Account Type`       | This tells you the type of account. This can be useful for determining how an account can be used.                                                                                                                                 |

## Customer Account Operations {#customer-account-operations}

After a customer has added accounts, the list of accounts they have added can be retrieved using these operations.
Tip: Access to any customer account data requires the **Consent Receipt ID** generated when a customer linked the account. The **Consent Receipt ID** is obtained through [Consent Notification](https://developer.mastercard.com/open-finance-au/documentation/consent/consent-notifications/index.md) as part of account linking.
API Reference: `GET /aggregation/v1/customers/{customerId}/accounts`


API Reference: `GET /aggregation/v1/customers/{customerId}/accounts/{accountId}`

<br />

## Unlinking an Account {#unlinking-an-account}

The **Unlink Customer Account by ID** endpoint removes a specific account from
Mastercard Open Finance aggregation. Unlinking an account means that
Open Finance stops tracking and refreshing data for that account. It
does not close or delete the account at the financial institution.

After an account is unlinked:

* It no longer appears in the customer's list of aggregated accounts.
* Transactions and balance data are no longer refreshed for the account.
* Any existing report data that includes the account is not affected.


API Reference: `DELETE /aggregation/v1/customers/{customerId}/accounts/{accountId}`

If a request specifies an account that the customer does not have, the
endpoint returns a `404` response with a [38003](https://developer.mastercard.com/open-finance-au/documentation/errors/accounterrors/account-not-found/909-913-914-946-952/index.md#38003) error code.

## Institution Login Operations {#institution-login-operations}


API Reference: `GET /aggregation/v1/customers/{customerId}/institutionLogins/{institutionLoginId}/accounts`


API Reference: `GET /aggregation/v1/customers/{customerId}/institutions/{institutionId}/accounts`

