Diferencia entre revisiones de «API CDR Salientes»
Ir a la navegación
Ir a la búsqueda
(→Salida) |
(→Salida) |
||
| Línea 39: | Línea 39: | ||
===Salida=== | ===Salida=== | ||
{ "RecordCount" : 1, "fields" : ["callstart", "accountcode", "dst", "prefix", "dtype", "cid_num", "cid_name", "dial_cid_num", "cli_billing", "context", "billsec", "tariff", "rate_pickup", "rate_rate", "rate_total", "credit", "providerid", "provider_tariffid", "p_pickup", "p_rate", "p_total", "flags", "fromuri", "fromtag", "totag", "sipmsg", "beneficio"], "1" : ["01/04/2023 23:53:56", "1270", "97XXXXX5", "9", "FIJO", "97XXXXXX0", "", "97XXXXX0", "80XXXXXX3", "endpoints", "19", "general", "", "0,009", "0,0029", "1962,64", "28", "26", "", "0,0021", "0,0007", "1", "sip:97XXXXXX0@213.162.195.47:60000", "as651eb4da", "ca4a110F68cN", "BYE", "0,0069"] } | - { "RecordCount" : 1, "fields" : ["callstart", "accountcode", "dst", "prefix", "dtype", "cid_num", "cid_name", "dial_cid_num", "cli_billing", "context", "billsec", "tariff", "rate_pickup", "rate_rate", "rate_total", "credit", "providerid", "provider_tariffid", "p_pickup", "p_rate", "p_total", "flags", "fromuri", "fromtag", "totag", "sipmsg", "beneficio"], "1" : ["01/04/2023 23:53:56", "1270", "97XXXXX5", "9", "FIJO", "97XXXXXX0", "", "97XXXXX0", "80XXXXXX3", "endpoints", "19", "general", "", "0,009", "0,0029", "1962,64", "28", "26", "", "0,0021", "0,0007", "1", "sip:97XXXXXX0@213.162.195.47:60000", "as651eb4da", "ca4a110F68cN", "BYE", "0,0069"] } | ||
==notas== | ==notas== | ||
Revisión del 17:54 8 may 2023
Función getcallsbilling
Parametros Obligatorios
* ukey: Token de autenticación
* func: Función a llamar (en este caso, "getcallsbilling")
* model: Modelo ("toc" o "voc")
* year: Año (p.ej. 2023)
* month: Mes (p.ej. 2)
Parametros Opcionales
* accountcode: Código de cuenta (opcional, si no se indica muestra todos los clientes) * limit: Límite de registros (1 a 1000) * offset: Desplazamiento para paginación
POST
<syntaxhighlight lang="http">
POST /api/ HTTP/1.1
Host: api.7kas.com
Content-Type: application/json
{
"ukey": "token_autenticacion",
"func": "getcallsbilling",
"model": "toc",
"year": 2023,
"month": 2,
"accountcode": "",
"limit": 50,
"offset": 0
}
</syntaxhighlight>
GET
<syntaxhighlight lang="http"> GET /?ukey=token_autenticacion&func=getcallsbilling&model=toc&accountcode=&year=2023&month=2&limit=50&offset=0 HTTP/1.1 Host: api.7kas.com </syntaxhighlight>
Salida
- { "RecordCount" : 1, "fields" : ["callstart", "accountcode", "dst", "prefix", "dtype", "cid_num", "cid_name", "dial_cid_num", "cli_billing", "context", "billsec", "tariff", "rate_pickup", "rate_rate", "rate_total", "credit", "providerid", "provider_tariffid", "p_pickup", "p_rate", "p_total", "flags", "fromuri", "fromtag", "totag", "sipmsg", "beneficio"], "1" : ["01/04/2023 23:53:56", "1270", "97XXXXX5", "9", "FIJO", "97XXXXXX0", "", "97XXXXX0", "80XXXXXX3", "endpoints", "19", "general", "", "0,009", "0,0029", "1962,64", "28", "26", "", "0,0021", "0,0007", "1", "sip:97XXXXXX0@213.162.195.47:60000", "as651eb4da", "ca4a110F68cN", "BYE", "0,0069"] }