logo
API REFERENCE

Main API

Required HTTP Headers

All HTTP requests related to API must include the following HTTP headers.

NameValueExample
AuthorizationBearer {API_TOKEN} Authorization: Bearer ed45553e-1702-4342-a70d-09bf7ff7f568
Acceptapplication/jsonAccept: application/json
Content-Typeapplication/jsonContent-Type: application/json

Language Codes

The SlotCity API currently supports the following languages.

Value Code Language
1 en English
2 ko Korean
3 th Thai
4 es Spanish
5 ja Japanese
6 pt Portuguese
7 tr Turkish
8 de German
9 id Indonesian
10 ms Malay
11 zh Chinese

Transaction Types

All bets and wins in the game are recorded as transactions.

Even if there is no win, a Win(2) transaction with a value of 0 will still occur.

If an error occurs while processing a Bet(1) transaction using the callback URL, a BetCancel(16) transaction will be triggered, and the bet amount will be refunded.

Below are the transaction types returned by the API.

Value Transaction Description
1 Bet Betting
16 BetCancel Cancel Betting
2 Win Winning
32 BonusCall Bonus-Call Winning
4 Deposit Point Deposit
8 Withdraw Point Withdraw

To manage server load, transactions made two days before the maintenance period will be automatically deleted.

Provider Maintenance

When the game provider enters maintenance mode, the status Maintenance(2) is returned.

If you try to access the game during maintenance, the response code UNDER_MAINTENANCE(1) is returned.

Below are the provider and game statuses returned by the API.

Value Status Description
1 Normal On normal
2 Maintenance On maintenance

API Response Codes

Below are the response codes returned when calling the API.

CodeValueDescription
OK0Success
UNDER_MAINTENANCE1On maintenance
INTERNAL_SERVER_ERROR1001Internal server error
VALIDATION_ERROR1002Request data format error
SERVICE_EXCEPTION1003Service exception occurred
TOKEN_NOT_FOUND1007Authentication token not found
TOKEN_INVALID1009Authentication token invalid
PERMISSION_ERROR1010No access
PROVIDER_ERROR1011Provider error
PARAMETERS_INVALID1012Parameters invalid
CALLBACK_ERROR1015Callback error (Callback API error log needs to be checked)
SERVER_IS_BUSY1018Server load error (concurrent call limit exceeded)
IP_NOT_ALLOWED1020Not allowed IP
AGENT_NOT_FOUND2001Agent information not found
USER_NOT_FOUND2002User information not found
GAME_NOT_FOUND2003Game information not found
POINT_NOT_ENOUGH2005Insufficient agent point balance
BALANCE_NOT_ENOUGH2006Insufficient user point balance
PROVIDER_NOT_FOUND2007Provider information not found
BONUSCALL_DOUBLE2011Already bonus call is running
BONUSCALL_ALEADY_ENDED2012Already bonus call is ended
ROUND_NOT_FOUND2013Round information not found
CURRENCY_NOT_SUPPORTED2014Currency is not supported

Last updated 1 year ago