Retrieve Promotions
Retrieving a customer’s available promotions allows your platform to display active offers, personalized deals, or rewards-based discounts in real time.This API lets you showcase ongoing promotions directly within your storefront, mobile app, or POS system, empowering customers to redeem their offers at checkout.
Overview
The Get Customer Coupons API returns all promotions assigned to a customer, including both active and expired ones. Each promotion includes details such as:- 🏷️ Promotion name and type
- 💰 Discount value or benefit
- 📅 Expiry date and status
- 🎯 Eligibility and usage limits
Important: Filtering Is Done on Your End
Gameball’s Promo Engine returns all promotions associated with the customer — whether they’re active, expired, or already used.To show only the valid ones, you’ll need to filter them on your side using the attributes provided in the API response.
When to Use It
Example Scenario: Showing Promotions in Checkout
When a customer signs in, your system can fetch all available promotions from Gameball and display those that are currently active and usable.1
Fetch promotions
Call the Get Customer Coupons API using the customer’s
customerId2
Filter the response
Use the metadata flags (
isExpired,isActive, isAvailableToUse) to filter out inactive or used promotions.3
Display in the UI
Show filtered, valid promotions so customers can easily apply them at checkout.
Example Request
Example Response
Filtering Logic Example
You can apply simple client-side filtering to show only the promotions available for redemption:Optionally, group promotions by state, for example: Active, Used, and Expired, to create a cleaner user experience.
Key Takeaways
Related Resources
Get Customer Coupons API
Retrieve promotions linked to a customer profile
Automatic Promos Tutorial
Apply eligible promotions automatically at checkout
Burn Promo Tutorial
Finalize promotions after order success
Coupon Entity Reference
Review metadata shared between coupons and promos