Login/Register User

Users needs to be registered and logged in CmsWager sportsbook to use their private areas, like place a bet or access to the bets list. The registration occurs at the first login

User Login.

POST https://testapi.cmswager.com/v1/user/login Content-Type application/json Parameters

Name
Type
Mandatory
Description

userId

integer

ID of the user on the client side

currency

string

The currency unit (EUR, USD etc.). For available currencies please see the specific section.

type

string

The user type ("player" or "shop")

groupId

long

Fill only if the user belong to a group. Useful only if the user group has custom settings

Example request:

{
    "userId": 123456,
    "currency": "USD",
    "type": "player",
    "groupId": 5632
}

Example response:

Response code 200

{
  "data": {
    "token": "sda5852dg9885s"
  },
  "isSuccess": true
}

Example Failure Response

Response code 406

Last updated