/logout

These are the possible response codes when you make an API call to the /logout endpoint.

Response code

Error

Message

Scenario

Resolution

200 OK

Shows 200 OK return and user has been logged out

200 OK

Remove refresh_token parameter for all session/user

200 OK

Invalid redirect_uri

200 OK

Missing redirect_uri value

200 OK

Removed redirect_uri paramater

200 OK

Invalid grant_type

200 OK

Missing grant_type value

200 OK

Removed grant_type value

200 OK

Removing all_session parameter

400 Bad Request

http_exception

"Invalid json format"

Empty payload

Add the payload.

400 Bad Request

invalid_parameters

"Invalid json format"

Invalid JSON format used in the payload.

Use correct JSON format for the payload.

401 Unauthorized

http_exception

"Unauthorized"

Expired refresh_token

Enter a fresh refresh_token

403 Forbidden

http_exception

"error_details:{
"message":"Forbidden"
}

Incorrect client_id value

Enter a valid client_id value.

422 Unprocessable Entity

invalid_parameters

"client_id":{
"missing": "required"
}

no error description

Removed client_id parameter

Add the client_id parameter and value.

422 Unprocessable Entity

invalid_request

"error_details": "invalid_argument"
"unknown refresh_token"

Incorrect refresh_token

Enter the correct refresh token value.

422 Unprocessable Entity

invalid_request

"error_details": "invalid_argument"
"unknown refresh_token"

Remove refresh_token parameter for single session

Add the refresh_token parameter and value.

422 Unprocessable Entity

invalid_parameters

"auth_type": {
"invalid": "unsupported auth_type value"
}

no error description

Invalid auth_type value

Enter a valid auth_type value.

422 Unprocessable Entity

invalid_parameters

"auth_type": {
"invalid": "unsupported auth_type value"
}

no error description

Missing auth_type value

Enter a valid auth_type value.

422 Unprocessable Entity

invalid_parameters

"auth_type": {
"invalid": "unsupported auth_type value"
}

no error description

Removed auth_type parameter

Add the auth_type parameter and value.

422 Unprocessable Entity

invalid_parameters

"user_id": {
"invalid": "invalid value"
}

no error description

Invalid user_id value

Enter a valid user_id value.

422 Unprocessable Entity

invalid_user

"user_id": {
"invalid": "invalid value"
}

no error description

Missing user_id value

Enter a valid user_id value.

422 Unprocessable Entity

invalid_parameters

"user_id": "field required"

Removed user_id parameter

Add the user_id parameter and value.

422 Unprocessable Entity

invalid_parameters

"310": "Expecting ',' delimiter: line x column xx (char xxx)"

Invalid all_session value

Enter a valid all_session value.

503 Service Temporarily Unavailable

"Backend action does not exist"

"Incorrect version code in URL " typed in vxx but we only have vxx for now"

Enter the correct version code in the URL.