Skip to main content
GET
/
api
/
v4.0
/
integrations
/
configurations
/
redemption
cURL
curl --request GET \
  --url https://api.gameball.co/api/v4.0/integrations/configurations/redemption \
  --header 'apikey: <api-key>'
{
  "redemptionFactor": 0.1,
  "redemptionRules": [
    {
      "id": 2138,
      "pointsToRedeem": 100,
      "valueOfPoint": 25,
      "ruleType": "percentage_discount_settings",
      "coupon": {
        "couponType": "percentage_discount",
        "discountValue": 25,
        "product": {
          "productId": "<string>",
          "productName": "<string>",
          "variantId": "<string>",
          "variantName": "<string>",
          "productDisplayName": "<string>"
        },
        "collections": [
          {
            "collectionId": "455218036961",
            "collectionName": "Automated Collection"
          }
        ],
        "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": "Redemption Rule Name",
          "expiryAfter": 14,
          "usageLimit": 2,
          "capping": 50,
          "minOrderValue": 150,
          "codePrefix": "SUMMER",
          "redeemInstructions": "Enter the coupon code at checkout to apply the discount."
        }
      },
      "image": "https://s3.us-east-2.amazonaws.com/gameball.stg.uploads/uploads%2fClient_2933%2f936f65d8-e06d-4e28-b423-b5282999801bgameball.webp",
      "creationDate": "2025-02-10T10:12:16.783408",
      "isActive": true
    }
  ]
}

Redemption Configurations

This API retrieves the configurations and rules associated with how customers can redeem points for discounts, coupons, or other rewards.
Security: Requires apikey header.

Authorizations

apikey
string
header
required

Query Parameters

customerId
string

Unique identifier for the customer that you can reference across the customer's whole lifetime. Could be a database ID, random string, email or anything that uniquely identifies the customer. If provided, the API will return redemption configurations that match the customer based on various criteria, such as RFM, tiers, segments and specific customer attributes. This approach ensures that the redemption options are personalized and relevant to each customer's unique profile and engagement history.

Response

200 - application/json

Redemption configurations retrieved successfully

redemptionFactor
number

This factor indicates the value of each loyalty point in terms of currency, defining how many currency units can be obtained by redeeming points. Example: If the redemptionFactor is set to 0.1, this means that a customer can redeem 10 points for 1 USD.

Example:

0.1

redemptionRules
object[]

A list of redemption rules that define how points can be redeemed for discounts and coupons. Defines the rules for redeeming points, including points required, value of points, applicable coupons, and eligibility criteria. Example: a redemption rule may allow points to be redeemed for a free product, free shipping, percentage-based discounts, or fixed-amount discounts.