Difference between revisions of "MOR API User Balance get by Username"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 9: Line 9:
* Call: /api/user_balance_get_by_username/ '''Here should be Device Username'''
* Call: /api/user_balance_get_by_username/ '''Here should be Device Username'''
* Methods: POST, GET(if allowed, not recommended)
* Methods: POST, GET(if allowed, not recommended)
===Parametres===
Parameters which are '''not included''' into hash:
* currency – currency code or value USER in which case balance will be returned in user's currency. By Default balance is returned in System Currency '''Optional'''.
<br><br>
<br><br>


Line 15: Line 20:
  HTML POST: http://<SERVER_IP>/billing/api/user_balance_get_by_username/qqf5j971bygy?currency=EUR
  HTML POST: http://<SERVER_IP>/billing/api/user_balance_get_by_username/qqf5j971bygy?currency=EUR
'''NOTE:''' '''currency''' is an optional parameter which converts the Balance correspondingly.
'''NOTE:''' '''currency''' is an optional parameter which converts the Balance correspondingly.
<br><br>
<br><br>
===Returns===
===Returns===



Revision as of 13:53, 1 August 2016

Description

MOR API Get User Balance by Username

Usage

To turn on functionality go to: Setup > Setting > select API tab > check "Allow devices to check balance over HTTP"

  • Call: /api/user_balance_get_by_username/ Here should be Device Username
  • Methods: POST, GET(if allowed, not recommended)

Parametres

Parameters which are not included into hash:

  • currency – currency code or value USER in which case balance will be returned in user's currency. By Default balance is returned in System Currency Optional.



Request

HTML POST: http://<SERVER_IP>/billing/api/user_balance_get_by_username/qqf5j971bygy?currency=EUR

NOTE: currency is an optional parameter which converts the Balance correspondingly.



Returns

Success

    
    66.0000
 




Errors

  • Feature disabled - This functionality is disabled.
  • User was not found - Setting: Settings->API->API allow Registration, is off. Turn on API allow Registration.



See also