Skip to main content

What Are Collection-Based Earning Rules?

Collection-based earning rules define how cashback or points are calculated based on the product collections included in a customer’s order. Rather than applying a single earning rate to all products, you can configure specific reward rates per collection, for example, granting higher cashback on “T-Shirts” or “Skincare” items.

Why It Matters

This approach makes reward calculation more flexible and accurate, ensuring that loyalty earnings reflect your product structure and business priorities.
To configure Collection-Based earning rules on your dashboard; You can easily, from the left bar, navigate to Programs > Earn Points > View Collections, and then start adding for each collection it’s corresponding earning rule.

Examples of Collection Types

  • Evergreen collections: “T-Shirts,” “Accessories,” “Face Products”
  • Seasonal or promotional groups: “Holiday Bundles,” “Clearance Items”
Collection Nameex. Earning RuleHow It’s Used in Rewards
T-Shirts10% cashbackBoost earning on apparel basics to encourage higher basket size.
Premium Skincare8% cashbackReward premium items with a strong yet sustainable cashback rate.
AccessoriesDefault program rateUses the global earning rule when no collection-specific rule set.
Holiday Bundles3× pointsTemporary promo collection for seasonal or limited-time campaigns.

Important to Note !

When a collection is configured to have specific earning rates, Gameball must know which collection each product belongs to. If the collection data isn’t sent in the API payload, Gameball applies the default earning rule instead.
This means:
  • The product won’t qualify for the intended collection-specific reward.
  • Even if it technically belongs to that collection in your catalog.
This can affect customer experience, since customers may not receive the cashback value you planned for those product groups.

How to Implement It

When sending an order using the Track Order API, make sure to populate the lineItems array with detailed product data.
For each item, include its collection value so Gameball can correctly evaluate reward eligibility.
Adding collection data ensures Gameball matches each product to its relevant earning logic during evaluation.

Example

Here’s how your Track Order API payload should look:
{
  "customerId": "12345",
  "orderId": "ORD-1001",
  "orderDate": "2025-10-16T13:06:34.967Z",
  "totalPaid": 1702.01,
  "lineItems": [
    {
      "productId": "TSH-001",
      "productName": "Classic T-Shirt",
      "quantity": 2,
      "price": 25,
      "collection": "T-Shirts"
    },
    {
      "productId": "SKN-010",
      "productName": "Premium Face Cream",
      "quantity": 1,
      "price": 120,
      "collection": "Premium Skincare"
    },
    {
      "productId": "ACC-008",
      "productName": "Basic Belt",
      "quantity": 1,
      "price": 20
      // No collection provided here
    }
  ],
  "channel": "web"
}
If a product belongs to a specific collection, include the collectionfield. If it’s omitted (as in the third item), only the default earning rule applies.

How Gameball Evaluates Collections

This section illustrates how Gameball evaluates products during a transaction when different collection earning rules are in play.
The collection-based earning rule applies a 10% cashback rate to all products in the “T-Shirts” collection.Since each T-Shirt costs $25, Gameball calculates cashback as follows:
$25 × 2 × 10% = $5 cashback
All items in the same collection share the same earning rule, so the total cashback for this product line equals the total spend multiplied by the collection’s cashback rate.
The “Premium Skincare” collection has its own earning rule, offering 8% cashback on all qualifying purchases.Since this product costs $120, Gameball calculates cashback as follows:
$120 × 8% = $9.60 cashback
Each collection can have a distinct cashback rate, allowing products from different collections to be evaluated independently without any overlap or conflict in reward calculation.
When no collection information is provided, Gameball applies the default cashback rate to the product.Even if the product technically belongs to a defined collection in your catalog, it will not inherit that collection’s cashback rate unless the collection value is included in the request.This ensures that only products explicitly linked to a collection receive their corresponding cashback rules.
To ensure cashback is calculated accurately, always include the collection field in your order or item payloads. This allows Gameball to evaluate the correct earning rules for each product and apply the appropriate cashback rate.

Key Takeaway

Whenever you use collection-based earning rules, make sure each product’s collection value is included in the order payload.
It’s a small but crucial detail that ensures:
  • Accurate cashback calculation: each product earns the correct cashback rate based on its collection.
  • Reliable performance tracking: cashback results accurately reflect customer purchases across collections.
  • A smoother, fairer loyalty experience: customers receive rewards that match the value of what they bought.