List User Challenges
Returns all challenges associated with the logged-in user. Challenges are grouped into Available, Active, and Past categories, and include user-specific details such as enrollment status, progress, and relevant metadata required to render the challenges listing screen.
This API supports pagination for efficient data handling.
Prerequisite
The Challenges feature must be enabled for the business in the Punchh platform. If not enabled, the API will return a 422 Unprocessable Entity error. Contact your Punchh representative to update this Punchh platform configuration.
Challenge Categories
Available Challenges: All challenges available for opt-in when the opt-in feature is enabled. When the opt-in feature is disabled, all challenges are returned in the Active category.
Active Challenges: All active challenges that the user has opted into, along with all challenges that do not require opt-in. When the opt-in feature is disabled, all challenges appear in this category. Note: All segment-based challenges are also included in this category.
Past Challenges: All challenges whose end date has already passed, deactivated challenges, as well as challenges for which the user has already earned a badge.
Headers
- Type: stringx
-pch -digest requiredThe signature for the API call
- Type: stringAuthorizationrequired
Used to authorize the request with access_token. It should be supplied as
Bearer ACCESS_TOKEN_GOES_HERE. - Type: stringContent
- Type requiredSet this header to application/json.
- Type: stringAcceptrequired
Advertises which content types the client is able to understand
- Type: stringUser
- Agent requiredUsed to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.
- Type: stringpunchh
-app -device -id requiredThe app device ID helps Punchh identify each device so that certain rewards can be awarded individually to each device instead of per user. For example, the sign-up reward is given to each device ID to prevent fraudulent sign-ups so that a user cannot do repeated sign-ups from a single device to get rewards. It should not change even if the user resets a device. See the sample code to generate the punchh-app-device-id header.
- Type: stringAccept
- Language Preferred language. Punchh supports multiple languages for the challenge name and description in the API response as per the locale specified in the Accept-Language request header for the campaign type challenge. Possible values: ar-kw for Arabic Kuwait, az for Azerbaijani, ca-ES for Catalan, en for English, en-CY for English-Cyprus, en-GB for English British, en-NZ for English-New Zealand, en-TT for English-Trinidad and Tobago, en-ca for English-Canada, es for Spanish, es-CR for Spanish Costa Rica, es-MX for Spanish Mexico, es-US for Spanish United States, fr for French, fr-ca for French-Canada, ro for Romania, vi for Vietnamese
The locales for a business are configured in the Punchh platform under Administration > Business Profile > Address. Click the Alternate Languages drop-down field to choose a language. In the Punchh platform, the admin of a business has to configure in the relevant language(s) the challenge name and description when creating or editing a campaign under Marketing Automation > Campaign Management.
Body
- Type: stringclientrequired
OAuth client ID provided by the business
- Type: "available" or "active" or "past"enumfilter
Filters the response to return only challenges of a specific category. Possible values are:
- available: Returns only available challenges
- active: Returns only active challenges
- past: Returns only past challenges
If not provided, all categories are returned.
- Type: integerpage
Page number for pagination
- Type: integerper
_page Number of challenges to return per page
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/users/challenges_listing \
--header 'x-pch-digest: {{$$.env.signature}}' \
--header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
--header 'punchh-app-device-id: APP_DEVICE_ID_GOES_HERE' \
--data '{
"client": "CLIENT_GOES_HERE",
"page": 1,
"per_page": 10,
"filter": "active"
}'
{
"count": {
"active_challenges": 12
},
"available_challenges": [],
"active_challenges": [
{
"challenge_id": 16438,
"name": "Buy 5 Cheese Breadsticks",
"description": "Buy 5 Cheese Breadsticks to earn bonus points",
"image_url": "IMAGE_URL_GOES_HERE",
"icon_url": "IMAGE_URL_GOES_HERE",
"icon_completed_url": "IMAGE_URL_GOES_HERE",
"start_date": "2025-01-01",
"end_date": "2025-12-31",
"challenge_starting_at_tz": "2025-01-01T00:00:00+05:30",
"challenge_expiring_at_tz": "2025-12-31T23:59:59+05:30",
"challenge_reach": "universal_auto_enrolment",
"challenge_status": "enrolled",
"challenge_type": "receipt_qualification",
"occurrence": "single",
"past_completions": 1,
"opted_in": true,
"opted_out": false,
"explicit_opt_in": true,
"gift_reason": "Buy 5 Cheese Breadsticks",
"miscellaneous": "{\"detailedDescription\":\"Earn 50 bonus points after you purchase five breadsticks.\"}",
"progress": [
{
"completed_steps": 0,
"total_steps": 1
}
]
}
],
"past_challenges": []
}