---
api: 'Business API'
---

# Search total wealth breakdown reports

Get the total wealth of the business grouped by asset type (e.g. cash, savings deposits, savings money market funds, merchant, or crypto) or asset group (e.g. cash, treasury, or merchant).

:::info
The Analytics endpoints are read-only.
The search requests are safe to retry and do not require an `Idempotency-Key`.
:::

For more information, see the guide: [Analytics](https://developer.revolut.com/docs/guides/manage-accounts/analytics).

### Required API key permissions
To call this endpoint, your API key must have the following permissions (scopes):

| Product | Resource | Permission | Mapped scope |
|---------|----------|-------------|--------------|
| **Analytics** | Analytics | Read | `analytics:read` |

For more information, see: [Authentication](https://developer.revolut.com/docs/api/business#authentication).

## Endpoint

POST `/analytics/total-wealth/breakdown/search`

## Request body

### Attributes

- `from` (string)
    The start date of the reporting period (inclusive).
    Interpreted in the business's timezone.
    Cannot be in the future.
- `to` (string)
    The end date of the reporting period (exclusive).
    Interpreted in the business's timezone.
    Must be 1-365 days after `from`.
    Cannot be in the future.
    For example, to cover all of January 2025, set the dates as follows: `from` -> `2025-01-01`, `to` -> `2025-02-01`.
- `dimension` (enum)
    The dimension to group wealth by:
    
    | Dimension value | Example groupings |
    | --- | --- |
    | **`asset_type`** | `cash`, `savings_deposits`, `savings_mmf`, `merchant`, `crypto` |
    | **`asset_group`** | `cash`, `treasury`, `merchant` |
    Possible enum values:

    - `asset_type`
    - `asset_group`

## Returns

### 200

Total wealth grouped by the requested dimension

#### Response attributes

- `total` (object)
    The total wealth of the business.
    Expressed in the business's base currency.
  - `total.amount` (string)
      The monetary amount as a decimal string.
  - `total.currency` (string)
      The currency of the amount, provided as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code or a standard cryptocurrency code such as `BTC` or `ETH`.
- `aggregations` (array of object)
    Rows for the requested dimension, ordered by total in the business's base currency in descending order.
    Rows with the same total keep the order in which the values are listed in the enum - see `record_info.asset_type` and `record_info.asset_group`.
    Group totals and account counts are combined before percentages are calculated.
  - `aggregations[].record_type` (enum)
      The type of this record.
      Total wealth breakdowns contain only `default` records.
      
      | Value | Description |
      | --- | --- |
      | **`default`** | A group of assets sharing the requested dimension value. |
      Possible enum values:

      - `default`
  - `aggregations[].record_info` (object)
      The asset type or group of this row.
  - `aggregations[].total` (object)
      The total value of the assets in this group, in the business's base currency.
    - `aggregations[].total.amount` (string)
        The monetary amount as a decimal string.
    - `aggregations[].total.currency` (string)
        The currency of the amount, provided as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code or a standard cryptocurrency code such as `BTC` or `ETH`.
  - `aggregations[].percentage` (number)
      The share of the overall total that this group represents, on a 0-100 scale.
  - `aggregations[].account_count` (integer)
      The number of accounts included in this group.

## Error responses

| HTTP status code | Description |
| --- | --- |
| 400 | Bad Request  Returned when the request contains invalid fields or a date range that is empty, reversed, or includes future dates. |
| 401 | Unauthorized – authentication credentials are missing or invalid  Returned when the request was not fulfilled because authentication has failed or has not been provided. |
| 403 | Forbidden  Returned when your API key is missing the required `analytics:read` permission. |
| 422 | Unprocessable entity  Returned when the Analytics capability is not enabled for your business.  For more information, see the guide: [Analytics](https://developer.revolut.com/docs/guides/manage-accounts/analytics). |
| 429 | Too many requests  Returned when the request rate limit has been exceeded. The response includes a `Retry-After` header: check it for the number of seconds to wait, and retry only after that time has passed - not earlier. |
