OperatorAPI billingday:list
newadmapi (Operator API) function. Available to: Operator.
Description
The same grid and the same decoded mask as billing, over view_voip_calls instead of view_voip_calls_hist - today's calls rather than the archive. Both views carry all sixteen columns plus flags and r_root, checked rather than assumed. Paginated. Sorting and searching are restricted to the declared fields; anything else is rejected and named. Read audience is provisional pending operator confirmation.
Call
GET|POST https://YOUR_HOST:9089/newadm?func=billingday:list
Send your API key with every request (header X-API-Key: YOUR_KEY, or Authorization: Bearer YOUR_KEY, or the ukey query parameter).
Parameters
None beyond the API key and func=billingday:list.
Example
https://host:port/newadm?func=billingday:list
Response
Success is {"ok":true,"data":{...}}; on refusal {"ok":false,"code":"...","message":"..."}. This function's data shape: {"ok":true,"data":{"rows":[{"callstart":s(ISO-8601, naive),"r_accountcode":s,"r_tariff":s,"r_credit":n,"cli_billing":s,"cid_name":s,"cid_num":s,"dial_cid_num":s,"dst":s,"prefix":s,"rate":n,"r_rate":n,"billsec":n,"total":n,"r_total":n,"r_diferencia":n}],"page":n,"pagesize":n,"fields":[s],"available":[s],"order":s,"dir":s,"filterby":s?,"filter":s?}}.
Errors
Refusals carry a machine-readable code (branch on the code, never the message). See OperatorAPI#Error codes.
Back to OperatorAPI