Skip to main content
POST
Deactivate a user account
See Errors for the common errors every v2 endpoint can return.

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string
required

A unique key for this request, up to 255 characters. Retrying with the same key and request returns the original response instead of performing the operation again. See Idempotency. A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response instead of performing the operation again.

Required string length: 1 - 255
Example:

"3f1c9a52-7d4e-4b8a-9c21-6e0f5d2a8b14"

Path Parameters

user_account_id
string
required

User Account ID The ID of the User Account object.

Pattern: ^user_account_[0-9A-Za-z]{27}$
Example:

"user_account_2NfK8sLq4RtVwXyZ1aBcDeFgHiJ"

Body

application/json

Request body for deactivating a user account

reason
enum<string>
required

Why the user account was deactivated.

Available options:
dormant,
frozen,
other

Response

User account deactivated successfully.

A user account object

id
string
required

The ID of the User Account object.

Pattern: ^user_account_[0-9A-Za-z]{27}$
Example:

"user_account_2NfK8sLq4RtVwXyZ1aBcDeFgHiJ"

status
enum<string>
required

Current state of the user account

Available options:
active,
inactive,
closed
features
enum<string>[]
required

Features granted to the user account.

A feature of the user account

Available options:
deposit,
credit_with_underwriting,
credit_without_underwriting
entities
object
required

Entity relationships associated with the user account (response only)

documents
object[]
required

Legal or informational documents associated with the user account, each referencing a file you uploaded with POST /v2/files. Lead accepts only files whose type can link to a user account. See the file type enum list.

legacy_documents
object[]
required

Document entries created on v0 User Accounts, returned exactly as sent. [] on user accounts with none, including every user account created on v2. Read only: ignored if included on a POST or PATCH.

metadata
object
required

A set of key-value pairs that can be used to store additional information related to this object.

created_at
string<date-time>
required

Creation timestamp

deactivation
object

Why the user account was deactivated. Present only when status is inactive.

closure
object

Why the user account was closed. Present only when status is closed.

application_id
string

Lead-issued identifier of the application. application_ followed by 27 letters or digits.

Pattern: ^application_[0-9A-Za-z]{27}$
Example:

"application_2N5Hk8xYmQpL9rBvC3jDaFgHiJk"

underwriting
object

Underwriting details for the user account

adverse_action_notice
object

The adverse action notice you sent the end user.

product_name
string

Partner's name for their product, as set on v0. Read only: present only on user accounts that were given a product name through the v0 Accounts API or an Account file. v2 requests can't set it; the product config carries it. Ignored if included on a POST or PATCH.

client_account_id
string

The identifier you assigned in an Account file. Present only on user accounts created through file upload. Omitted on user accounts created through the API, which are identified only by id.

balance_sheet_model
enum<string>

How Lead carries the user account's credit on its balance sheet. Present when the user account has a credit feature; omitted otherwise.

Available options:
held_for_investment,
held_for_sale
product_config_id
string

The id of the product configuration the user account was created under. Omitted only on user accounts created before product config ids existed.

Pattern: ^product_config_\w+$
Example:

"product_config_xyz123"