- Preparation
- FAQ
- V3
- Customer API
- Phones API
- Statistics API
- V2(Deprecated)
- Warning: V2 API is deprecated
- Account
- Lookup
- Manage phone numbers
Get Account Balance
Developing
GET
https://api-x.smsonline.cloud/v3/customers/{userId}/balance
Request
Path Params
userId
string
required
Example:
{{userid}}
Query Params
apiKey
string
required
Example:
{{APIKey}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api-x.smsonline.cloud/v3/customers/{{userid}}/balance?apiKey={{APIKey}}'
Responses
🟢200Success
application/json
Body
ok
boolean
required
body
object
required
userId
string
required
stripeId
string
required
cryptomusId
null
required
balance
integer
required
status
null
required
lang
null
required
referral
null
required
totalCharges
string
required
couponCount
integer
required
currentDiscountRate
string
required
vipSupport
boolean
required
vipTelegram
string
required
discountRates
array [array]
required
Example
{
"ok": true,
"body": {
"userId": "userId",
"stripeId": "stripeId",
"cryptomusId": null,
"balance": 500,
"status": null,
"lang": null,
"referral": null,
"totalCharges": "500",
"couponCount": 1,
"currentDiscountRate": "-20%",
"vipSupport": false,
"vipTelegram": "",
"discountRates": [
[
8000,
0.8,
"-20%"
],
[
6000,
0.85,
"-15%"
],
[
4000,
0.9,
"-10%"
],
[
2000,
0.95,
"-5%"
],
[
0,
1,
"0%"
]
]
}
}
Modified at 2025-05-30 14:02:15