Quick Overview
| Scenario | Use Case | Key APIs |
|---|---|---|
| Basic Payment | Earn points on payment | POST /api/v4.0/integrations/payments |
| With Points Redemption | Redeem points at checkout | POST /api/v4.0/integrations/hold-points + POST /api/v4.0/integrations/payments |
| With Coupon Codes | Apply discount codes | POST /api/v4.0/integrations/coupons/{code}/validate + POST /api/v4.0/integrations/payments |
Each scenario outlines a practical process that focuses on customer interactions, ensuring they can easily navigate loyalty rewards, coupons, and promotions as they complete their payments.
1️⃣ Submitting a Payment
Let’s explore how the Payments API works, starting with what your customers experience and how their actions on your fintech platform interact with Gameball to trigger rewards and campaigns.Customer Journey
1
💳 Customer initiates payment
A customer, Sarah, visits your fintech platform and initiates a bill payment for her electricity bill.
2
💰 Customer completes payment
At checkout, she pays $120 for her electricity bill, including processing fees.
3
✅ Payment is confirmed
Sarah’s payment is confirmed and your system communicates with Gameball.
What Happens in the Background
The moment Sarah’s payment is completed, your platform communicates with Gameball through the Payments API. This triggers apayment_processed event in the background, sending details like:
💰 Payment Information
💰 Payment Information
Basic payment metadata including totals and timestamps:
🛍️ Services Paid
🛍️ Services Paid
Detailed service information for each item in the payment:
👤 Customer Information
👤 Customer Information
Customer identifier to link the payment to the right profile:
Gameball Processing
Once thepayment_processed event is triggered:
1
Payment data mapping
The Payments API automatically sends the payment details to Gameball, mapping your payment attributes to event metadata.
2
Campaign evaluation
Gameball evaluates the payment metadata based on your configured campaigns.
3
Rewards issued
Sarah earns rewards, such as cashback or loyalty points, based on your Gameball settings.
For example, if you’ve configured a rewards campaign for customers making their first payment, Sarah earns a $10 cashback reward.
Seamless Automation
✅ With Payments API
Automated & Integrated
- Auto reward triggering on payment
- No manual event creation needed
- Multi-module integration (cashback, campaigns)
- Real-time balance updates
- Instant payment-campaign linking
❌ Without Payments API
Manual & Fragmented
- Manual event creation required
- Complex multi-step tracking
- Disconnected workflows
- Delayed reward processing
- Error-prone data entry
- If Sarah qualifies for cashback, Gameball calculates the amount and updates her balance instantly and you can display it using the Get Customer Balance API.

This image showcases the Gameball widget displaying the customer’s balance. You can also retrieve the same information programmatically using the Get Customer Balance API for seamless integration with your application.
- If you’re sending payment-based notifications, Sarah might receive a message like: “Congratulations, Sarah! You’ve earned 100 points for your last payment.”
Customer Experience
Sarah’s experience remains smooth and rewarding:- She completes a payment without any extra steps
- She receives instant confirmation about her reward points or cashback, enhancing her satisfaction
- Over time, Sarah can redeem these points for discounts, keeping her engaged and loyal to your platform
Why This Matters
Seamless Customer ExperienceKeep customers engaged with rewards without adding friction to their payment journey.
Streamlined Internal ProcessesSave time with automatic data mapping and event creation—no manual work required.
Flexible Campaign TargetingTie specific payments or services to targeted campaigns, driving engagement effectively.
Related Payment Integrations
If you need to integrate points redemption or coupon codes with your payment submission, refer to these detailed guides:Points Redemption
Learn how to integrate points redemption during payment submission, including how to hold points and link them to payments.
Coupon Codes
Discover how to validate, lock, and apply coupon codes when customers make payments.
🚀 Payment vs Orders
Understanding when to use Payments API vs Orders API:| Aspect | Payments API | Orders API |
|---|---|---|
| Use Case | Bill payments, subscriptions, services | Product purchases, e-commerce |
| Structure | paymentDetails (services) | lineItems (products) |
| Industries | Fintech, SaaS, utilities | E-commerce, retail |
| Common Fields | serviceProvider, processingFees | sku, vendor, shipping |
Payments API is designed for non-commerce transactions like bill payments, subscription renewals, and service fees. Use the Orders API for e-commerce product purchases.