Skip to content

Check account password

CheckAccountPassword

Description: Validates an account password through the TCP Server API.

Access

Requires one of:

  • SESSION_MANAGER
  • SESSION_ADMIN
  • SESSION_DEALER

Request Parameters

Name Type Required Description
login int Yes Account login
password string Yes Account password to validate, length 6..64

Request Example

{
  "command": "CheckAccountPassword",
  "extID": "pwd-check-1",
  "__token": "manager-jwt",
  "data": {
    "login": 123456,
    "password": "newSecret123"
  }
}

Response Parameters

In the raw TCP response envelope, the fields below are returned inside data.

Name Type Description
login string Returns "OK" when the password is valid

Response Example

{
  "extID": "pwd-check-1",
  "status": 200,
  "data": {
    "login": "OK"
  }
}

Errors

Status Error Description
400 INVALID_DATA Validation failed
400 UPDATE_PASSWORD_ERROR Account not found or password is invalid