Difference between revisions of "Balance in phone"
Line 6: | Line 6: | ||
In '''SETTINGS –> Setup –> Settings –> API –> Allow devices to check balance over HTTP''', check to allow this functionality: | In '''SETTINGS –> Setup –> Settings –> API –> Allow devices to check balance over HTTP''', check to allow this functionality: | ||
'''Please note:''' do not forget to enable the '''API''' on your system before you will use Balance in the Phone. If API will be not enabled you will see ''Balance:<?xml...'' instead of the real Balance. | |||
Revision as of 15:25, 21 February 2013
Some phones and softphones support displaying your account balance on their screens.
For example, we will use iaxLite. Download link
Note! Same URL is used for MOR Phone APP.
In SETTINGS –> Setup –> Settings –> API –> Allow devices to check balance over HTTP, check to allow this functionality:
Please note: do not forget to enable the API on your system before you will use Balance in the Phone. If API will be not enabled you will see Balance:<?xml... instead of the real Balance.
Log in as the user you want to check your balance:
... and in Details you will see the link:
Copy and paste this link into the phone:
... and you will see your balance:
Optionaly you can send api request and specify currency, valid values are USER, in that case balance is returned in user's currency. And currency code(EUR, USD etc.)
HTML POST: http://<SERVER_IP>/billing/api/simple_balance?id=UNIQUEHASH¤cy={USER|CURRENCY_CODE}