Jump to content

API getcallsbillingdetailtotal

From Wiki 7Kas

7Kas VoIP REST API function. Available to: SuperRoot, Operator, Client.

Description

Total over VOC detail rows matching the filter (with total_rows for pagination). Same filters/search as getcallsbilling (voc).

Call

GET  …/7Kas?func=getcallsbillingdetailtotal&ukey=YOUR_KEY&…

Requires the ukey parameter.

Parameters

Parameter Type Required Default Meaning
year integer Yes Year.
month integer Yes Month, 1-12.
accountcode string No Filter by account code (non-clients). (max 20)
day integer No Filter by day (1-31).
hour integer No Filter by hour. (requires day)
search string No Server-side search pattern. (max 40)
search_fields string No Comma-separated searchable fields. (max 200)
search_mode string No contains suffix|contains|exact)

Example

https://api.7kas.com:9080/7Kas?func=getcallsbillingdetailtotal&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 SuperRoot, API profile Operator, API profile Client (of operator), API profile Client (direct)