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

Block and unblock customers

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

A blocked customer’s accounts and sub-customers cannot make calls. Its balance and settings stay as they are, so unblocking restores service exactly as it was. This is the same as Block and Unblock in the customer’s Actions menu in the panel. The customer can be anywhere below the authenticated customer in the hierarchy, including sub-customers of sub-customers.

Both methods support trusted mode with i_wholesaler, the ID of a customer above the one you block.

Blocks a customer and disconnects all its calls in progress at once.

Name Type Required Description
i_customer int yes ID of the customer
Name Type Description
result string OK
request
call("blockCustomer", {"i_customer": 3})
response
{"result": "OK"}

Unblocks a customer. Its accounts can call again at once if their balances allow it.

Name Type Required Description
i_customer int yes ID of the customer
Name Type Description
result string OK
request
call("unblockCustomer", {"i_customer": 3})
response
{"result": "OK"}
faultCode faultString Cause
400 Customer not found No customer with this i_customer is below the authenticated customer
400 Cannot block root customer You tried to block the root customer