Get the balance of the profile
GEThttps://onlinesim.io/api/getBalance.php
Returns the balance of the profile, the frozen funds and — on request — the partner earnings.
Use it to top up in time (for example before WARNING_LOW_BALANCE errors of getNum).
Security
Parameters
query2
| Name | Type | Description |
|---|---|---|
income | string | Add Example: 1 |
lang | string | Language of the texts in the answer (country and service names, status texts): Enum: frderuenzh |
Responses
200Balance or a common error
application/jsonschemaoneOfBalance (with partner earnings when income is set) or a common error
[0]object
[1]allOf
[2]object
Examples
Balance and frozen funds
{
"response": "1",
"balance": "106.32",
"zbalance": 0.36
}With income=1: partner earnings added
{
"response": "1",
"balance": "106.32",
"zbalance": 0.36,
"income": 12.5,
"income_usd": "13.200"
}429HTTP 429: more than 400 requests per minute from one profile (from one IP for requests without a key), or more than 200 requests per minute from one profile to getNum, getPrice, getState and setOperationOk together
application/jsonschemaobject
Examples
Request rate limit exceeded
{
"response": "TRY_AGAIN_LATER"
}456HTTP 456: the API key is invalid or the OAuth token has expired. Public methods answer the same way when an invalid key is sent
application/jsonschemaobject
Examples
Invalid API key or expired token
{
"response": "ERROR_WRONG_KEY"
}