Placewise API
Get startedExplore
Get startedExplore
Performance Cloud 🗗
Placewise 🗗
ExplorePublic APIManagement APIUsers APIOperations APIMessaging APIReporting API
ML APIData API
ExplorePublic APIManagement APIUsers APIOperations APIMessaging APIReporting API
ML APIData API
  1. Members
  • Introduction
  • Filter parameter specification
  • Data formats
    • Records
    • Timeseries
  • Reports
    • Members
      • members (records)
      • members_count (records)
      • members_grouped_count (records)
      • member_balance (timeseries)
      • members_count_snapshot (timeseries)
      • members_count_history (timeseries)
    • Sendings
      • sendings (records)
      • sendings_events_history (timeseries)
      • sendings_recipients_statistics (timeseries)
      • sendings_links (records)
      • sendings_links_stats (records)
      • Examples
        • sendings - find sending by reporting_id
        • sendings_events_history - show sending events
        • sendings_recipients_statistics - show recipients by age groups
    • Links
      • links_visits_history (timeseries)
  • Geo API
    • Find Locations Coordinates
      POST
    • List places
      POST
    • Show place
      GET
  • Metadata
    POST
  • Field metadata
    POST
  • Query (records)
    POST
  • Query (timeseries)
    POST
  • Query (records) export
    POST
  • Query (timeseries) export
    POST
  • Tenants query (records) export
    POST
  • Tenants query (timeseries) export
    POST
  1. Members

members_grouped_count (records)

Required permitRate limit tokens cost
Reporting:Api:Report:MembersGroupedCount2
This report allows you to get information about simply aggregates counts in your loyalty club (community).

Fields#

community_id#

TypeFilterableReadonly
Integer (via X-Customer header)
ID of community.

grouping_type#

TypeFilterableReadonly
Enum
Indicates aggregation group type.
This field is an enum, possible values are:
optin_channel
optin_subchannel
optin_platform
birth_year_group
consent_true
consent_false
marketing_true
marketing_false
subunit_id
group_id
favorite_store
country
gender

grouping_value#

TypeFilterableReadonly
String
Indicates aggregation group value.

members_count#

TypeFilterableReadonly
Integer
Count of members in given aggregation group.

updated_at#

TypeFilterableReadonly
Time
Time when last change of members_count was done.
Note that it may be not the same as last time of member's update.

Query without aggregations#

Query returns list of member counts groups.
{
    "records": [
        {
            "community_id": 235,
            "grouping_type": "optin_channel",
            "grouping_value": "default",
            "members_count": 159,
            "updated_at": "2024-08-14T05:56:40.098000Z"
        },
        {
            "community_id": 235,
            "grouping_type": "optin_platform",
            "grouping_value": "other",
            "members_count": 633,
            "updated_at": "2024-08-14T05:56:40.098000Z"
        },
        {
            "community_id": 235,
            "grouping_type": "country",
            "grouping_value": "NO",
            "members_count": 680,
            "updated_at": "2024-08-14T05:56:40.098000Z"
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

Aggregations#

by_grouping_type_and_value#

Member count aggregated by grouping_type and grouping_value.
This aggregation can be only useful when you want to sum counts between multiple loyalty clubs.

Returned fields#

KeyTypeDescription
grouping_typeEnumSee in Fields
grouping_valueStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "grouping_type": "optin_channel",
            "grouping_value": "default",
            "members_count": 159
        },
        {
            "grouping_type": "optin_platform",
            "grouping_value": "other",
            "members_count": 633
        },
        {
            "grouping_type": "country",
            "grouping_value": "NO",
            "members_count": 680
        },
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}
Previous
members_count (records)
Next
member_balance (timeseries)
Built with