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

# Cancel All Orders

`POST /v1/orders/cancel-all`

Cancel all open orders for a subaccount.

If `river_ids` is set, only orders on those instruments are cancelled;
it must be omitted/null or non-empty. Cancellation is processed
asynchronously by the order consumer.

## Request body

- CancelAllRequest — Request body for cancelling all orders for a subaccount.
  - `subaccount_id` string, uuid, required
  - `river_ids` integer[], nullable — If set, only cancel open orders for these instruments; otherwise cancel all open orders on the subaccount. Must be either omitted/null or a non-empty list.

## Response `202`

Successful Response

- CancelOrderResponse — Schema for cancel order response
  - `cancelled_river_order_ids` string[], required — List of cancelled river order identifiers
  - `failed_cancelled_reasons` object, required — Dictionary of failed to cancel river 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/3776a0431319/schema)
