Перейти до вмісту

Update an account

Цей контент ще не доступний вашою мовою.

updateAccount changes an account of the authenticated customer. Send only the fields you want to change; fields you leave out keep their values.

The method supports trusted mode with i_customer, the customer that owns the account.

Name Type Required Description
i_account int one of ID of the account
account_name string one of Name (username) of the account, used when i_account is not given
any account field at least one Any parameter of createAccount except balance, with the same type and values

All account fields are optional here, but at least one must be given. To rename the account, send the new username. To change a password, send the new web_password, voip_password or vm_password; leave the field out to keep the current one.

Name Type Description
result string OK

Move an account to postpaid with a credit limit of 50 and allow it three simultaneous calls:

request
call("updateAccount", {
"i_account": 3092,
"credit_limit": 50.0,
"max_sessions": 3,
})
response
{"result": "OK"}
faultCode Cause
403, 404 No account with this ID belongs to the authenticated customer