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

# Search income breakdown reports

Get business income over the requested period grouped by transaction type or currency.

Totals are converted to the business's base currency.

The results can be filtered and are paginated. See the request body for the full list of filters.

:::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/income/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 income by.
    Possible enum values:

    - `transaction_type`
    - `currency`
- `filter` (object, optional)
    Filters for the income report.
  - `filter.account_id` (array of string, optional)
      Restricts the analytics to transactions on the given accounts. If not provided, the analytics cover all accounts of the business.
  - `filter.currency` (array of string, optional)
      Restricts the analytics to transactions in the given currencies.
  - `filter.transaction_type` (array of string, optional)
      Restricts the analytics to transactions of the given types.
- `limit` (integer, optional)
    The maximum number of rows to return per page.
- `page_token` (string, optional)
    An opaque cursor taken from `next_page_token` in a previous response.
    Omit it to retrieve the first page.

## Returns

### 200

Income grouped by the requested dimension

#### Response attributes

- `total` (object)
    The total income for the whole requested period, across all aggregation groups.
    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 grouped by the requested dimension, ordered by total in the business's base currency in descending order.
  - `aggregations[].record_type` (enum)
      The type of this record:
      
      | Value | Description |
      | --- | --- |
      | **`default`** | A group of transactions sharing a dimension value. |
      | **`other`** | Transactions that have no value for the requested dimension. |
      | **`excluded`** | Transactions that a user excluded from analytics. |
      Possible enum values:

      - `default`
      - `other`
      - `excluded`
  - `aggregations[].record_info` (object, optional)
      The dimension value of this row. Present only for `default` records; omitted for `other` and `excluded` records.
  - `aggregations[].total` (object)
      The total of the transactions 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[].transaction_count` (integer)
      The number of transactions in this group.
- `next_page_token` (string, optional)
    An opaque cursor for the next page. Omitted when no further pages exist.
- `excluded` (object, optional)
    Summary of the transactions excluded from analytics by the user. Returned only on the first page, only when relevant.
  - `excluded.total` (object)
      The total amount of the excluded transactions.
      Expressed in the business's base currency.
    - `excluded.total.amount` (string)
        The monetary amount as a decimal string.
    - `excluded.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`.
  - `excluded.transaction_count` (integer)
      The number of excluded transactions.

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