get
https://onlinesim.io/api/getBalance.phpGET /api/getBalance.php
Get information on current user balance
Returns the current user balance.
You might use it to check the balance of the profile to top it up when needed (for example to handle WARNING_LOW_BALANCE exceptions).
Security
OAuth2
-
sms-scope - grants access to manage numbers for the SMS receiving service from Onlinesim
Parameters
query2
| Name | Type | Description |
|---|---|---|
income | boolean | Information on affiliate program earnings |
lang | string | Response language:
Enum: frderuenzhDefault:ruExample:en |
Responses
200'Successful response for getBalance request: the server returns
information on your current balance status or throws an exception.'
'Successful response for getBalance request: the server returns
information on your current balance status or throws an exception.'
Content-Type
application/jsonSchema
Responseobject
Responseobject
responseoneOf
responseoneOf
One Of
[0]integer
[1]string
balancestring
zbalancenumber
Examples
Successfull getBalance response example
{
"response": "1",
"balance": "106.32",
"zbalance": 0
}Code Samples
Generating examples...