List customer achievements
Changed on[!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.
For the given customer profile, list all the achievements that match your filter criteria.
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
The ID of the Application. It is displayed in your Talon.One deployment URL.
The integration identifier for this customer profile. Must be:
- Unique within the deployment.
- Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID.
Once set, you cannot update this identifier.
Query parameters
The number of items in the response.
The number of items to skip when paging through large result sets.
The ID of the achievement. You can get this ID with the List achievement endpoint.
Filter results by the title of an achievement.
Response
OK
Example response
{
"hasMore": true,
"data": [
{
"status": "completed",
"progress": 10,
"startDate": "2024-01-01T15:04:05Z07:00",
"completionDate": "2024-01-15T15:04:05Z07:00",
"endDate": "2024-02-01T15:04:05Z07:00",
"achievementId": 3,
"name": "FreeCoffee10Orders",
"title": "50% off on 50th purchase.",
"description": "50% off for every 50th purchase in a year.",
"campaignId": 3,
"campaignIds": [
1,
14,
27
],
"referencedByCampaigns": [
{
"id": 1,
"applicationId": 2
}
],
"target": 10,
"achievementRecurrencePolicy": "no_recurrence",
"achievementActivationPolicy": "fixed_schedule",
"achievementFixedStartDate": "2024-01-15T15:04:05Z07:00",
"achievementEndDate": "2024-02-15T15:04:05Z07:00"
}
]
}Changes
- breaking
the response property
///became optional for the status - info
response property
data/items/allOf[subschema #2]/campaignIddeprecated - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status
- breaking