Skip to content

Update customer status

Updating agent's customer status

Method update.customer_status
Description Updating agent's customer status
Who has access Partner

Parameters of request

Title Type Required Valid values Description
access_token string yes Authentication session key
customer_id number yes Customer unique ID
status enum yes active, archive, manual_lock New status.

You can only activate customers who have status "waiting".

You can only block customers who have status "active".

You can only archive customers who have status "manual_lock"

You can only unblock customers who have status "manual_lock"

JSON request structure

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

JSON reply structure

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

  }
}

List of returning errors

Text Code Mnemonics Description
An attempt was made to use a status that is not correct in this state -32602 invalid_state Status is incorrect for a customer at present state

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