# 5. Service Respond Code

# 5.1 Member Authen

Parameter Description
10001 Invalid Username or Password.

# 5.2 Token

Parameter Description
500 Unauthorized.
501 Your position is not available for use with this function.
503 Invalid access token.
5001 This token has already been replaced.

# 5.3 System

Parameter Description
999 DATABASE ERROR PLEASE TRY AGAIN.
11000 E11000 duplicate key error collection (สร้างซ้ำไอดีเดิม).
11001 required error.
11002 CastError.

# 5.4 Validator

Parameter Description
991 Bet exceeds table limit.
992 This position can use only one currency.
993 invalid bet limit id.
994 invalid bet limit parameter please input bet limit more than 1 but not more than 6 value.
995 invalid currency.
996 Invalid input filed with special characters.
997 invalid input format.
998 missing filed.

# 5.5 Caculator

Parameter Description
801 Insufficient balance.
802 Amount of position tracking exceeds the amount available.

# 5.6 Seamless API

Parameter Description
71001 missing filed 'agentUsername'.
71002 missing filed 'agentApiKey'.
71003 Invalid agentUsername or apiKey.
71004 Invalid agentUsername or apiKey.
71005 playerUsername must be between 4 and 24 characters long", error_filed:"playerUsername".
71006 username must not contain any special characters and can only contain letters a-z and numbers 0-9.
71007 invalid bet limit id.
71008 System detects double request bets. Please wait 1 minute to proceed again.
71009 Bet below the limit.
71010 Bet more than the limit.
71011 Game ID not found.
71012 No more bets.
71013 Up line amount is not enough to accept your bet. Please contact your up line.
71014 Invalid request body.
71015 Can request up to 5 times per minute.
71016 Can request up to 15 times per minute.
71017 Can request up to 30 times per minute.
71018 missing filed 'startDate'.
71019 missing filed 'endDate'.
71020 Invalid filed 'startDate'.
71021 Invalid filed 'endDate'.
71022 missing filed 'ref'.
71023 Ref not found.
71024 Can't bet Big and Small in games 40 and above.
911008 Player not found.
911009 ip not allowed to connect to this api server.

# 5.7 Service Response

Parameter Description
0 Bet successfully placed.
911001 Insufficient balance.
911002 Account is Suspend.
911004 Session expired.
911005 Bet failed. Please try again.
911006 The game is under maintenance.
911007 You are not allowed to play this game.
911008 Player not found.
911009 Bad parameters.
911010 Account is locked.