This API enables customers to redeem loyalty points as a payment method in Gameball, allowing them to use points in place of monetary value during transactions. By providing details such as customerId and amount, this endpoint facilitates point-based redemptions within the purchase process.
Request body
Example request
{
"customerId": "cust_12345abc",
"email": "john.doe@example.com",
"mobile": "+1234567890",
"transactionId": "txn98765",
"transactionTime": "2024-10-11T10:57:43.382Z",
"amount": 10,
"hash": "HASH1234",
"otp": "123456",
"reason": "Discount on order #12345"
}Response
Points redeemed successfully
Example response
{
"customerId": "cust_12345abc",
"gameballTransactionId": "11034734",
"transactionId": "txn98765",
"redeemAmount": 10,
"redeemEquivalentPoints": 100,
"reason": "Discount on order #12345"
}Changes
Changed in 5 of the 38 revisions of this API.3221
- ○
added the new optional request property
reasonnew-optional-request-property
- ○
added the optional property
reasonto the response with the200statusresponse-optional-property-added
- ○
- ○
the endpoint scheme security
apiKey AND secretKeywas added to the APIapi-security-added
- ○
the endpoint scheme security
apiKeywas removed from the APIapi-security-removed
- ○
the endpoint scheme security
secretKeywas removed from the APIapi-security-removed
- ○
- ▲
added the new required request property
transactionTimenew-required-request-property
- ▲
the
pointsrequest property type/format changed fromnumber/tointeger/request-property-type-changed
- ●
removed the optional property
remainingPointsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
successfrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
amountnew-optional-request-property
- ○
added the new optional request property
emailnew-optional-request-property
- ○
added the new optional request property
hashnew-optional-request-property
- ○
added the new optional request property
holdReferencenew-optional-request-property
- ○
added the new optional request property
ignoreOTPnew-optional-request-property
- ○
added the new optional request property
merchantnew-optional-request-property
- ○
added the new optional request property
mobilenew-optional-request-property
- ○
added the new optional request property
otpnew-optional-request-property
- ○
the request property
pointsbecame optionalrequest-property-became-optional
- ○
removed the non-success response with the status
400response-non-success-status-removed
- ○
added the optional property
customerIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
gameballTransactionIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
redeemAmountto the response with the200statusresponse-optional-property-added
- ○
added the optional property
redeemEquivalentPointsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
transactionIdto the response with the200statusresponse-optional-property-added
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 38 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲