Skip to content

Disabling virtual numbers

Method disable.virtual_numbers
Description Disabling virtual numbers
Who has access Agent, Customer

Parameters of a request

Title Type Required Description
access_token string yes Authentication session key
virtual_phone_number string yes Virtual number
user_id number no Unique user ID of an agent's customer who makes request
Is required for agent

You cannot disable numbers that are associated with advertising campaigns. If you disable number with the type "uis", all the associated settings will be deleted

JSON request structure

{
  "jsonrpc": "2.0",
  "id": "number",
  "method": "enable.virtual_numbers",
  "params": {
    "access_token": "string",
    "user_id": "number",
    "virtual_phone_number": "string"
  }
}

JSON reply structure

{
  "jsonrpc": "2.0",
  "id": "number",
  "result": {
    "success": true
  }
}

List of returning errors

Error Text Error code Error mnemonics
You have interdependet entities -32602 dependency_error
Virtual phone number {virtual_phone_number} not found. -32007 virtual_phone_number_not_found

Refer to the section "List of errors for the methods with the verb get"