Skip to main content

Error Handling

In case of errors platform should respond with json containing details on error.

Error response example

https://stg.otkgaming.com
{
"code" : "invalid.externalToken",
"message" : "External token is invalid or expired"
}

Property NameDescriptioTypeNotes
codeerror code identifierstringyou can find important error codes list in sections below
messagehuman readable error messagetext

Error codes

Below you can find a list of important error codes that can be returned in error response

CodeMessageDescriptionNotes
invalid.externalTokenExternal token is invalid or expiredreturned when session token passed in request is expired or wrongcan happen only in playerInfo/placeBet/bet calls
insufficient.balanceInsufficient player balancereturned when there is not enough balance to perform an actioncan happen only in bet
transaction.already.existsDouplicate transactionreturned when the transaction already existscan happen in bet or win
transaction.already.cancelledAlready cancelledreturned when the transaction already has been cancelledcan happen in bet or win
invalid.transaction.idUnexpected transaction idreturned for unknown transaction
failuremessage:must not be blankreturned for any other failures that are not listed above