Skip to main content
GET
Get Team Metrics

Get Team Metrics

Returns an array of monthly metric snapshots for a team. Each entry covers one calendar month and includes invoiced amounts, booking and check-in minutes, revenue, and outstanding charges. Used on the team dashboard to render trend charts.

Authentication

Requires a valid customer bearer token. The customer must be a team administrator of the specified team.

Path Parameters

teamId
number
required
Numeric identifier of the team. Returned as Id from GET /api/public/teams/my.

Query Parameters

_shape
string
Comma-separated list of field paths to include in the response. When provided, only the specified fields are returned — useful for reducing payload size. Supports nested paths using dot notation.

Response

Metrics
TeamMetric[]
required
Array of monthly metric snapshots, ordered chronologically.

Per-Month Fields

Metrics[].Id
number
Unique identifier for the metric record.
Metrics[].MonthDate
string
ISO 8601 date representing the first day of the month this record covers.
Metrics[].CurrencyCode
string
ISO 4217 currency code for all monetary values in this record.
Metrics[].InvoicedAmount
number
Total invoiced amount for the member in this month.
Metrics[].TeamInvoicedAmount
number
Total invoiced amount across the entire team in this month.
Metrics[].Revenue
number
Total revenue for the team in this month.
Metrics[].CheckingMinutes
number
Member’s checked-in time in minutes.
Metrics[].TeamCheckingMinutes
number
Total team checked-in time in minutes.
Metrics[].BookingMinutes
number
Member’s booked time in minutes.
Metrics[].TeamBookingMinutes
number
Total team booked time in minutes.
Metrics[].TotalBookings
number
Total number of bookings.
Metrics[].TotalTariffs
number
Total number of active membership plans.
Metrics[].TotalOther
number
Total other charges.
Metrics[].TimePasses
number
Number of time passes used.
Metrics[].Bookings
number
Revenue from bookings.
Metrics[].TotalUnpaid
number
Total unpaid amount.
Metrics[].TotalUnpaidNexKiosk
number
Total unpaid NexKiosk charges.
Metrics[].TotalDue
number
Total amount currently due.
Metrics[].UnPaidAttendees
number
Unpaid event attendee charges.
Metrics[].NotInvoicedCharges
number
Total charges not yet invoiced.
Metrics[].UnInvoicedCharges
number
Uninvoiced miscellaneous charges.
Metrics[].UnInvoicedProducts
number
Uninvoiced product charges.
Metrics[].UnInvoicedTimePasses
number
Uninvoiced time pass charges.
Metrics[].UnInvoicedExtraServices
number
Uninvoiced extra service charges.
Metrics[].NextInvoice
string | null
ISO 8601 datetime of the next scheduled invoice, or null if none is scheduled.
Metrics[].DasySinceLastAccess
number
Days since the member’s last portal access. Note the typo (Dasy) — it is preserved as-is in the API.

Examples

Fetch team metrics

TypeScript Integration

Usage in Portal

Error Responses

401 Unauthorized
error
The customer is not authenticated or the session has expired.
404 Not Found
error
Team with the specified ID does not exist.