Retrieve the Balance
Call the Get Customer Balance API as soon as the customer is identified, passing theircustomerId:
Fields to Display
number
Points the customer can redeem immediately.
number
Monetary equivalent of the available points, in the account currency.
number
Points earned but not yet confirmed (and therefore not yet redeemable).
number
Number of points expiring next. Pair with
nextExpiringPointsDate to prompt urgency.string
Date the next batch of points expires.
Behind the scenes, Gameball returns the most up-to-date view of the customer’s reward profile, calculating point values along with any pending or expiring balances.
Tips & Gotchas
- Always retrieve the balance before enabling redemption or prompting for point usage.
- Display both the numeric balance and its monetary equivalent (
availablePointsValue). - Use
nextExpiringPointsDateandnextExpiringPointsValueto drive customer-facing urgency. - Rely on real-time calls. Only add caching if you’re explicitly controlling refresh timing.