Results
Possible results are:
Ok- everything is OkBadAmount- amount is either less than or equal to zeroBadCurrency- the currency you specified is not permitted to be used in this requestBadFormat- message format is bad. It could be an invalid javascript, or types are wrong, or not all fields are sane.ActionNotFound- the action you have requested is absent. Check spelling.NoSuchUser- userID is wrong, or user became inactiveNotRegistered- your app is not yet registered. You must request access to this feature separately.InvalidCode- authorization code is incorrectNoSuchOperation- requested operation not existsTryAgain- if we have some technical difficulties, or bug and are willing for you to repeat requestAuthorizationFailed- some field of transaction is bad or confirmation code is wrongInsufficientFunds- the player or application balance is insufficientLevelIsLow- the player is not a high enough level to do this actionNotInGuild- the player is not in implied guildNoOffersFoundByPrice- there are no offers on the market or the price is too low. Are you sure you need theexactPriceparameter?UserIsBusy- the player is busy with something that prevents him to execute requested actionBattleIsNear- if you look at the clock there are only a few minutes left before the battle
Reactive Payloads
These errors should have some kind of system reacting to the message
InvalidToken- no such token, might be revoked?
{
"result": "InvalidToken",
"payload": {
"token": "123abc"
}
}
Forbidden- Your app has no rights to execute this action with this token. Payload will containrequiredOperationfield. We encourage you to use this field in followingauthAdditionalOperation, instead of enumerating existing ones
{
"result": "Forbidden",
"payload": {
"requiredOperation": "Operation", //arbitrary string that is used to refer to the permission.
"userId": 221846144
}
}