Getting "<404> Not Found" while fetching order history for an executed order

Hi Upstox team,

I am getting below response
<404> Not Found: The specified resource could not be found
while trying to fetch the order details.

I am using below API:-

After placing the order, my system is waiting for 2 seconds (Because above URL is not providing order updates in real time) and after that it is trying to fetch the order details using above API

But even after the order got completed and system waited of 2 seconds still the API sent 404 response.

Please find the below code as well as system generated logs for more details.

buyJSON = placeOrder_POST(quantity=lotsToTrade, validity="IOC", order_type="LIMIT", side="BUY", price=bestSeller,
        buyOrderID = buyJSON['data']['order_id']

        # Sleeping because getOrderDetails_GET() do not work in real time
        await asyncio.sleep(2)

        responseEntry = getOrderDetails_GET(buyOrderID)


2023-12-28 09:16:52.384823
<404> Not Found: The specified resource could not be found (*Being printed from getOrderDetails_GET() function)

please find the SS for the trade executed:-

I faced similar issue on 12-Dec-2023 also. and after that this is the 2nd time facing this issue.

please let me know why this is happening, and what is the required fix.


Thank you for contacting us. We have received your order number and will investigate the matter. We will get back to you shortly.

Hi @Pradeep_Jaiswar

Today also same thing happend for me.

Please find the order IDs:-
1] 240102000800162
2] 240102000800492

Even though the order got completed, and system waited for 2 more seconds… I got below response from API:-
<404> Not Found: The specified resource could not be found

Please help



I do notice a 2-second delay between the Place Order and History API calls. Our team is currently investigating this issue. Once we have an update, I will make sure to inform you promptly.

Thank you for your patience!

Hi @shanmu @Pradeep_Jaiswar
Any update on above issue?

It’s recommended to pause for 2 seconds before getting the order. We are currently evaluating the precise duration needed. The process of sending an order to the exchange and receiving updates is asynchronous. This workflow includes a variety of components. We are conducting an analysis of this and will get back to you with an answer. I appreciate your patience.