Difference between revisions of "MOR API user balance get"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 7: Line 7:
==Request==
==Request==


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


==Result==
==Result==

Revision as of 14:11, 6 January 2011

This functionality is available from MOR 9

MOR API

In SETTINGS->Setup->Settings->Variuos->Allow devices to check balance over HTTP, check to allow this functionality:

Request

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

Result

-349282.18

returns balance of user.

Erros

When user is not found.

User not found

When feature is off.

Feature disabled