Invalid api_key error on running cancel_order or exit_order for BO

abhi555shek
Hi Team,

I am using Python client kiteconnect-3.7.7 for trading. I am able to connect fine using api_key and access_token and all the functions are running smoothly except cancel_order and exit_order. Whenever I run these functions using an 'BO' order id, system throws an error 'InputException: Invalid `api_key` or `access_token`.'
Could you please let me know what could be the issue.
Query:
kite.exit_order('BO',order_id=190744870047011)

Error:
InputException: Invalid `api_key` or `access_token`.
This discussion has been closed.