12. ERROR HANDLING AND ERROR CODE

Operators should send the error response in the following format and data:

12.1 Error Response

Example
{
"error": true,
"code": 5000,
"message": "InvalidSession",
"detail": "Invalid Session",
}

12.2 Error Parameters

ParameterTypeDescription
errorBoolIndicates true or false
codeIntegerError Code
messageStringHuman readable error message.
detailsStringError Details

12.3 List of common error codes

CodeErrorDescription
5000InvalidSessionInvalidAccount.
1000InvalidAPIKeyInvalid API Key.
1001OperatorDisabledOperator is Disabled.
1002SiteDisabledOperator site is disabled.
1003TokenValidateErrorOperator Session validation Error
1004GameNotFoundGame Not Found.
1005GameLaunchErrorGame Launch Error.
1006TechnicalErrorGame Launch Error.
6006UnknownTransactionUnknown Transaction.
6007AlreadyRefundedAlready Refunded.
6008UnknownProviderUnknown Provider.
6009InvalidProviderInvalid Provider.
6010UnknowProviderMethodUnknow Provider Method.
6011InvalidAccountInvalid Account id.
5011InvalidHashInvalid Hash.
6001InsufficientBalanceInsufficient Balance
6012BonusNotFoundBonus Not Found
6031BonusEngineDisabledSiteBonus engine disabled for site.
6031ApikeySiteIDMismatchAPI KEY and Site ID Mismatch
6032IdentityNotFoundIdentity details not found.