API getincomingcallsdetailtotal: Difference between revisions
Appearance
API docs (generated from func=help) |
API docs regenerated from func=help (operator catalogue) |
||
| Line 1: | Line 1: | ||
''7Kas VoIP REST API function. Available to: ''' | ''7Kas VoIP REST API function. Available to: '''Operator, Client'''.'' | ||
== Description == | == Description == | ||
| Line 36: | Line 36: | ||
---- | ---- | ||
Back to [[API VoIP]] · '''[[API Console|▶ Try it live]]''' · Profiles: | Back to [[API VoIP]] · '''[[API Console|▶ Try it live]]''' · Profiles: [[API profile Operator]], [[API profile Client (of operator)]], [[API profile Client (direct)]] | ||
[[Category:API Operator]][[Category:API Client]][[Category:API function]] | |||
Latest revision as of 13:47, 5 November 2026
7Kas VoIP REST API function. Available to: Operator, Client.
Description
Total over VIC detail rows matching the filter (with total_rows for pagination). Same filters/search as getincomingcalls (vic).
Call
GET …/7Kas?func=getincomingcallsdetailtotal&ukey=YOUR_KEY&…
Requires the ukey parameter.
Parameters
| Parameter | Type | Required | Default | Meaning |
|---|---|---|---|---|
year |
integer | Yes | — | Year. |
month |
integer | Yes | — | Month, 1-12. |
accountcodeid |
integer | No | — | Filter by account id (non-clients). |
day |
integer | No | — | Filter by day (1-31). |
hour |
integer | No | — | Filter by hour. (requires day) |
Example
https://api.7kas.com:9080/7Kas?func=getincomingcallsdetailtotal&ukey=KEY&year=2026&month=7
Response
FillRecords2JSON: one aggregate row incl. total_rows.
Column visibility by profile
Pricing/cost columns depend on the caller's profile (GOD LAW):
- SuperRoot — provider cost + selling price + profit (VOC only).
- Operator — account price + root price + profit (VOC only).
- Client (direct, root=0) — only its own selling price (accountcode column).
- Client (of operator, root>0) — only its own selling price (root column).
Back to API VoIP · ▶ Try it live · Profiles: API profile Operator, API profile Client (of operator), API profile Client (direct)