|
|
| (34 intermediate revisions by one other user not shown) |
| Line 1: |
Line 1: |
| ==Función getcallsbilling==
| | #REDIRECT [[API 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
| |
| | |
| ===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>
| |
| | |
| ===Ejemplo Salida===
| |
| <syntaxhighlight lang="json">
| |
| {
| |
| "resultado": "ejemplo_resultado",
| |
| "otros_datos": "otros_valores"
| |
| }
| |
| </syntaxhighlight>
| |
| | |
| - notas =
| |