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
Request
Header
Attribute | Type | Required | Description |
---|---|---|---|
| string | Yes | Client API key |
| string | Yes | Client Secret key |
Body
Attribute | Type | Required | Description |
---|---|---|---|
| string | Yes | Unique identifier for the customer in your database. |
| string | No | Customer's unique mobile number. (Sent in case your account supports channel merging) |
| string | No | Customer's unique email. (Sent in case your account supports channel merging) |
| number | No | Monetary value in your system currency to be redeemed. Note: - Amount must be positive. - If this field is set, then the the other fields value should be null. Also, all fields couldn't be null. |
| number | No | Points to be held from the customer points balance on Gameball. Note: - Points must be positive. - If this field is set, then the the other fields value should be null. Also, all fields couldn't be null. |
| number | No | Redemption rule to be held from the customer points balance on Gameball. Note: - If this field is set, then the the other fields value should be null. Also, all fields couldn't be null. |
Sample Request Body (With amount)
Sample Request Body (With points)
Sample Request Body (With ruleId)
Sample Response
Usage Example
The example shown is a request sent to Gameball to generate an OTP to your customer as per your SMS configurations.
Last updated