Delete an account
deleteAccount deletes an account that belongs to the authenticated customer. Calls of the account in progress are disconnected. To stop an account only for a while, block it instead.
The method supports trusted mode with i_customer, the customer that owns the account.
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("deleteAccount", {"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: Delete and Restore
- Block and unblock accounts
- Create an account
- Delete customers