Jump to content

API getcallsbillingcomis

From Wiki 7Kas

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

Description

Commission billing for a commissioner: aggregates the calls of the accounts assigned to the caller (accountcode_comis) and returns commission minutes/amount — never exposing costs. The caller account must be flagged comisionista=SI.

Call

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

Requires the ukey parameter.

Parameters

Parameter Type Required Default Meaning
year integer No Year. Optional (defaults applied server-side).
month integer No Month, 1-12. Optional.

Example

https://api.7kas.com:9080/7Kas?func=getcallsbillingcomis&ukey=COMISKEY&year=2026&month=7

Response

FillRecords2JSON per client: accountcode, name, company, comis_minutos, comis_pct, comis_total, blocked.

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)