createCustomer creates a customer that belongs to the authenticated customer, the same as Add Reseller in the panel. The parameters below are also the fields that getCustomerInfo returns and updateCustomer changes.
The method supports trusted mode with i_wholesaler, the ID of the customer that will own the new one.
To call it, the authenticated customer needs the right to add customers (bit 1 of its customers_mgmt) and a Max. Resellers Depth above 0.
Web Password of the customer’s default web user. Must satisfy the password policy (i_password_policy)
i_tariff
int
yes
Tariff: an outgoing tariff you own. Its currency becomes the customer’s base currency, which never changes. None assigns your own tariff (- MY TARIFF -) and your base currency; allowed only when your use_own_tariff is on
web_login
string
no
Web Login of the default web user. Unique on the switch. Default: name
i_time_zone
int
no
Time Zone of the web user. Default: yours. See Time zones
i_lang
string
no
Language of the panel, a two-letter code. Default en
i_export_type
int
no
Download Format for CDR downloads, from the export_types dictionary. Default 2
start_page
int
no
Start Page: 1My CDRs, 3Call Records (CDRs), 4My Preferences (default)
description
string
no
Description, shown under the name in the list
balance
double
no
Opening Balance, 0 or more. A positive value is recorded as a payment with the note Initial balance and is checked against overcommit protection
Routing Group. The root customer can give any routing group and gets the first one by default. Other customers can give only one of their extended routing groups; by default the new customer inherits yours
accounts_matching_rule
string
no
Acct. Matching Rule: regular expressions, separated by ;, that the names of the customer’s accounts must match
max_depth
int
no
Max. Resellers Depth: how many levels of sub-customers the customer may create. Less than yours; default yours minus 1. Fixed after creation
max_sessions
int
no
Max Sessions, above 0. None (default) means unlimited
max_calls_per_second
double
no
Max Calls Per Second, above 0. None (default) means unlimited
overcommit_protection
boolean
no
Overcommit Protection. Default False
overcommit_limit
double
no
Overcommit Limit, %, in percent. Default 10
You cannot set overcommit_protection or overcommit_limit when a customer above you has overcommit protection on.