Message Format
This method returns a lightbox format pop-up structure that you can use to format a message for the player.
If a server returns an error or informative message in addition to a standard HTTP code, it is represented as a formalized string tag. The client application can then use this method to format this string tag as a user-friendly message.
The available message formats that you can use with this method are returned in the responses to several other calls, including the following ones:
Create New Withdrawal Cancel Pending Withdrawal Check Withdrawal Requirements use gateway.[msdomain]
Request (GET)
/gateway/site-management/{version}/content/message/format/{message_string}
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | string | true | The API version to use. |
| message_string | path | string | true | The message format that you want to use. |
| brand_id | query | int | false | The ID of the casino. If a brand_id is not provided, all message formats will be fetched from default storage. |
Response
Status 200
{
"type": "Alert",
"title": "mobile.page.registration.headerStep1",
"content": "mobile.page.registration.fields.login.validators.userExists",
"button_1_text": "mobile.button.ok"
}Status 400
{
"errMsg": "Message Not Found according to your search"
}{
"errMsg": "invalid input - invalid brand id"
}Status 500
{
"errMsg": "internal server error"
}Response Parameters:
| Name | Type | Description |
|---|---|---|
| type | string | The type of the message. |
| title | string | The title to display for the message. |
| content | string | The content to display for the message. |
| button_X_text | string | where X will be incrementing number of buttons. |