MOR API user balance get

From Kolmisoft Wiki
Revision as of 13:51, 14 May 2012 by Admin (talk | contribs)
Jump to navigationJump to search

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:

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