Results
Possible results are:
- Ok- everything is Ok
- BadAmount- amount is either less than or equal to zero
- BadCurrency- the currency you specified is not permitted to be used in this request
- BadFormat- 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 inactive
- NotRegistered- your app is not yet registered. You must request access to this feature separately.
- InvalidCode- authorization code is incorrect
- NoSuchOperation- requested operation not exists
- TryAgain- if we have some technical difficulties, or bug and are willing for you to repeat request
- AuthorizationFailed- some field of transaction is bad or confirmation code is wrong
- InsufficientFunds- the player or application balance is insufficient
- LevelIsLow- the player is not a high enough level to do this action
- NotInGuild- the player is not in implied guild
- NoOffersFoundByPrice- there are no offers on the market or the price is too low. Are you sure you need the- exactPriceparameter?
- UserIsBusy- the player is busy with something that prevents him to execute requested action
- BattleIsNear- 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 contain- requiredOperationfield. We encourage you to use this field in following- authAdditionalOperation, instead of enumerating existing ones
{
  "result": "Forbidden",
  "payload": {
    "requiredOperation": "Operation", //arbitrary string that is used to refer to the permission.
    "userId": 221846144
  }
}