---
title: "Get loyalty program statistics"
method: GET
path: "/v1/loyalty_programs/{loyaltyProgramId}/statistics"
tags: ["Loyalty"]
deprecated: true
---

# Get loyalty program statistics

`GET /v1/loyalty_programs/{loyaltyProgramId}/statistics`

## Request

- Base URL: `https://yourbaseurl.talon.one`
- URL: `https://yourbaseurl.talon.one/v1/loyalty_programs/{loyaltyProgramId}/statistics`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/talon/apis/management-api/docs/v1/loyalty_programs/:loyaltyProgramId/statistics/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

> [!note] Management API endpoints are **not** meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.

> [!warning] This endpoint is deprecated.

To retrieve statistics for a loyalty program, use the
[Get statistics for loyalty dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics)
endpoint.

Retrieve the statistics of the specified loyalty program, such as the
total active points, pending points, spent points, and expired points.

## Path parameters

- `loyaltyProgramId` integer, required

## Response `200`

OK

- LoyaltyDashboardData: Datapoint for the graphs and cards on a loyalty program dashboard.
  - `date` string, date-time, required: Date at which data point was collected.
  - `totalActivePoints` number, required: Total of active points for this loyalty program.
  - `totalPendingPoints` number, required: Total of pending points for this loyalty program.
  - `totalSpentPoints` number, required: Total of spent points for this loyalty program.
  - `totalExpiredPoints` number, required: Total of expired points for this loyalty program.
  - `totalNegativePoints` number, required: Total of negative points for this loyalty program.
  - `totalMembers` number, required: Number of loyalty program members.
  - `newMembers` number, required: Number of members who joined on this day.
  - `spentPoints` LoyaltyDashboardPointsBreakdown, required
    - `createdManually` number, required
    - `createdViaRuleEngine` number, required
  - `earnedPoints` LoyaltyDashboardPointsBreakdown, required
    - `createdManually` number, required
    - `createdViaRuleEngine` number, required

---

[API](https://skmtc.dev/talon/apis/management-api.md) - [All operations](https://skmtc.dev/talon/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talon/apis/management-api/revisions/7ef1b9504c3a?raw)
