Jump to content

API CDR Salientes: Difference between revisions

From Wiki 7Kas
No edit summary
API docs (generated from func=help)
Tag: New redirect
 
(40 intermediate revisions by one other user not shown)
Line 1: Line 1:
Infobox Función
#REDIRECT [[API getcallsbilling]]
| nombre = getcallsbilling
[[Category:API]]
| 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
| ejemplo_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>
| ejemplo_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>
| ejemplo_salida =
  <syntaxhighlight lang="json">
  {
      "resultado": "ejemplo_resultado",
      "otros_datos": "otros_valores"
  }
  </syntaxhighlight>
| notas =
  * Nota 1: Información adicional
  * Nota 2: Información adicional

Latest revision as of 22:33, 21 July 2026