Skip to main content
GET
Members report for a period

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Headers

X-1Club-Chart-Image
enum<string>

Send png to have each picture carry its PNG (png, base64, at 2x) beside the SVG, for a client that shows images but does not draw SVG.

Available options:
png

Query Parameters

from
string<date>
required

First day of the period (YYYY-MM-DD), on the organization's own clock.

to
string<date>
required

Last day of the period, inclusive.

compare
enum<string>
default:previous_period

What to compare the period with.

Available options:
previous_period,
previous_year,
none
granularity
enum<string>

How trend steps through the period. When omitted, up to 31 days by day, up to 90 by week, longer by month.

Available options:
day,
week,
month
ageBands
string

Only the customers in these age bands, comma-separated. None is everyone.

charts
enum<string>
default:none

Whether the answer carries pictures, as chart (and moreCharts) beside its figures - none (the default), the one chart of the answer, or every one. Opt-in, so a caller that never draws one pays nothing for it; the figures are the same either way.

Available options:
none,
summary,
all

Response

The report

period
object
chart
object

A picture of the answer, drawn from its own figures (never a second computation) in the caller's language: a member of staff's own when they chose one, otherwise the organization's. Present only when the request asks with charts=summary or charts=all (the default is none), and when the answer has something to draw. Every figure it shows is in alt and in the answer itself.

moreCharts
object[]

With charts=all: every other picture the answer can draw, after chart.

timezone
string

The clock the days are read on: the organization's timezone, as on the admin analytics dashboards.

ageBands
string[]

The age bands the counts, contact types, new customers and trend were narrowed to; empty for everyone.

current
object

Right now, whatever the period.

totals
object
newCustomersByChannel
object[]

The period's new customers by where they joined: the channel of the booking, sale or check-in that first made each one a customer, stored when it happened. admin is anything staff made, online a purchase paid online whose record does not say which member surface it was made on, added_by_member a place on someone else's booking, and unknown a customer nothing on record places. Largest first; the counts add up to totals.newCustomers.

comparison
object | null
trend
object

The counts at the end of each day, week or month. When a period ends partway through a week or month, its last point is the count at the end of the period's last day.

lifecycle
object | null

Moves between contact types in the period. Null when the caller lacks contacts:read.

churn
object | null

The period's churn, the admin Customer lifecycle report's: contacts whose recurring membership ended in the period with no other recurring membership following within the grace window, whatever the reason. Pass and drop-in holders lapse rather than churn, so they are lifecycle.lapsed, never counted here. Null when the caller lacks contacts:read.