---
title: "Cancel All Complex Orders"
method: POST
path: "/v1/complex-orders/cancel-all"
tags: ["complex-orders"]
---

# Cancel All Complex Orders

`POST /v1/complex-orders/cancel-all`

Cancel all cancellable complex orders (conditional and iceberg) for a subaccount.

Returns the list of complex_order_ids that were submitted for cancellation.

## Request body

- CancelAllComplexOrdersRequest — Request body for cancelling all complex orders for a subaccount.
  - `subaccount_id` string, uuid, required — Subaccount to cancel all complex orders for
  - `river_ids` integer[], nullable — If set, only cancel cancellable complex orders for these instruments. Must be either omitted/null or a non-empty list.

## Response `202`

Successful Response

- CancelComplexOrderResponse — Schema for cancel order response What is returned when user cancels an order/ orders.
  - `cancelled_complex_order_ids` string[], required — List of cancelled complex order identifiers
  - `failed_cancelled_complex_order_ids` object, required — Dictionary of failed to cancel complex order identifiers and reasons

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/rivermarkets/apis/river-finance-api.md) · [All operations](https://skmtc.net/rivermarkets/apis/river-finance-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rivermarkets/river-finance-api/revisions/c90d562d4ad1/schema)
