List Collectibles
Returns the list of collectibles configured for a business. Supports pagination and optional filtering by collectible category.
Note: The Digital Collectibles feature must be enabled for the business in the Punchh platform. Contact your Punchh representative to update this Punchh platform configuration.
Headers
- Type: stringAcceptrequired
Advertises which content types the client is able to understand
- 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: stringx
-pch -digest requiredThe signature for the API call
- 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.
Body
- Type: stringclientrequired
Unique client identifier
- Type: stringcollectible
_category _id Comma-separated collectible category IDs to filter by (e.g., "67,69,75"). Multiple category IDs must be comma-separated.
- Type: integerpage
Page number for pagination
- Type: integerper
_page Number of records to return per page
Responses
- application/json
- application/json
- application/json
- application/json
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/mobile/collectibles \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN_GOES_HERE' \
--header 'Content-Type: application/json' \
--header 'x-pch-digest: {{$$.env.signature}}' \
--header 'User-Agent: AppName/AppVersion/BuildNumber (OS; Model; MANUFACTURER; MODEL; OS Version)' \
--data '{
"client": "CLIENT_GOES_HERE",
"page": 1,
"per_page": 33,
"collectible_category_id": "67,69,75"
}'
{
"data": [
{
"collectible_name": "Immortal",
"collectible_id": 123,
"image": "IMAGE_URL_GOES_HERE",
"description": "DESCRIPTION_GOES_HERE",
"sequence": null,
"collectible_category_name": null,
"collectible_category_id": null
}
],
"meta": {
"current_page": 1,
"next_page": 2,
"prev_page": null,
"total_pages": 4,
"total_count": 33
}
}