Block and unblock accounts
Цей контент ще не доступний вашою мовою.
A blocked account cannot make or receive calls. Its balance, rates and settings stay as they are, so unblocking restores the account exactly as it was. This is the same as the Blocked check box of the account in the panel.
Both methods support trusted mode with i_customer.
blockAccount
Section titled “blockAccount”Blocks an account. To end its calls in progress as well, call disconnectAccount.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
i_account |
int | yes | ID of the account |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
result |
string | OK |
Example
Section titled “Example”call("blockAccount", {"i_account": 3092}){"result": "OK"}unblockAccount
Section titled “unblockAccount”Unblocks an account. The account can call again at once if its balance and credit limit allow it.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
i_account |
int | yes | ID of the account |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
result |
string | OK |
Example
Section titled “Example”call("unblockAccount", {"i_account": 3092}){"result": "OK"}Errors
Section titled “Errors”| faultCode | Cause |
|---|---|
403, 404 |
No account with this i_account belongs to the authenticated customer |
Related
Section titled “Related”- Accounts: the Blocked check box
- Get account information:
blockedin the result - Block and unblock customers