# Close account by user ID

Closes the user account and unenrolls from Equifax.
**Parameters:** The `{id}` path parameter is the user's unique identifier (UUID).
**Requirements:**
- The user must be active
- The user must belong to the host associated with the authentication token

**Note:** If unenrollment fails, the user is added to the unenrollment queue for retry.

Endpoint: POST /direct/close-account/{id}
Version: v3
Security: directToken

## Security:

  - `directToken` (unknown)
    http bearer JWT

## Path parameters:

  - `id` (string, required)

## Response 204:

  - `204` (unknown)
    Account closed successfully

## Response 204 headers:

  - `X-Request-Id` (string)
    Correlation id for this request. Quote it when reporting a problem - it identifies the call, and every bureau call it triggered, in the API log. Send your own X-Request-Id to correlate with your systems; a malformed value is replaced.

## Response 400:

  - `400` (unknown)
    Bad request

## Response 400 fields (application/json):

  - `timestamp` (string)

  - `codes` (array)

  - `messages` (array)

  - `details` (array)

## Response 400 headers (application/json):

  - `X-Request-Id` (string)
    Correlation id for this request. Quote it when reporting a problem - it identifies the call, and every bureau call it triggered, in the API log. Send your own X-Request-Id to correlate with your systems; a malformed value is replaced.

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `timestamp` (string)

  - `codes` (array)

  - `messages` (array)

  - `details` (array)

## Response 401 headers (application/json):

  - `X-Request-Id` (string)
    Correlation id for this request. Quote it when reporting a problem - it identifies the call, and every bureau call it triggered, in the API log. Send your own X-Request-Id to correlate with your systems; a malformed value is replaced.

## Response 404:

  - `404` (unknown)
    Not found

## Response 404 fields (application/json):

  - `timestamp` (string)

  - `codes` (array)

  - `messages` (array)

  - `details` (array)

## Response 404 headers (application/json):

  - `X-Request-Id` (string)
    Correlation id for this request. Quote it when reporting a problem - it identifies the call, and every bureau call it triggered, in the API log. Send your own X-Request-Id to correlate with your systems; a malformed value is replaced.

## Response 503:

  - `503` (unknown)
    Service unavailable

## Response 503 fields (application/json):

  - `timestamp` (string)

  - `codes` (array)

  - `messages` (array)

  - `details` (array)

## Response 503 headers (application/json):

  - `X-Request-Id` (string)
    Correlation id for this request. Quote it when reporting a problem - it identifies the call, and every bureau call it triggered, in the API log. Send your own X-Request-Id to correlate with your systems; a malformed value is replaced.

## Response 204 examples:

  - `No Content` (unknown)
    No Content

## Response 400 examples:

  - `User Not Found` (unknown)
    User Not Found

  - `Account Already Closed` (unknown)
    Account Already Closed

  - `Unauthorized Access` (unknown)
    Unauthorized Access

  - `Unenrollment Failed` (unknown)
    Unenrollment Failed

  - `Customer Not Found` (unknown)
    Customer Not Found

## Response 401 examples:

  - `Host Disabled` (unknown)
    Host Disabled

  - `Customer Disabled` (unknown)
    Customer Disabled

## Response 404 examples:

  - `Subject Not Found` (unknown)
    Subject Not Found

## Response 503 examples:

  - `Service Unavailable` (unknown)
    Service Unavailable

