Jump to content

TuCloudAPI addaccountcode: Difference between revisions

From Wiki 7Kas
TuCloudAPI reference (generated from func=help)
 
TuCloudAPI reference: product name -> FuturePBX (API surface unchanged); regenerated from func=help
 
Line 1: Line 1:
''TuCloudAPI function to manage tucloud (PBX) services. Available to: '''SuperRoot, Operator'''.''
''TuCloudAPI function to manage FuturePBX (the cloud PBX). Available to: '''SuperRoot, Operator'''.''


== Description ==
== Description ==

Latest revision as of 14:13, 3 August 2026

TuCloudAPI function to manage FuturePBX (the cloud PBX). Available to: SuperRoot, Operator.

Description

Creates a new account (client) under the caller. Requires write permission (operator/SuperRoot, not read-only). For non-SuperRoot the root is forced to the caller's own.

Call

GET  https://tucloudapi.7kas.com:9087/tucloud?func=addaccountcode&ukey=YOUR_KEY

Requires the ukey parameter.

Parameters

Parameter Type Required Default Meaning
accountcode string Yes Account code (login). Required. Max 20.
credit string Yes Initial credit. Required. Max 20.
password string Yes Account password. Required. Max 40.
name string Yes Contact/holder name. Required. Max 100.
company string No Company name. (max 100)
address string No Postal address. (max 200)
phone string No Phone. (max 20)
email string No Primary e-mail. (max 100)
date_added string No Creation date. (max 20)
description string No Free description. (max 200)
language string No UI language code. (max 5)
postal_code string No Postal code. (max 10)
city string No City. (max 50)
province string No Province. (max 50)
nif string No Tax id (NIF/CIF). (max 20)
blocked string No Blocked flag (SI/NO). (max 4)
postpaid string No Postpaid flag. (max 4)
admin string No Admin flag. (max 4)
accountcode_comis string No Commissioner account this account belongs to. (max 20)
comisionista string No Is-commissioner flag (SI/NO). (max 4)
groups string No Group memberships. (max 100)
movil_sms string No Mobile for SMS. (max 20)
email2 string No Secondary e-mail. (max 100)
fax string No Fax. (max 20)
nota string No Internal note. (max 500)
web string No Website. (max 100)
flags string No Account flags. (max 20)
tariff string No Tariff code. (max 20)
daycallmail string No Daily-call report e-mail(s). (max 100)
root integer No Parent operator root. Forced to the caller's own unless SuperRoot. (numeric, max 10)
credit_limit integer No Credit limit. (numeric)
comis_minutos integer No Commission minutes. (numeric)
ratio integer No Commission ratio. (numeric)
creditalarm integer No Credit alarm threshold. (numeric)
aindirecto_coste integer No Indirect-access cost. (numeric)
intlimit integer No International limit. (numeric)
daycall integer No Daily-call limit. (numeric)
intlock integer No International lock flag. (numeric)

Example

https://api.7kas.com:9087/tucloud?func=addaccountcode&ukey=OPKEY&accountcode=NEW1&credit=0&password=secret&name=John

Response

Object with the new account id / result of api_add_voip_user.


Back to TuCloudAPI