> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gameball.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Cashback Configurations

> Retrieve cashback configuration settings for the loyalty program.

## Cashback Configurations

This API call retrieves your cashback configurations, providing essential details about how cashback rewards are structured and managed in Gameball. If the customerId is provided, the API will return any special cashback rules associated with the customer's tier, including potential bonuses or customized reward factors specific to that customer.

<Info>
  **Security:** Requires **apikey** header.
</Info>


## OpenAPI

````yaml GET /api/v4.0/integrations/configurations/cashback
openapi: 3.1.0
info:
  title: Gameball API
  description: >-
    Gameball REST API v4.0 - Complete API reference for integrating loyalty,
    gamification, and customer engagement features
  version: 4.0.0
servers:
  - url: https://api.gameball.co
security:
  - bearerAuth: []
paths:
  /api/v4.0/integrations/configurations/cashback:
    get:
      description: >-
        This API call retrieves your cashback configurations, providing
        essential details about how cashback rewards are structured and managed
        in Gameball. If the customerId is provided, the API will return any
        special cashback rules associated with the customer's tier, including
        potential bonuses or customized reward factors specific to that
        customer.
      parameters:
        - name: customerId
          in: query
          description: >-
            Unique identifier for the customer that you can reference across the
            customer's whole lifetime. Could be database ID, random string,
            email or anything that uniquely identifies the customer. If
            provided, the response will return the cashback rules specific to
            this customer's tier, reflecting any special configurations or
            bonuses this customer is eligible for based on their tier cashback
            rules.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Cashback configurations retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  defaultCashbackRule:
                    type: object
                    description: >-
                      The default cashback rule applied to all customers if no
                      tier-specific rules are available.
                    properties:
                      amountRewardThreshold:
                        type: number
                        description: >-
                          The minimum amount that must be spent by the customer
                          to qualify for a cashback reward. Transactions below
                          this threshold will not earn any cashback,
                          incentivizing higher spending. Example: If the
                          amountRewardThreshold is set to $50, a customer must
                          spend at least $50 to be eligible for cashback
                          rewards.
                        example: 1
                      rewardWalletFactor:
                        type: number
                        description: >-
                          The factor used to calculate the amount of loyalty
                          points added to the customer's wallet based on the
                          cashback amount earned from transactions. This factor
                          determines how many points customers receive relative
                          to the cashback they earn. Example: If a customer
                          receives $10 in cashback and the rewardWalletFactor is
                          2, the customer will earn 20 loyalty points (2 times
                          the cashback amount).
                        example: 1
                      rewardRankFactor:
                        type: number
                        description: >-
                          In case your tiering-up method is based on score, this
                          factor determines the score rewarded for each unit of
                          currency your customer spends. It directly impacts how
                          quickly customers can progress through tiers in your
                          loyalty program. Example: If the rewardRankFactor is
                          set to 2, the customer earns 2 score points for every
                          1 USD spent.
                        example: 1
                      rewardFactor:
                        type: number
                        description: >-
                          It is a calculated value that determines the reward a
                          customer earns relative to their spending. It
                          considers the AmountRewardThreshold (Minimum Amount
                          Required), RewardWalletFactor (Earning Rate), and
                          RedemptionFactor (Monetary Value of Points). Formula:
                          Reward Factor = (Amount Reward Threshold / Reward
                          Wallet Factor) × Redemption Factor × 100. This
                          indicates the percentage of what the customer earns as
                          a cashback reward based on their spendings.
                        example: 10
                  tierCashbackRules:
                    type: array
                    description: >-
                      A list of tier-specific cashback rules, which override the
                      default cashback rule for customers in a specific tier.
                    items:
                      type: object
                      properties:
                        tierName:
                          type: string
                          description: The name of the tier that has its own cashback rule.
                          example: Gold
                        amountRewardThreshold:
                          type: number
                          description: >-
                            The minimum amount that must be spent by the
                            customer to qualify for a cashback reward.
                            Transactions below this threshold will not earn any
                            cashback, incentivizing higher spending. Example: If
                            the amountRewardThreshold is set to $50, a customer
                            must spend at least $50 to be eligible for cashback
                            rewards.
                          example: 1
                        rewardWalletFactor:
                          type: number
                          description: >-
                            The factor used to calculate the amount of loyalty
                            points added to the customer's wallet based on the
                            cashback amount earned from transactions. This
                            factor determines how many points customers receive
                            relative to the cashback they earn. Example: If a
                            customer receives $10 in cashback and the
                            rewardWalletFactor is 2, the customer will earn 20
                            loyalty points (2 times the cashback amount).
                          example: 20
                        rewardRankFactor:
                          type: number
                          description: >-
                            In case your tiering-up method is based on score,
                            this factor determines the score rewarded for each
                            unit of currency your customer spends. It directly
                            impacts how quickly customers can progress through
                            tiers in your loyalty program. Example: If the
                            rewardRankFactor is set to 2, the customer earns 2
                            score points for every 1 USD spent.
                          example: 1
                        rewardFactor:
                          type: number
                          description: >-
                            It is a calculated value that determines the reward
                            a customer earns relative to their spending. It
                            considers the AmountRewardThreshold (Minimum Amount
                            Required), RewardWalletFactor (Earning Rate), and
                            RedemptionFactor (Monetary Value of Points).
                            Formula: Reward Factor = (Amount Reward Threshold /
                            Reward Wallet Factor) × Redemption Factor × 100.
                            This indicates the percentage of what the customer
                            earns as a cashback reward based on their spendings.
                          example: 0
      security:
        - apiKey: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKey:
      type: apiKey
      in: header
      name: apikey

````