Calculate Payment Cashback
Changed onThis API calculates the cashback points to be rewarded for a specific payment in Gameball, based on provided payment details. It considers configured cashback rules and customer eligibility.
Security: Requires apiKey header.
Channel Merging Available: If your system uses different customer IDs across multiple channels (e.g., online and offline), Gameball's channel merging feature helps unify customer profiles. By including the customer's mobile number or email (based on your merging configuration) with each request, Gameball will combine activities into a single profile.
Important: This API calculates the expected cashback points but does not perform any actual reward or action for the customer.
Request
- Base URL: https://api.gameball.co
- URL: https://api.gameball.co/api/v4.0/integrations/payments/cashback
- Auth: API key in header apikey
Request body
Example request
{
"customerId": "cust456",
"email": "john.doe@example.com",
"mobile": "+1234567890",
"totalPaid": 100,
"totalAmount": 120,
"totalDiscount": 20,
"totalProcessingFees": 10,
"totalTax": 10,
"paymentDetails": [
{
"serviceId": "s_1234",
"serviceName": "Vodafone Topup",
"serviceProvider": "Vodafone",
"amount": 100,
"tax": 10,
"discount": 20,
"tags": [
"Telecom",
"Topup"
],
"category": [
"Telecom Topup"
],
"extra": {}
}
],
"merchant": {
"uniqueId": "MERCH001",
"name": "TechGadgetStore",
"branch": {
"uniqueId": "BRANCH001",
"name": "Downtown Branch"
}
}
}Response
Cashback calculated successfully
Example response
{
"totalPoints": 19000,
"paymentDetails": [
{
"serviceId": "s_1234",
"quantity": 1,
"totalDecimalPoints": 15000,
"totalPoints": 15000,
"rewardWalletFactor": 20,
"campaignId": 2149,
"campaignName": "5x Points Campaign",
"campaignEndDate": "2024-11-01T08:39:00",
"campaignImpactWalletFactor": 5,
"campaignImpactPoints": 12000
}
]
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking