Voice
Retrieve statistics
Voice statisticsRetrieve voice statistics grouped by voice types and categories. Field _comment in example can not be included to real response.
get/admin/voice/statistics
Request
- Base URL: https://demo.splynx.com/api/2.0
- URL: https://demo.splynx.com/api/2.0/admin/voice/statistics
- Auth: HTTP basic
Query parameters
service_idnumber double required
Example:1
The ID of the desired voice service
fromstring required
Example:2018-01-01
Start date of period
tostring required
Example:2019-01-01
End date of period
with_formattingboolean required
Example:true
Format amount and duration fields
Response
Example response
{
"call": {
"0": {
"_comment": "This element contains totals of records without category",
"title": "Calls",
"duration": 386,
"sum": 0.07,
"rate_buy_price": 0,
"cdr_buy_price": 0
},
"2": {
"_comment": "This element contains totals of L-902A(1-4) category #2",
"title": "L-902A(1-4)",
"duration": 1472,
"amount": 0,
"sum": 0.51577452,
"rate_buy_price": 0,
"cdr_buy_price": 0.09046056
},
"total": {
"_comment": "This element contains totals of all categories",
"title": "Total",
"sum": 206.73256484,
"rate_buy_price": 0,
"cdr_buy_price": 209.97441838,
"duration": 1066717
}
},
"message": {
"0": {
"title": "SMS",
"sum": 0,
"rate_buy_price": 0,
"cdr_buy_price": 0,
"amount": 0
},
"4": {
"title": "Mesajes",
"sum": 0,
"rate_buy_price": 0,
"cdr_buy_price": 0,
"amount": 0
},
"total": {
"title": "Total",
"sum": 0.976,
"rate_buy_price": 0,
"cdr_buy_price": 0,
"amount": 2
}
},
"data": {
"0": {
"title": "Data",
"sum": 1.525,
"rate_buy_price": 0,
"cdr_buy_price": 0,
"amount": 200000
},
"5": {
"title": "Datos",
"sum": 0,
"rate_buy_price": 0,
"cdr_buy_price": 0,
"amount": 0
},
"total": {
"title": "Total",
"sum": 2.135,
"rate_buy_price": 0,
"cdr_buy_price": 0,
"amount": 5200000
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.