profile (alt)

Get information on current user balance

GEThttp://api-conserver.onlinesim.io/stubs/handler_api.php?action=getBalance

Returns the current user balance.

You call this method to check the balance of the profile to top it up when needed or to handle WARNING_LOW_BALANCE exceptions.

Security

OAuth2
sms-scope
grants access to manage numbers for the SMS receiving service from Onlinesim
rent-scope
grants access to renting phone numbers from Onlinesim

Parameters

query1
NameTypeDescription
action*string

Method name, in this case getBalance

Enum:getBalanceDefault:getBalance

Responses

200Successful getBalance response from the server: either returns your profile''s current available balance or throws an exception.
Content-Typetext/html
Schema
schemastring

Examples

getBalance example response
ACCESS_BALANCE:530.82

Code Samples

Generating examples...