FUP
Get traffic usage
Service traffic usageRetrieve internet service traffic usage info
get/admin/fup/usage/{service_id}
Request
- Base URL: https://demo.splynx.com/api/2.0
- URL: https://demo.splynx.com/api/2.0/admin/fup/usage/{service_id}
- Auth: HTTP basic
Path parameters
service_idnumber double required
Example:151
The internet service ID
Query parameters
with_textsboolean required
Example:true
Get texts for the Progress widget
sub_idnumber double
Example:1
Optional. Available for the main LBA (Linked Billing Account) customer. When provided, returns the traffic usage of the sub-account's service; the sub-account must belong to the main customer taken from the token, and the service must belong to that sub-account.
Response
Example response
{
"traffic_amount": 40000000000,
"over_usage": 0,
"used_amount": 323862,
"remains_amount": 676138,
"cap_amount": 2000000,
"used_percent": 10.79,
"remains_percent": 22.53,
"cap_percent": 66.66,
"bonus_traffic": 0,
"bonus_is_unlimited": 0,
"bonus_remains_amount": 0,
"bonus_cap_amount": 0,
"bonus_used_percent": 0,
"bonus_remains_percent": 0,
"bonus_cap_percent": 0,
"cap_bar_position": 2,
"remains_bar_position": 1,
"used_text": "323.86 KB",
"used_label_title": "323.86 KB",
"capped_alt": "Remains: 2 MB / 2 MB CAP",
"capped_not_used_text": "2 MB",
"capped_text_all": "2 MB",
"all_text": "1 MB",
"remains_text": "676.14 KB",
"used_alt": "Used: 323.86 KB / 1 MB (+2 MB CAP)",
"remains_alt": "Remains: 676.14 KB / 1 MB (+2 MB CAP)",
"bonus_capped_text_all": "(+2 MB Bonus CAP)",
"full_cap_amount": 2000000,
"bonus_all_text": "0 B",
"bonus_used_label_title": "0 B",
"bonus_used_text": "0 B",
"bonus_used_alt": "Used: 0 B \\/ 0 B",
"bonus_remains_text": "``",
"bonus_remains_alt": "Remains: 0 B \\/ 0 B",
"bonus_capped_not_used_text": "0 B",
"bonus_capped_alt": "Remains: 0 B \\/ 0 B Bonus CAP"
}Changes
No recorded changes to this operation across all 1 revision of this API.