---
title: "Cancel Order"
method: DELETE
path: "/v1/accounts/{account_id}/orders/{order_id}"
tags: ["Trading"]
---

# Cancel Order

`DELETE /v1/accounts/{account_id}/orders/{order_id}`

## Request

- Base URL: `https://api.tradier.com`
- URL: `https://api.tradier.com/v1/accounts/{account_id}/orders/{order_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/tradier/apis/tradier-brokerage-api/docs/v1/accounts/:account_id/orders/:order_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Cancel an existing order

## Path parameters

- `account_id` string, required
- `order_id` integer, required

## Headers

- `Accept` 'application/json', required

## Response `200`

Order cancellation response

- object
  - `order` object
    - `id` integer: The order ID
    - `status` 'ok' | 'pending_cancel': The status of the cancellation

## Other responses

- `400`: Invalid request parameters or body
- `401`: Authentication required or invalid credentials
- `403`: Access denied to the requested resource
- `404`: The requested resource was not found

---

[API](https://skmtc.dev/tradier/apis/tradier-brokerage-api.md) - [All operations](https://skmtc.dev/tradier/apis/tradier-brokerage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tradier/apis/tradier-brokerage-api/revisions/3cda47abe673?raw)
