Calculate Limits
This method calculates one or more pending limits for a player. use gateway.[msdomain]
Request (POST)
/gateway/limits/{version}/player/limits/calculate/{brand_id}
Parameters:
{
"changed_by": "roman",
"uuid": "201608120826_1",
"loss": {
"time_frame": "day",
"new_amount": "200"
},
"bet": {
"time_frame": "week",
"new_amount": "1500"
},
"reality_check": "60_min"
}| 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 | path | string | true | Player login session. |
| uuid | body | string | true | unique reference. |
| X.time_frame | body | string | true | time frame for the chosen limit. |
| X.new_amount | body | string | true | amount for the chosen limit. |
| reality_check | body | string | true | period for the reality check. |
Response
Status 200
{
"loss": {
"effective_of": "now",
"time_frame": "day",
"amount": "200",
"amount_left": "150"
},
"bet": {
"effective_of": "2017-01-18 12:00",
"time_frame": "week",
"amount": "1500",
"amount_left": "1500"
},
"reality_check": "60_min"
}Status 400
{
"errMsg": "invalid input - invalid brand id"
}Status 401
{
"errMsg": "invalid input - invalid token"
}Status 500
{
"result": "internal server error"
}Response Parameters:
| Name | Description |
|---|---|
| effective_of | indication if limit will be effective immediately, or after some cool down. |
| time_frame | time frame for the chosen limit. |
| amount | amount for the chosen limit. |
| amount_left | amount left for the chosen limit. |