Skip to main content
GET
/
api
/
v4.0
/
integrations
/
customers
/
{customerId}
/
reward-campaigns-progress
Get Customer Campaigns Progress
curl --request GET \
  --url https://api.gameball.co/api/v4.0/integrations/customers/{customerId}/reward-campaigns-progress \
  --header 'apikey: <api-key>'
[
  {
    "rewardsCampaignName": "<string>",
    "rewardsCampaignId": 123,
    "isUnlocked": true,
    "highScoreAmount": 123,
    "currentStreak": 123,
    "highestStreak": 123,
    "completionPercentage": 123,
    "achievedCount": 123,
    "canAchieve": true,
    "rewardCampaignConfiguration": {
      "id": 123,
      "name": "<string>",
      "description": "<string>",
      "isRepeatable": true,
      "maxAchievement": 123,
      "type": "<string>",
      "visibility": "<string>",
      "icon": "<string>",
      "redirectionButtonText": "<string>",
      "redirectionButtonLink": "<string>",
      "widgetDetailsParameter": "<string>",
      "activation": {
        "startDate": "2023-11-07T05:31:56Z",
        "endDate": "2023-11-07T05:31:56Z"
      },
      "rewards": [
        {
          "rankReward": 123,
          "walletReward": 123,
          "walletRewardFactor": 123,
          "couponReward": {
            "couponType": "<string>",
            "discountValue": 123,
            "product": {
              "productId": "<string>",
              "productName": "<string>",
              "variantId": "<string>",
              "variantName": "<string>",
              "productDisplayName": "<string>"
            },
            "collections": [
              {
                "collectionId": "<string>",
                "collectionName": "<string>"
              }
            ],
            "group": {
              "handle": "<string>",
              "title": "<string>",
              "url": "<string>",
              "iconPath": "<string>",
              "description": "<string>",
              "maxPerCustomer": 123,
              "startDate": "2023-11-07T05:31:56Z",
              "expiryDate": "2023-11-07T05:31:56Z",
              "isAvailable": true,
              "isActive": true
            },
            "options": {
              "name": "<string>",
              "expiryAfter": 123,
              "usageLimit": 123,
              "capping": 123,
              "minOrderValue": 123,
              "codePrefix": "<string>",
              "redeemInstructions": "<string>"
            }
          }
        }
      ]
    }
  }
]
This API retrieves a customer’s progress within Gameball’s reward campaigns, providing insights into their achievements and current status in each campaign. By accessing completion percentages and unlock statuses, you can track how customers are engaging with various reward opportunities.
Security: Requires apikey and secretkey headers.

Authorizations

apikey
string
header
required

Path Parameters

customerId
string
required

Unique identifier for the customer

Response

200 - application/json

Customer campaigns progress found

rewardsCampaignName
string

The name of the rewards campaign

rewardsCampaignId
number

The unique ID of the rewards campaign

isUnlocked
boolean

Indicates if the customer has unlocked the campaign

highScoreAmount
number | null

Highest score achieved (High Score campaigns only).

currentStreak
number | null

Current consecutive daily visits (Streak campaigns only).

highestStreak
number | null

Max consecutive daily visits (Streak campaigns only).

completionPercentage
number

Percentage of the campaign completed by the customer.

achievedCount
number

Number of times the customer has achieved the campaign.

canAchieve
boolean

Whether the customer is currently eligible to participate in the campaign.

rewardCampaignConfiguration
object

Comprehensive description of the reward campaign configuration.