Updating agent customer status
Agents' Customers >
Updating agent customer status
Method
update.customer_status
Description
Updating agent customer status
Available to
Partner
Request parameters
Name
Type
Required
Valid values
Description
access_token
string
yes
Authentication session key
customer_id
number
yes
Unique customer identifier
status
enum
yes
active, archive, manual_lock
New status. You can only activate a customer whose current status is "waiting". You can only block a customer whose status is "active". You can only archive a customer whose status is "manual_lock". You can only unblock a customer whose status is "manual_lock".
JSON request structure
{
"jsonrpc": "2.0",
"id": "number",
"method": "update.customer_status",
"params": {
"access_token": "string",
"customer_id": "number",
"status": "enum"
}
}
JSON response structure
{
"jsonrpc": "2.0",
"id": "number",
"result": {}
}
List of returned errors
Error text
Code
Mnemonic
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 customer in its current state
See the section "List of errors for methods with the update method".