Test User Registration
This method creates an account for a player. The account is temporary and incomplete. If the player logs in to an incomplete account, they are automatically redirected to step 2 to complete their registration. use gateway.[msdomain] Parameter signOptOut required only for Malta or UK regulated brands
Request (POST)
/gateway/registration-test-user/{version}/{brand_id}
{
"emailVerified": true,
"withdrawalAllowedDepositAllowed": true,
"bonusOptOut": 0,
"userBlocked": true,
"operator": "string",
"stepOne": {
"loginName": "string",
"email": "string",
"password": "stringst",
"over18": true,
"signTNC": true,
"signOptOut": true,
"language": "en",
"btag": "string",
"bonusCode": "string",
"currency": "EUR",
"aff_extra_param": "string"
},
"stepTwo": {
"auth_token": "string",
"firstName": "string",
"lastName": "string",
"birthDate": "string",
"gender": "string",
"language": "en",
"country": "string",
"city": "string",
"address": "string",
"zipCode": "string",
"mobileNumber": "39-34535345",
"uuid": "string"
}
}Parameters:
| 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. |
| emailVerified | body | string | true | Indication if to set email as verified or not. |
| withdrawalAllowedDepositAllowed | body | string | true | Indication if the player can deposit/withdraw. |
| bonusOptOut | body | string | true | Indication if the player can accept bonuses or not. |
| userBlocked | body | string | true | Indication if the player will be blocked. |
| stepOne.loginName | body | string | true | Player chosen username for site. |
| stepOne.email | body | string | true | Player personal email. |
| stepOne.password | body | string | true | Player password to login with. |
| stepOne.over18 | body | boolean | true | Player confirmation he is over 18. |
| stepOne.signTNC | body | boolean | true | Player confirmation he has read and accept TnC and Privacy policy. |
| stepOne.signOptOut | body | boolean | false | Player notification if he does not want any notification via: chat/sms/chat. |
| stepOne.language | body | string | true | Player chosen language, this will be the language player receives mails in. |
| stepOne.btag | body | string | true | Affiliation system reference. |
| stepOne.bonusCode | body | string | false | Promotion code which will determine bonuses to give. |
| stepOne.currency | body | string | true | Player currency to use in site. |
| stepTwo.firstName | body | string | true | Player first name. |
| stepTwo.lastName | body | string | true | Player last name. |
| stepTwo.birthdate | body | boolean | true | Player date of birth, should be in format of: DD/MM/YYYY. |
| stepTwo.language | body | boolean | true | Language to use on site. |
| stepTwo.country | body | boolean | true | Player country. |
| stepTwo.city | body | string | true | Player city. |
| stepTwo.address | body | string | true | Player address. |
| stepTwo.zipCode | body | string | true | Player address zip postal code. |
| stepTwo.mobileNumber | body | string | true | Player mobile number, should contain country code prefix + number (XX-YYYYYY). |
| stepTwo.uuid | body | string | true | TMX validation param. |
Response
Status 200 The response to a successful result contains an
OKstring with theauth_tokenthat you need to use in the * Register Player - Step 2* call.
{
"auth_token": "32fc6f4e-6a54-4807-8988-9911cb2aff92",
"result": "OK"
}Status 400
{
"errMsg": "invalid input - invalid brand id"
}Status 401
{
"authToken": "null",
"result": [
{
"field": "null",
"errorCode": "Internal_server_error"
}
]
}The bonus code provided doesn’t exist in the system.
{
"field": "bonusCode",
"errorCode": "invalid_bonus_code"
}If you receive a 422 error code for an Unprocessable Entity error, the client should not use the Message Format method to send a request to the server, but use its internal logic to present the message for one or more fields that didn’t pass the validation.
When a 422 validation error occurs, the response returns an array of one or more error codes detailing the fields that have validation errors. Multiple error messages are issued in the same validation form. The site should handle these validation errors and present a validation message to the player.
This will not call the message format.
The following table explains validation code behavior:
| Field | Error Code | Description |
|---|---|---|
| loginName | login_required | A login name is required. |
| loginName | login_already_exists | A user with this name already exists. |
| loginName | login_not_enough_char | The user name must contain at least 6 characters. |
| loginName | login_long | the login name must not exceed 15 characters. |
| loginName | login_invalid_char | |
| email_required | An email address is required. | |
| email_syntax_error | The email syntax is wrong. Format is aaa@bbb.ccc. | |
| email_fraud | The mail domain will be checked against a fraud list (test players qqtst_ will not be checked). | |
| email_already_exists | Email already exists. | |
| password | password_short | The password is too short. It must have at least 8 characters, including a combination of digits and letters. It should also contain at least 4 different characters. |
| password | password_long | Password cannot exceed 15 characters. |
| password | password_match_user_name | Password must be different from the email and username. |
| password | password_same_letters | Password has too many repeating characters. It must have at least 8 characters, including a combination of digits and letters. It should also contain at least 4 different characters. |
| password | password_mix_characters | The password must have a combination of letters and digits. |
| bonusCode | invalid_bonus_code | The bonus code doesn’t exist in the system. |
| over18 | over_18 | The user didn’t mark the “over 18” field and/or sign the T&C. |
| currency | currency_unknown | The currency provided is unknown. |
| genericError | generic_error | The language provided is invalid. |
{
"auth_token": null,
"result": [
{
"field": "loginName",
"errorCode": "login_already_exists"
},
{
"field": "email",
"errorCode": "email_already_exists"
},
{
"field": "currency",
"errorCode": "currency_unknown"
}
]
}Status 500
{
"result": "internal server error"
}Response Parameters:
| Name | Description |
|---|---|
| auth_token | UUID to be used when sending registration step two requst. |