What Does This Integration Do?
Instead of using Gameball’s native coupon engine, Gameball can send a real-time HTTP request to your system when:- A customer redeems points for a coupon reward
- A customer completes a campaign and earns a coupon

Supported Use Cases
Flow: How Gameball Communicates With Your System
Customer initiates a redemption (or completes a campaign)
Gameball sends a POST request to your specified endpoint
Your system generates the coupon and returns the code
Gameball shows the code to the user in their profile or reward message
Customer copies/pastes the code at checkout on your store
Implementation Guide
Step-by-Step Integration Flow
Step 1: Configure Gameball to Call Your Endpoint

Step 2: Configure via API (Optional)
You can configure this directly via API: API: PUT /api/v4.0/integrations/configurations/coupon APIKey: YOUR_API_KEY SecretKey: YOUR_SECRET_KEY Content-Type: application/jsonStep 3: Build Your Coupon Creation Endpoint
This is your own API that Gameball will call. Example (Node.js):Step 4: Test the Connection
Coupon Redemption Flows
Gameball supports two primary coupon generation flows, both of which work with either the Gameball widget or your custom UI.1. Manual Coupon Redemption
Overview
Step-by-Step: Widget-Based Manual Redemption
Step 1: Customer opens the widget → Gameball displays points balance and redemption options.


Step-by-Step: Custom UI Manual Redemption
Step 1: Fetch Redemption Options GET /redemption-configs
2. Campaign-Based Coupon Rewards
- Gameball Widget
- Custom UI

Step-by-Step: Widget Campaign Flow
- Gameball displays the coupon in real-time once earned from a campaign.
- No API integration needed to show it.
- At checkout, use POST /order as shown earlier.
