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

# Search total wealth reports

Get the total wealth of the business as a time series over the requested period.

The response always contains daily data points. Can be filtered by asset type.

:::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/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`.
- `filter` (object, optional)
    Filters for the total wealth report.
  - `filter.asset_type` (enum, optional)
      Restricts the report to the given asset type.
      
      | Value | Description |
      | --- | --- |
      | **`cash`** | Funds in the business's cash accounts. |
      | **`savings_deposits`** | Funds in savings accounts and deposits. |
      | **`savings_mmf`** | Funds in savings money market funds. |
      | **`merchant`** | Funds held with merchants. |
      | **`crypto`** | Cryptocurrency holdings. |
      
      Omit it to include all asset types.
      Possible enum values:

      - `cash`
      - `savings_deposits`
      - `savings_mmf`
      - `merchant`
      - `crypto`

## Returns

### 200

Total wealth report for the requested period

#### 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`.
- `data_points` (array of object)
    Daily data points over the requested period.
  - `data_points[].from` (string)
      The start date of this data point (inclusive). Interpreted in the business's timezone.
  - `data_points[].to` (string)
      The end date of this data point (exclusive). Interpreted in the business's timezone.
  - `data_points[].total` (object)
      The total value of the business's assets.
      Expressed in the business's base currency.
    - `data_points[].total.amount` (string)
        The monetary amount as a decimal string.
    - `data_points[].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`.

## 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. |
