GEThttps://onlinesim.io/api/getBalance.php
Get information on current user balance
Returns the current balance of the profile, the frozen balance and — optionally — the income from the referral program.
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
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:
Please note that the translation applies only to string field values, such as service names or country names. Field names themselves, error messages, and standard values (for example, true/false for boolean fields) remain in English Enum: frderuenzhDefault:ru |
Responses
200Successful 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
schemaoneOf
[0]object
[1]allOf
[2]object
Examples
Successful response about the current and frozen balance of the profile
{
"response": "1",
"balance": "106.32",
"zbalance": 0
}Extended response with information about the profile balance under the referral program
{
"response": "1",
"balance": "106.32",
"zbalance": 0,
"income": 12.5,
"income_usd": 13.2
}