Basic Details Registration
This method creates an player account while providing minimal information.
Request (POST)
/gateway/basic-details-reg/{version}/{brand_id}
The following call uses same but it is deprecated:
/gateway/extended-short-reg/{version}/{brand_id}
{
"loginName": "string",
"password": "stringst",
"email": "string",
"over18": true,
"signTNC": true,
"language": "en",
"currency": "EUR",
"bonusCode": "string",
"btag": "string",
"uuid": "102d7d3834f4694ef00662"
}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. |
| loginName | body | string | true | Player user name to login with, user will be considered as test account if it has ‘qqtst_’ prefix. |
| body | string | true | Player personal email. | |
| password | body | string | true | Player password to login with. |
| over18 | body | boolean | true | Player confirmation he is over 18. |
| signTNC | body | boolean | true | Player confirmation he has read and accept TnC and Privacy policy. |
| language | body | string | true | Player chosen language, this will be the language player receives mails in. |
| btag | body | string | true | Affiliation system reference. |
| bonusCode | body | string | false | Promotion code which will determine bonuses to give. |
| currency | body | string | true | Player currency to use in site. |
Response
Status 200
{
"message": "",
"result": "OK",
"auth_token": "token123",
"authToken": null,
"player_id": 123
}Status 400
{
"message": "malformed_request",
"result": "malformed_request",
"auth_token": "null",
"authToken": "null"
}Status 401
{
"message": "",
"result": "malformed_token",
"auth_token": "null",
"authToken": "null"
}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. |
| player_id | unique id for the generated player. |