GET
/
api
/
end_users
/
statistics
curl --request GET \
  --url https://app.herondata.io/api/end_users/statistics \
  --header 'x-api-key: <api-key>'
{
  "statistics": [
    {
      "currency": "USD",
      "dt": "2025-04-30",
      "heron_id": "mrc_PqzJHXwe6KBHqXcjf5ADbr",
      "label": "Revenue",
      "metrics": {
        "inflow": {
          "amount": 42.42,
          "avg_amount": 1.01,
          "n": 42
        },
        "net": {
          "amount": 42.42,
          "avg_amount": 1.01,
          "n": 42
        },
        "outflow": {
          "amount": 42.42,
          "avg_amount": 1.01,
          "n": 42
        }
      }
    }
  ]
}

Authorizations

x-api-key
string
header
required

Query Parameters

merchant_heron_ids
string[]

Filter by specific merchants

Example:
[
  "mrc_3n8v96ndeMfcaiEeJVQAmB",
  "mrc_F3MqqGr7f3263kHH3NdBC2"
]
to_currency
enum<string> | null

ISO 4217 currency code to convert to

Available options:
GBP,
USD,
EUR
Example:

"USD"

category_heron_ids
string[]

Filter by specific categories

Example:
[
  "ctg_LaroJuA5FaTEtTs2sXpEmh",
  "ctg_a3Aqwe9hnQ6cnEiEkx8E3L"
]
group_by
enum<string>
default:category

Pivot results by merchant or by category

Available options:
category,
merchant
Example:

"category"

to_date
string | null

Filter for transactions with timestamp before the input value (as date)

Example:

"2025-04-29"

date_granularity
enum<string>
default:month

Aggregate results over time, e.g., by week or by quarter

Available options:
day,
week,
month,
quarter,
year
Example:

"month"

from_date
string | null

Filter for transactions with timestamp after the input value (as date)

Example:

"2025-04-30"

end_user_id
string | null

end_user_id for statistics; either end_user_id or end_user_heron_id is required

Example:

"your_end_user_id"

end_user_heron_id
string | null

Heron-generated id for end user; either end_user_id or end_user_heron_id is required

Example:

"eus_FcjtxALUX8mtznFYBAbH7n"

Response

200 - application/json
OK

The response is of type object.