I am getting Response<401> while trying to find out the history through order id.Python code is attached,I am able to connect the upstox through code and check the fund.Pls help Thanx in advance

The 401 Unauthorized error code indicates an invalid access token. It’s advisable to verify your access token once. Additionally, please note that the access token is valid only for one day as mentioned here