Loyalty
Get loyalty program statistics
[!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 endpoint.
Retrieve the statistics of the specified loyalty program, such as the total active points, pending points, spent points, and expired points.
get/v1/loyalty_programs/{loyaltyProgramId}/statistics
Request
- Base URLhttps://yourbaseurl.talon.one
- Auth
- API key in header Authorization
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
loyaltyProgramIdinteger required
Identifier of the loyalty program. You can get the ID with the List loyalty programs endpoint.
Response
OK
Example response
{
"totalActivePoints": 9756,
"totalPendingPoints": 548,
"totalSpentPoints": 25668,
"totalExpiredPoints": 1156,
"totalNegativePoints": 32,
"totalMembers": 2582,
"newMembers": 3,
"spentPoints": {
"createdManually": 125,
"createdViaRuleEngine": 9631
},
"earnedPoints": {
"createdManually": 125,
"createdViaRuleEngine": 9631
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.