Get available challenges
curl --request GET \
--url https://{host}/challenge/v3/cards \
--header 'Authorization: <api-key>' \
--header 'memberId: <memberid>'import requests
url = "https://{host}/challenge/v3/cards"
headers = {
"memberId": "<memberid>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {memberId: '<memberid>', Authorization: '<api-key>'}};
fetch('https://{host}/challenge/v3/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/challenge/v3/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"memberId: <memberid>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/challenge/v3/cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("memberId", "<memberid>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/challenge/v3/cards")
.header("memberId", "<memberid>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/challenge/v3/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["memberId"] = '<memberid>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"hideInList": true,
"isActive": true,
"currentProgress": 123,
"cardsActivatedCount": 123,
"closedAt": "2023-11-07T05:31:56Z",
"cardId": "<string>",
"currentTier": 123,
"cardDetails": {
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"requiredProgress": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"imageUrl": "<string>",
"details": "<string>",
"termsAndConditions": "<string>",
"activationLimit": 123,
"backgroundImageUrl": "<string>",
"chainIds": [
"<string>"
],
"storeIds": [
"<string>"
],
"rewardType": "Coupon",
"progressCalculationType": "ProductCount",
"isSinglePurchase": true,
"completionLabel": "<string>",
"completedCardsLabel": "<string>",
"completedCardsCount": 123,
"progressLabel": "<string>",
"unitOfMeasure": "Item",
"couponRewards": [
{
"offerId": "<string>"
}
],
"bonusRewards": [
{
"bonusAmount": 123
}
],
"customRewards": [
{
"name": "<string>"
}
],
"tags": [
"<string>"
]
}
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Get available challenges
When no StoreId or ChainId is provided, all available challenges for the customer are returned. When StoreId and/or ChainId are provided, only the challenges available for the specified store/chain are returned. If both StoreId and ChainId are provided, challenges available in specified store or specified chain are returned. If Challenge is configured with list of chains, but only StoreId is provided in the request, challenges available for the chain are not returned.
GET
/
v3
/
cards
Get available challenges
curl --request GET \
--url https://{host}/challenge/v3/cards \
--header 'Authorization: <api-key>' \
--header 'memberId: <memberid>'import requests
url = "https://{host}/challenge/v3/cards"
headers = {
"memberId": "<memberid>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {memberId: '<memberid>', Authorization: '<api-key>'}};
fetch('https://{host}/challenge/v3/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/challenge/v3/cards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"memberId: <memberid>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/challenge/v3/cards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("memberId", "<memberid>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/challenge/v3/cards")
.header("memberId", "<memberid>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/challenge/v3/cards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["memberId"] = '<memberid>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"hideInList": true,
"isActive": true,
"currentProgress": 123,
"cardsActivatedCount": 123,
"closedAt": "2023-11-07T05:31:56Z",
"cardId": "<string>",
"currentTier": 123,
"cardDetails": {
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"requiredProgress": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"imageUrl": "<string>",
"details": "<string>",
"termsAndConditions": "<string>",
"activationLimit": 123,
"backgroundImageUrl": "<string>",
"chainIds": [
"<string>"
],
"storeIds": [
"<string>"
],
"rewardType": "Coupon",
"progressCalculationType": "ProductCount",
"isSinglePurchase": true,
"completionLabel": "<string>",
"completedCardsLabel": "<string>",
"completedCardsCount": 123,
"progressLabel": "<string>",
"unitOfMeasure": "Item",
"couponRewards": [
{
"offerId": "<string>"
}
],
"bonusRewards": [
{
"bonusAmount": 123
}
],
"customRewards": [
{
"name": "<string>"
}
],
"tags": [
"<string>"
]
}
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
Query Parameters
Response
OK
Last modified on August 10, 2026