Get Account Information

Last updated by FlySIP SoftSwitch on November 14, 2017 11:01

getAccountInfo()

Allows to retrieve all attributes of a given account. To be found the account is to belong to the customer that authenticated the request, unless trusted mode is used.

Parameters:

i_account (integer) or account's username (string). Required

Returns:

All the attributes of the account in a form of structure. The account's attributes are identical to input parameters of the createAccount() function.

Trusted mode

This function supports trusted mode in which case any account of any customer can be queried.

----

Notes

For historical reasons the function returns negative number for positive balance and positive number for the negative balance. Client-side code needs to handle this condition.

REST API example:

https://demo.flysip.com/api.php?username=admin&apipassword=<API-Password>&action=createAccount&JSONString={"username":"apitest3"}