OTP

This Endpoint is specific for accounts which requires OTP to proceed with some specific operations (i.e. Redeem Transaction Endpoint)

To use this endpoint, you need to make sure that your account has OTP configuration enabled. In addition to the OTP configuration, you need to make sure that your SMS configurations are set and enabled.

Upon enabling this endpoint, some endpoints may require additional parameter (otp) in order to validate the payload sent.

mobile or email should be sent along with the playerUniqueId in case (only if) your account supports channel merging.

POST - OTP

https://api.gameball.co/api/v3.0/integrations/otp

Request

Body

Sample Request Body (With amount)

{
   "playerUniqueId":"player456",
   "amount": 20,
}

Sample Request Body (With points)

{
   "playerUniqueId":"player456",
   "points": 20,
}

Sample Request Body (With ruleId)

{
   "playerUniqueId":"player456",
   "ruleId": 123,
}

Sample Response

{
    "code": 1,
    "message": "Process Completed Successfully"
}

Usage Example

The example shown is a request sent to Gameball to generate an OTP to your customer as per your SMS configurations.

curl -X POST -H 'apiKey: 807b041b7d35425988e354e1f6bce186' \
-H 'secretKey: klmb041b7d354259l3u4ft35e1q2r3703' -d 
 '{
   "playerUniqueId":"player456",
   "amount": 20
  }' -v -i 
'https://api.gameball.co/api/v3.0/integrations/otp'