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 (records)

Required permitRate limit tokens cost
Reporting:Api:Report:Members10
This report allows you to get information about current members in your loyalty club (community).
Analytical member record is similar to the one in operational API however it's optimized for analytics with most of properties with personal data removed.

Fields#

id#

TypeFilterableReadonly
Integer
ID of member

community_id#

TypeFilterableReadonly
Integer (via X-Customer header)
ID of member's community

optin_channel#

TypeFilterableReadonly
String
Member's optin_channel.
Member receives optin_channel during creation. It's the value of X-Product-Name header.

optin_subchannel#

TypeFilterableReadonly
String
Member's optin_subchannel.
Member receives optin_subchannel during creation. It's the value of X-Subproduct-Name header.

optin_platform#

TypeFilterableReadonly
Enum
Represents platform used by member to opt-in. It's being set based on optin_channel value.
This field is an enum, possible values are:
android
ios
website
webforms
other

gender#

TypeFilterableReadonly
String
Member's gender.
Gender field is extracted from member property with key gender.

age#

TypeFilterableReadonly
Enum
Represents ranges of member's age.
This field is an enum, possible values are:
"-14", "15-19", "20-24", "25-29", "30-34", "35-39", "40-44", "45-49", "50-54", "55-59", "60-64", "65-69", "70-74", "75-79", "80-"

birth_year_group#

TypeFilterableReadonly
Integer
Represents 5 year range in which member was born.
For example: 2000 means that member was born between 2000 and 2004.

subunit_ids#

TypeFilterableReadonly
Array[Integer]
List of IDs of subunits to which member is assigned.
This is relevant only when customer uses Subunits feature.

group_ids#

TypeFilterableReadonly
Array[Integer]
List of IDs of member groups to which member is assigned.
Member groups is are used for:
Members' Lists
Programs

favorite_stores#

TypeFilterableReadonly
Array[Integer]
IDs of member's favorite stores.

properties#

TypeFilterableReadonly
Object(dynamic)
Member's properties without personal data.

consents#

TypeFilterableReadonly
Object(key: name of consent, value: boolean status of consent)
Statuses of member's consents.

marketing_via_sms#

TypeFilterableReadonly
Boolean
Will member receive marketing SMSes?
This field is computed as following:
member must have msisdn provided
member's sms_status must be verified
member must have sms_marketing consent

marketing_via_email#

TypeFilterableReadonly
Boolean
Will member receive marketing e-mails?
This field is computed as following:
member must have email provided
member's email_status must be enabled or verified
member must have email_marketing consent

marketing_via_push#

TypeFilterableReadonly
Boolean
Will member receive marketing push notifications?
This field is computed as following:
member must have at least one push device token registered
member's push_status must be enabled

marketing_via_anything#

TypeFilterableReadonly
Boolean
Will member receive marketing messaging?
This field is true when at least one of: marketing_via_sms, marketing_via_email or marketing_via_push is true

sms_status#

TypeFilterableReadonly
Enum
Status of member's SMS channel.
This field is an enum, possible values are:
disabled
enabled
verified
barred

email_status#

TypeFilterableReadonly
Enum
Status of member's email channel.
This field is an enum, possible values are:
disabled
enabled
verified
complained
hard_bounced
unsubscribed (deprecated)

push_status#

TypeFilterableReadonly
Enum
Status of member's push channel.
This field is an enum, possible values are:
disabled
enabled

push_devices#

TypeFilterableReadonly
Integer
This field represents number of push notifications provider tokens registered for a member.

msisdn_country#

TypeFilterableReadonly
String(ISO 3166-1 alpha-2)
This field represents country extracted from member's msisdn country code.
Note that there are some countries that have same country code (for example +1)

location_country#

TypeFilterableReadonly
String(ISO 3166-1 alpha-2)
Country of member based on property, zip code or loyalty club's country.

city_place_id#

TypeFilterableReadonly
String
ID of place which is member's city.

place_id#

TypeFilterableReadonly
String
ID of place which is member's most detailed location.

created_at#

TypeFilterableReadonly
String(ISO 8601 timestamp)
Time of member's creation.

updated_at#

TypeFilterableReadonly
String(ISO 8601 timestamp)
Time of member's last update.

Query without aggregations#

Query returns list of members.
{
    "records": [
        {
            "id": 4066131,
            "community_id": 235,
            "optin_channel": "webforms",
            "optin_subchannel": null,
            "optin_platform": "webforms",
            "gender": "woman",
            "birth_year_group": 2000,
            "subunit_ids": [
                5
            ],
            "group_ids": [
                32454,
                32463,
                39504,
                40645,
                75637,
                76853,
                92517
            ],
            "favorite_stores": [],
            "properties": {
                "bool": false,
                "interests": [
                    "dietary_and_nutrition"
                ],
                "bonus_points": 0
            },
            "consents": {
                "dmp_profiling": true,
                "sms_marketing": true,
                "cookie_tracking": true,
                "email_marketing": true,
            },
            "marketing_via_sms": true,
            "marketing_via_email": true,
            "marketing_via_push": true,
            "marketing_via_anything": true,
            "sms_status": "verified",
            "email_status": "verified",
            "push_status": "enabled",
            "push_devices": 1,
            "msisdn_country": "NO",
            "location_country": "NO",
            "city_place_id": 2,
            "place_id": 3,
            "created_at": "2017-06-19T09:56:22.527000Z",
            "updated_at": "2024-04-09T13:34:29.439000Z"
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

Aggregations#

count#

Fetch number of members.

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "members_count": 1
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

total_count#

Fetch number of members in context of all available communities.

Example query response#

{
    "records": [
        {
            "members_count": 1
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

gender_count#

Fetch distribution of gender.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
genderStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "gender": "woman",
            "members_count": 1
        },
        {
            "community_id": 42,
            "gender": null,
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

total_gender_count#

Fetch distribution of gender in context of all available communities.

Returned fields#

KeyTypeDescription
genderStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "gender": "woman",
            "members_count": 1
        },
        {
            "gender": null,
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

age_count#

Fetch distribution of age.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
ageEnumSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "age": "20-24",
            "members_count": 1
        },
        {
            "community_id": 42,
            "age": null,
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

total_age_count#

Fetch distribution of age in context of all communities.

Returned fields#

KeyTypeDescription
ageEnumSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "age": "20-24",
            "members_count": 1
        },
        {
            "age": null,
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

optin_channel_count#

Fetch distribution of optin_channel.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
optin_channelStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "optin_channel": "default",
            "members_count": 1
        },
        {
            "community_id": 42,
            "optin_channel": "webforms",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

total_optin_channel_count#

Fetch distribution of optin_channel in context of all communities.

Returned fields#

KeyTypeDescription
optin_channelStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "optin_channel": "default",
            "members_count": 1
        },
        {
            "optin_channel": "webforms",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

optin_subchannel_count#

Fetch distribution of optin_subchannel.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
optin_subchannelStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "optin_subchannel": null,
            "members_count": 1
        },
        {
            "community_id": 42,
            "optin_subchannel": "2242",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

total_optin_subchannel_count#

Fetch distribution of optin_subchannel in context of all communities.

Returned fields#

KeyTypeDescription
optin_subchannelStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "optin_subchannel": null,
            "members_count": 1
        },
        {
            "optin_subchannel": "2242",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

optin_platform_count#

Fetch distribution of optin_platform.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
optin_platformEnumSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "optin_platform": "android",
            "members_count": 1
        },
        {
            "community_id": 42,
            "optin_platform": "other",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

total_optin_platform_count#

Fetch distribution of optin_platform in context of all communities.

Returned fields#

KeyTypeDescription
optin_platformEnumSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "optin_platform": "android",
            "members_count": 1
        },
        {
            "optin_platform": "other",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

marketing_via_anything_count#

Fetch distribution of marketing_via_anything.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
marketing_via_anythingBoolSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "marketing_via_anything": true,
            "members_count": 1
        },
        {
            "community_id": 42,
            "marketing_via_anything": false,
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

total_marketing_via_anything_count#

Fetch distribution of marketing_via_anything in context of all communities.

Returned fields#

KeyTypeDescription
marketing_via_anythingBoolSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "marketing_via_anything": true,
            "members_count": 1
        },
        {
            "marketing_via_anything": false,
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": null
    },
    "result_type": "records"
}

place_count#

Fetch distribution of places.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
place_idStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "place_id": 40,
            "members_count": 1
        },
        {
            "community_id": 42,
            "place_id": 43,
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

total_place_count#

Fetch distribution of place in context of all communities.

Returned fields#

KeyTypeDescription
place_idStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "place_id": "Oslo",
            "members_count": 1
        },
        {
            "place_id": "Oslo",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

city_place_count#

Fetch distribution of cities.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
city_place_idStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "city_place_id": 40,
            "members_count": 1
        },
        {
            "community_id": 42,
            "city_place_id": 43,
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

total_city_place_count#

Fetch distribution of city in context of all communities.

Returned fields#

KeyTypeDescription
city_place_idStringSee in Fields
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "city_place_id": "Oslo",
            "members_count": 1
        },
        {
            "city_place_id": "Oslo",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

consents_count#

Fetch distribution of consents.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
consent_keyStringKey of consent from consents field
consent_valueBoolean-
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "location_city": "Oslo",
            "location_detail": null,
            "members_count": 1
        },
        {
            "community_id": 42,
            "location_city": "Oslo",
            "location_detail": "Frogner",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

total_consents_count#

Fetch distribution of consents in context of all communities.

Returned fields#

KeyTypeDescription
consent_keyStringKey of consent from consents field
consent_valueBoolean-
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "location_city": "Oslo",
            "location_detail": null,
            "members_count": 1
        },
        {
            "location_city": "Oslo",
            "location_detail": "Frogner",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

interests_count#

Fetch distribution of interests.

Returned fields#

KeyTypeDescription
community_idIntegerSee in Fields
interestStringOne of interest key
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "community_id": 42,
            "interest": "swimming",
            "members_count": 1
        },
        {
            "community_id": 42,
            "interest": "cars",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}

total_interests_count#

Fetch distribution of interests in context of all communities.

Returned fields#

KeyTypeDescription
interestStringOne of interest key
members_countIntegerCount of members

Example query response#

{
    "records": [
        {
            "interest": "swimming",
            "members_count": 1
        },
        {
            "interest": "cars",
            "members_count": 2
        }
    ],
    "pagination": {
        "next_page_info": "CNOW-AE"
    },
    "result_type": "records"
}
Previous
Timeseries
Next
members_count (records)
Built with