Deactivate a user

Prevent a business user from authenticating without deleting their profile or access configuration.

Required permissions: user:update.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

user_idstringRequired
The ID of the user.

Headers

X-Penny-As-Businessstring or nullOptional

Act on behalf of another business that has granted you access. Requires the business:act_as permission.

Response

The deactivated user.
BusinessUserobject

A business user, as shown to clients through the client-facing API.

OR
CardholderUserobject

A cardholder user, as shown to clients through the client-facing API.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error