Difference between revisions of "MOR API user balance get"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 10: Line 10:
[[File:settings_path.png]]
[[File:settings_path.png]]
<br><br>
<br><br>
2. In Various tab check the marked option:
2. In Various tab check the marked option (in MOR 12 this option was moved to API tab):
<br><br>
<br><br>
[[File:Settings_various_balance_over_http.png]]
[[File:Settings_various_balance_over_http.png]]

Revision as of 12:56, 8 October 2012

This feature is available starting from MOR 10, but was also backported to MOR 9

About

This feature enables you to check the balance over http.

Enable check balance over http feature

1. Go to SETTINGS - Setup -> Settings

Settings path.png

2. In Various tab check the marked option (in MOR 12 this option was moved to API tab):

Settings various balance over http.png

Request

HTML POST: http://<SERVER_IP>/billing/api/balance?username=USERNAME

Optionaly you can 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/balance?username=USERNAME&currency={USER|CURRENCY_CODE}

Result

-349282.18

returns balance of user.

Erros

When user is not found.

User not found

When feature is off.

Feature disabled

See Also