# Cannot cancel an order - "order\_id not found" even though it's correct

**URL:** <https://forum.alpaca.markets/t/cannot-cancel-an-order-order-id-not-found-even-though-its-correct/1846>\
**Category:** Alpaca Integration Applications\
**Created:** [June 18, 2020, 5:30am UTC](https://forum.alpaca.markets/t/cannot-cancel-an-order-order-id-not-found-even-though-its-correct/1846 "2020-06-18T05:30:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arrow107](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@arrow107](https://forum.alpaca.markets/u/arrow107)\
**Post date:** [June 18, 2020, 5:30am UTC](https://forum.alpaca.markets/t/cannot-cancel-an-order-order-id-not-found-even-though-its-correct/1846/1 "2020-06-18T05:30:23Z")

</div>

I’m trading on a paper account using Python interface to API. I get a list of all open orders and get order\_id for each. Then I’m trying to cancel some orders but API fails to do that, for example:

Found open buy order for LIND, order ID “f00cb441-0f76-4173-b35c-c6aaba4ec8a9”  
Making API call REST.cancel\_order(“f00cb441-0f76-4173-b35c-c6aaba4ec8a9”)  
Failed to cancel order “f00cb441-0f76-4173-b35c-c6aaba4ec8a9”, API response (exception value): “order not found for f00cb441-0f76-4173-b35c-c6aaba4ec8a9”

What am I doing wrong?

BUT I tried to submit orders with my custom order\_id and then cancel them. Still no luck. I’m only able to cancel all orders, but not single orders by their order\_id.
