Calculate expected cashback points for a payment (no reward applied).
apikey header.Unique identifier for the customer that you can reference across the customer's whole lifetime. Could be a database ID, random string, email or anything that uniquely identifies the customer. If provided, the cashback calculation will consider the customer's tier. Special tier-based configurations, such as enhanced point accrual rates, may affect the points calculation.
"cust456"
Customer's email address. Note: This is required if your account uses email-based channel merging.
"john.doe@example.com"
Customer's mobile number. Note: This is required if your account uses mobile-based channel merging.
"+1234567890"
The actual amount paid by the customer for the payment, accounting for any discounts or coupons applied. Unlike totalAmount, which reflects the original cost of the payment, totalPaid represents the final amount the customer paid after all adjustments. This value is used for reward calculations in Gameball to determine the points or benefits earned from the payment. Example: A customer makes a bill payment for their electricity bill of $120, including taxes and processing fees. If a $20 coupon is applied, the totalPaid becomes $100, reflecting the discounted amount the customer paid.
100
The total cost of the payment, including all item prices, processing fees, and taxes. This value does not account for any discounts or coupons applied and is not used for calculations in Gameball; it is solely saved as historical data linked to the payment. Must be a positive value.
120
Total discount applied to the payment. Must be positive.
x >= 020
Total processing fees associated with the payment.
10
Total tax amount for the payment.
10
An array containing details about each service in the payment. If not provided, the calculation will only consider the total payment values.
Details about the specific merchant involved in the payment, particularly useful for businesses managing multiple merchants or branches under the same Gameball account.
Cashback calculated successfully