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

member_balance (timeseries)

Required permitRate limit tokens costAvailable intervals
Reporting:Api:Report:MemberBalance35m, 1h, 1d, 1w, 1mo
This report allows you to get information about members balance in loyalty club (community).
When a member is added to loyalty club then in type serie is incremented.
When a member is removed from loyalty club then out type serie is decremented.

Fields#

community_id#

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

type#

TypeFilterable
Enum
Serie type.
This field is enum, possible values are:
in - members that opt in to loyalty club
out - members that opt out from loyalty club

optin_channel#

TypeFilterable
String
See members report.

optin_subchannel#

TypeFilterable
String
See members report.

optin_platform#

TypeFilterable
Enum
See members report.

gender#

TypeFilterableReadonly
String
See members report.

age#

TypeFilterable
Enum
See members report.

consents#

TypeFilterable
Object(key: name of consent, value: boolean status of consent)
See members report.

Query without aggregations#

Query returns series with member balances.
{
    "interval": "1d",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-04-08T00:00:00.000-06:00",
        "2024-04-09T00:00:00.000-06:00",
        "2024-04-11T00:00:00.000-06:00",
        "2024-04-22T00:00:00.000-06:00",
        "2024-04-23T00:00:00.000-06:00",
        "2024-04-24T00:00:00.000-06:00",
        "2024-04-25T00:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {
                "type": "out"
            },
            "values": [
                2,
                2,
                1,
                1,
                null,
                1,
                5
            ]
        },
        {
            "label": {
                "type": "in"
            },
            "values": [
                null,
                4,
                300,
                2,
                1,
                null,
                11
            ]
        }
    ],
    "data_points": 11,
    "result_type": "timeseries"
}

Aggregations#

total#

Fetch members balance in context of all communities.

optin_platform#

Fetch members balance grouped by optin_platform.

Labels#

KeyTypeDescription
optin_platformEnumSee in Fields

Example query response#

{
    "interval": "1d",
    "range_timezone": "America/Denver",
    "time_buckets": [
        "2024-04-08T00:00:00.000-06:00",
        "2024-04-09T00:00:00.000-06:00",
        "2024-04-11T00:00:00.000-06:00",
        "2024-04-22T00:00:00.000-06:00",
        "2024-04-23T00:00:00.000-06:00",
        "2024-04-24T00:00:00.000-06:00",
        "2024-04-25T00:00:00.000-06:00"
    ],
    "series": [
        {
            "label": {
                "type": "out",
                "optin_platform": "other"
            },
            "values": [
                2,
                2,
                1,
                1,
                null,
                1,
                5
            ]
        },
        {
            "label": {
                "type": "in",
                "optin_platform": "other"
            },
            "values": [
                null,
                4,
                300,
                2,
                1,
                null,
                11
            ]
        }
    ],
    "data_points": 11,
    "result_type": "timeseries"
}

total_optin_platform#

Fetch optin_platform aggregation in context of all communities.
Previous
members_grouped_count (records)
Next
members_count_snapshot (timeseries)
Built with