Email 2fa Endpoints
- Player withdraws with 2fa enabled Withdraw
- Player sends the 2fa code to validate it Validate 2fa
- The player can resend code if needed Resend 2fa
Endpoint that is used to send code to player, part of the verification of the player.
/gateway/player-data/{version}/send/code/{brand_id}{
"auth_type": "email"
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | string | true | The API version to use. |
| brand_id | path | int | true | The ID of the casino. If a brand_id is not provided, all message formats will be fetched from default storage. |
| x-auth-token | header | string | true | Player login session. |
| request-id | header | string | true | the request id, which will be received in the response of withdraw process API. |
Status 200
200 Response
{
"status": "Success",
"data": {
}
}Status 400
{
"errMsg": "invalid input - invalid brand id"
}Status 401
{
"errMsg": "invalid input - invalid token"
}Status 429
{
"errMsg": "too many requests"
}Status 500
{
"result": "internal server error"
}/gateway/player-data/{version}/validate/code/{brand_id}{
"auth_type": "email",
"code": "123456"
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | string | true | The API version to use. |
| brand_id | path | int | true | The ID of the casino. If a brand_id is not provided, all message formats will be fetched from default storage. |
| x-auth-token | header | string | true | Player login session. |
| request-id | header | string | true | the request id, which will be received in the response of withdraw process API. |
| code | body | string | true | received code from player. |
Status 200
200 Response
{
"status": "Success",
"data": {}
}Status 400
{
"errMsg": "invalid input - invalid brand id"
}Status 401
{
"errMsg": "invalid input - invalid token"
}Status 422 - this meanning that the code is not valid
{
"status": "Error",
"data": {
"success": "false"
}
}Status 429
{
"errMsg": "too many requests"
}Status 500
{
"result": "internal server error"
}