---
title: "Create account liquidation request"
method: POST
path: "/accounts/{account_id}/liquidations"
tags: ["Liquidations"]
---

# Create account liquidation request

`POST /accounts/{account_id}/liquidations`

## Request

- Base URL: `https://sandbox.upvest.co`
- URL: `https://sandbox.upvest.co/accounts/{account_id}/liquidations`
- Auth: OAuth 2 (client credentials, token URL `https://sandbox.upvest.co/auth/token`, scopes: `account_liquidations:admin`)

Initiates a full liquidation of an investment account, placing sell orders for all held positions and converting the proceeds to cash.

Exactly one of `user_id` or `business_id` must be provided in the request body.

See the Liquidations guide ([TOL](https://docs.upvest.co/products/tol/guides/liquidations) / [BYOL](https://docs.upvest.co/products/byol/guides/liquidations)) for implementation details.

## Headers

- `idempotency-key` string, uuid, required

## Request body

- union: Request body for initiating an account liquidation. Exactly one of `user_id` or `business_id` must be provided.
  - object
    - `user_id` string, uuid, required: Unique identifier of the user, as a UUID.
    - `business_id` string, uuid: Unique identifier for the business.
  - object
    - `user_id` string, uuid: Unique identifier of the user, as a UUID.
    - `business_id` string, uuid, required: Unique identifier for the business.

## Response `202`

Account liquidation object

- object: Represents an account liquidation — a request to sell all investment positions in an account and convert the proceeds to cash. Contains references to each individual sell order.
  - `id` string, uuid, required: Universally Unique Identifier (UUID) of an account liquidation.
  - `created_at` string, date-time, required: Date and time when the resource was created. [RFC 3339-5](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6), [ISO8601 UTC](https://www.iso.org/iso-8601-date-and-time-format.html)
  - `updated_at` string, date-time, required: Date and time when the resource was last updated. [RFC 3339-5](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6), [ISO8601 UTC](https://www.iso.org/iso-8601-date-and-time-format.html)
  - `user_id` string, uuid: Unique identifier of the user, as a UUID.
  - `business_id` string, uuid: Unique identifier for the business.
  - `account_id` string, uuid, required: Universally Unique Identifier (UUID) of the account.
  - `cash_amount` string, required: A positive decimal amount, as a string.
  - `currency` 'EUR' | 'GBP', required: Alphabetic three-letter [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code. * `EUR` — Euro. * `GBP` — Pound sterling.
  - `status` 'NEW' | 'PROCESSING' | 'FILLED' | 'CANCELLED' | 'SETTLED', required: Execution status of the account liquidation. * `NEW` — The liquidation has been created and awaits processing. * `PROCESSING` — The liquidation orders are being executed. * `FILLED` — All liquidation orders have been fully executed. * `CANCELLED` — The liquidation was cancelled before completion. * `SETTLED` — The liquidation proceeds have settled as cash.
  - `orders` object[], required: The individual position sell orders that make up this account liquidation.
    - `id` string, uuid, required: Universally Unique Identifier (UUID) of an account liquidation order.
    - `side` string, required: Side of the order. Liquidation orders are always `SELL`.
    - `status` 'NEW' | 'PROCESSING' | 'FILLED' | 'CANCELLED', required: Execution status of the account liquidation order. * `NEW` — The order has been created and awaits processing. * `PROCESSING` — The order is being executed. * `FILLED` — The order has been fully executed. * `CANCELLED` — The order was cancelled before completion.
  - `fee_collection_id` string, uuid, required: The unique identifier of the fee collection, as a UUID.

## Other responses

- `400`: Bad Request. The incoming request had a malformed parameter/object.
- `401`: Unauthorized. The caller has not been authenticated.
- `403`: Forbidden. The caller has been authenticated but is not allowed to take the requested action.
- `404`: Not Found. The requested resource could not be found.
- `406`: Not Acceptable. The resource does not have a current representation that would be acceptable to the user agent. "Accept" header defined unsupported value.
- `429`: Too Many Requests. The caller has exceeded their quota for the time period and has been throttled.
- `500`: Internal Server Error. The service encountered an unexpected error.
- `503`: Service Unavailable. The service handling for this request cannot be reached at this time.
- `504`: Gateway Timeout. The service gateway has reached its internal timeout.

---

[API](https://skmtc.dev/upvest/apis/upvest-investment-api.md) · [All operations](https://skmtc.dev/upvest/apis/upvest-investment-api/llms.txt) · [OpenAPI document](https://skmtc.dev/upvest/apis/upvest-investment-api/revisions/ca69534b631d?raw)
