Open API – Account

bg-line

Account

/Account/GetKind

{
    "id":"userid"
}

Response

isAgent:bool

/Admin/CreateUser

{
    "id":"userid",
    "pw":"userpw",
    "username":"nickname",
    "email":"email", // Identifying data, such as user email or phone number
    "agentName":"" // Default to the called agent if the data is null or the agent to set does not exist or is not a subagent
    "platform":"" // Enter i only if you're an iOS user.
}

This API allows you to create accounts for users who want to play games in your club.

Response

none

/Admin/LoginUser

{
    "id":"userid",
    "pw":"userpw"
}

Create a DeepLink that you can sign in to using the User’s ID and Password. The user can launch the game with the DeepLink and the login is valid for 5 minutes.

Response

none

/Admin/UpdateUserPassword

{
    "id":"userid",
    "pw":"new password"
}

Response

none

/Admin/RestrainUser

{
    "id":"userid",
    "restrain":0 // 0 or 99
}

If you set the value of restrain to 99, the user will not be able to log in. If set to 0, it will be the normal state.

Response

none

/Admin/Logout

{
    "id":"userid"
}

You can log the user out immediately. Use it in conjunction with RestrainUser if your goal is to prevent a user from connecting.

Response

none

/Admin/LogoutAll

{
}

Response

none

/Admin/WithdrawUser

/Admin/CancelWithdrawUser

{
    "id":"userid"
}

Cancellation possible within 7 days after withdrawal

Response

none

/Account/List

{
}

Response

list:Array(User)

[User]
- isAgent:bool
- agentName:string
- id:string
- username:string

/Account/UserList

{
}

Response

userList:Array(AgentUser)

[AgentUser]
- agentName:string
- id:string
- username:string
- rakebackRate:decimal
- walletList:Array(WalletInfo)

[WalletInfo]
- symbol:string // Cryptocurrencies name, ex) USDT or SLOT
- point:decimal
- income:decimal // Unclaimed Rakeback

/Account/UserPoint

{
    "id":"userid",
}

Response

walletList:Array(WalletInfo)

[WalletInfo]
- symbol:string
- point:decimal
- income:decimal // Unclaimed Rakeback

/Account/AddUserPoint

/Account/SubtractUserPoint

{
    "id":"userid",
    "symbol":"USDT",
    "point":value // Points to add/subtract to a user
}

Response

before:decimal // Agent's points
after:decimal // Agent's points
transactionCode:decimal
user:User

[User]
- id:string
- username:string
- symbol:string
- before:decimal // User's points
- after:decimal // User's points

/Account/UserInfo

{
    "id":"userid"
}

Response

agentId:int // If that User is an Agent, the identity that exists
nickname:string
lastLoginDate:DateTime
rakebackRate:decimal
ticket:Array(TicketInfo)
wallet:Array(WalletInfo)
holdemHistoryList:Array(HoldemGameLog) // Last 10 games history
rakebackRate:decimal
defaultRakebackRate:decimal
rakeRate:decimal // Rake Rate set by the parent agent
isGeneratePin:bool
feeRate:decimal

[TicketInfo]
- type:string
- count:long

[WalletInfo]
- symbol:string
- point:decimal
- income:decimal // Unclaimed Rakeback

[HoldemGameLog]
- roomId:string
- gameIndex:int // The combination of the room number and game number represents a single game.
- transactionKey:string // Blockchain transaction keys
- gameResult:GameResult
- wrtime:DateTime
- playerLogs:Array(HoldemPlayerLog) // User logs for the game

[GameResult]
- isShowdown:bool
- cards:Array(string) // Community card, ? is an unopened

[HoldemPlayerLog]
- roomId:string
- gameIndex:int
- username:string
- betMoney:decimal // Total amount BET
- getMoney:decimal // Total amount WON
- seat:int
- blind:string // SB, BB
- cards:Array(string)
- cardHandRank:string
- ranking:int
- rake:decimal

/Account/CheckTransaction

{
    "transactionCode":(long)
}

Response

transactionCode:long
agentId:int
id:string // User's id
username:string // User's nickname
symbol:string
point:decimal
createDate:DateTime

/Account/GetPointHistory

{
    "id":"userid",
    "startTime":"", // format(UTC): yyyy-MM-dd HH:mm:ss
    "endTime":"", // format(UTC): yyyy-MM-dd HH:mm:ss
    "symbol":"USDT", // USDT or SLOT
    "page":1
}

The range of startTime and endTime cannot be more than one quarter, for example, January-March or April-June, and will not provide data older than one year.

Response

historyList:Array(History)

[History]
- id:string
- contents:string
- symbol:string
- sender:string
- value:decimal
- wrtime:DateTime
- transactionCode:long

/Account/SetUserRakebackRate

{
    "agentId":1234567, // If the Agent ID exists, change the Rakeback for all Users belonging to that Agent
    "id":"userid",
    "rakebackRate":value // ex) 0.03 = 3%
    "updateAgentUser": true or false
}

Response

parentAgentId:int
parentAgentNickname:string
parentAgentRake:decimal
changeList:UserInfo

[UserInfo]
-id:string
-username:string
-before:decimal
-after:decimal

/Account/FindIdFromEmail

{
    "email":"email"
}

Response

id:string
username:string

Account/ExchangePointToSlot

Account/ExchangeSlotToPoint

{
    "id":"userid"
    "symbol":"USDT"
    "point":100
}

Response

user:User
agentSymbol:WalletInfo
agentSlot:WalletInfo
symbolTransactionCode:long
slotTransactionCode:long

[User]
id:string
username:string
userSymbol:WalletInfo
userSlot:WalletInfo

[WalletInfo]
symbol:string
before:decimal
after:decimal

Account/AddUserTicket

Account/SubtractUserTicket

{
    "id":"userid",
    "type":"STT or RTT or CPWT", // STT="Special Tournament", RTT - "Royal Tournament", CPWT - "Crypto In Poker World Tournament" 
    "value":value // ex) 5
}

Response

user:User
before:long // Agent's Ticket count
after:long // Agent's Ticket count
transactionCode:long

[User]
- id:string
- username:string
- type:string
- before:long // User's Ticket count
- after:long // User's Ticket count

/Account/CheckTicketTransaction

{
    "transactionCode":123456789 // long type
}

If necessary, you can confirm that the transaction is complete.

Response

transactionCode:long
agentId:int
id:string
username:string
type:string
value:long
createDate:DateTime

/Account/GetTicketHistory

{
    "id":"userid",
    "startTime":"", // format(UTC): yyyy-MM-dd HH:mm:ss
    "endTime":"", // format(UTC): yyyy-MM-dd HH:mm:ss
    "type":""
}

Response

historyList:Array(History)

[History]
nickname:string
kind:string
type:string
value:long
wrtime:DateTime
transactionCode:long

/Account/GetDailyRakebackInfo

{
    "agentId":1234567, // Not required
    "startDate":"", // format(UTC): yyyy-MM-dd
    "endDate":"" // format(UTC): yyyy-MM-dd
    "symbol":"USDT" // Not required, if there is no value, all items
}

Requests rakeback information for the agent and rakeback information for its subagents.

Response

rakebackLog:Array(DailyRakebackInfo)

[DailyRakebackInfo]
childAgentId:int
childAgentUserId:string
date:DateTime
symbol:string
amount:decimal // Value(Rakeback)

/Account/GetDailyRakebackDetail

{
    "startDate":"", // format(UTC): yyyy-MM-dd
    "endDate":"", // format(UTC): yyyy-MM-dd
    "agentId":agentId, // The ID of the agent to get the information from, or if no value, the user log of the agent making this request.
    "userId":"userId" // The ID of the specific user to get the information from, and if no value, the full user log of the agent making this request.
    "symbol":"USDT" // Not required, if there is no value, all items
}

Response

detailList:DetailInfo

[DetailInfo]
seq:int
contents:string
roomId:string
gameIndex:int
symbol:string
userId:string
rakeback:decimal
wrtime:DateTime
parentAgentId:string

/Account/ChangeIncomePoint

{
    "id":"userid",
    "symbol":"USDT", // only USDT
}

Response

symbol:string
before:decimal
after:decimal

/Account/ChatList

{
    "id":"userid"
}

Response

list:Array(Chatting)

[Chatting]
- seq:long
- agentNickname:string
- clientNickname:string
- sender:string
- message:string
- wrtime:string

/Account/ChatSend

{
    "id":"userid",
    "message":"Hello"
}

Response

list:Chatting

[Chatting]
- seq:long
- agentNickname:string
- clientNickname:string
- sender:string
- message:string
- wrtime:string

/Account/ChatRemove

{
    "id":"userid",
    "seq":102
}

Response

/Account/ChatRemoveAll

{
    "id":"userid"
}

Response

none

/Account/Notice

{
}

Response

title:string
content:string

/Account/SetNotice

{
    "title":"hello!"
    "content":"so good!"
}

Response

title:string
content:string