Request
User Id linked to API key
Request samples
curl --location -g --request GET 'https://api.smsonline.cloud/cs/getBalance?userId={{userid}}&key={{APIKey}}'
Responses
application/json The userId associated with the record
Account balance associated with userId
The total top-up amount associated with the userId
currentDiscountRate
string
requiredCurrent discount percentage
discountRates
array [array]
requiredCurrent discount conditions
{
"error": false,
"body": {
"userId": "123123abc",
"balance": 500,
"totalCharges": "1500",
"currentDiscountRate": "0%",
"discountRates": [
[
8000,
0.8,
"-20%"
],
[
6000,
0.85,
"-15%"
],
[
4000,
0.9,
"-10%"
],
[
2000,
0.95,
"-5%"
],
[
0,
1,
"0%"
]
]
}
}
Modified at 2025-02-15 15:35:47