Redeem Points
Enable customers to redeem their earned points for discounts or rewards inside your Android application. Redemption always follows a backend-validated flow to ensure accuracy, prevent fraud, and guarantee correct point deductions.For a full end-to-end explanation of redemption logic, validation, flows, and backend responsibilities, see the Redemption Integration Tutorial.
How Redemption Works
1
Check Customer Balance
Fetch the customer’s available and pending points to determine whether redemption is allowed.
2
Customer Initiates Redemption
The customer taps a “Redeem” action in your app (checkout, cart, wallet screen, etc.).
3
Backend Performs Validation
Your backend validates eligibility and calls the Gameball Redeem API to create a redemption transaction.
4
Apply Discount & Update UI
Your backend returns the final result (approved or rejected), then the app updates the UI accordingly.
1. Get Customer Points Balance
Use the Android SDK to retrieve the customer’s balance before initiating any redemption.2. Backend-Validated Redemption (Required)
All redemption actions must be performed through your backend. Your backend must:- Verify the customer has sufficient available points
- Call the Redeem API
- Apply the resulting discount or credit to the order, if applicable
- Return the success/failure response to the Android app
3. Trigger Redemption from Your Android App
4. E-Commerce Checkout Redemption
For checkout scenarios, redemption is typically embedded inside the Order API payload. This lets you apply both:- The redeemed points
- The resulting discount value
Example:
This method is ideal for e-commerce flows where redemption happens at checkout.
Your backend should pass the calculated redeemed points and discount amount into this request.
Your backend should pass the calculated redeemed points and discount amount into this request.
Summary of When to Use What
Wallet Redemption (Standalone)
Use when the user redeems points outside checkout
→ You must call the Redeem API from your backend.
→ You must call the Redeem API from your backend.
Checkout Redemption (Order API)
Use when redemption is applied directly to an order during checkout
→ Pass
→ Pass
redeemedPoints + discountAmount inside OrderRequest.