Suspended users


#1

How can i get state of account(suspended or not) with the REST API?


#2

If an account is suspended, it will not be retrievable on the users/show endpoint. You’ll get:

{
  "errors": [
    {
      "code": 63,
      "message": "User has been suspended."
    }
  ]
}

If an account does not exist / has been deleted, you’ll see:

{
  "errors": [
    {
      "code": 50,
      "message": "User not found."
    }
  ]
}

Otherwise, the users/show endpoint will work normally, indicating that the user is not suspended or deleted.


#3