Hi, facing this problem since this morning
- getting 400s on placing order via
/v2/orders
- response says
Invalid Token
- but the token are definitely valid - facing this across 5-6 client Ids
ps: problem is same on https://api.dhan.co/v2/orders
Hi, facing this problem since this morning
/v2/orders
Invalid Token
- but the token are definitely validps: problem is same on https://api.dhan.co/v2/orders
Hi @Shashwat ,
As per the screenshot you shared, we noticed that you’re using the Sandbox endpoint, which is intended only for testing purposes via the Dhan Developer Console: https://developer.dhanhq.co/.
To use the APIs in a live environment, please update the endpoint accordingly. You can refer to the official documentation for the correct production endpoints here:
DhanHQ API – Orders
@Shubham_Singh I tried the sandbox api only after it didn’t work on https://api.dhan.co/v2/orders
(mentioned in the main post)
anyways it seems to be working now.
@Shubham_Singh should I expect any RCA / postmortem on this issue ? I understand that 400 is a client side issue but the error messages was something that didn’t make sense to me - token was valid - I was able to place orders with the same token and payload a few hrs post the incident.