Method update.customer_status
Description Changing agent client status
Available to Partner

Request parameters

Title Type Required Valid values ​​ Description
access_token string yes Authentication session key
customer_id number yes Unique client identifier
status enum yes active, archive, manual_lock New status.

You can only activate a client who is in the status "waiting".

You can only block a client who is in the status "active".

You can only archive a client who is in the status "manual_lock"

You can only unblock a client who is in the status "manual_lock"

JSON request structure```json

{ "jsonrpc":"2.0", "id":"number", "method":"update.customer_status", "params":{ "access_token":"string", "customer_id":"number", "status":"enum" } }

### JSON response structure```json
{
  "jsonrpc":"2.0",
  "id":"number",
  "result":{

  }
}

List of returned errors

Text Code Mnemonics Description
An attempt was made to use a status that is not correct in this state -32602 invalid_state The specified status is incorrect for the client in its current state

JSON response structure```json

{ "jsonrpc":"2.0", "id":"number", "result":{

} } ```

List of returned errors

See the section "List of errors for methods with the update verb"