Hi Team,
I am facing an issue with the order placement API even though all mandatory headers are correctly included.
Authentication works perfectly and I can generate the Bearer token.
The problem is ONLY with the order placement route:
https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/placeOrder
The response is always:
HTTP/1.1 400
Content-Length: 0
(No JSON response from gateway)
This means the request is being blocked at the API Gateway level before it reaches the backend order service.
I am including these headers exactly as per docs:
X-API-Key,
X-PrivateKey,
Authorization: Bearer <token>,
X-ClientLocalIP,
X-ClientPublicIP,
X-MACAddress,
X-UserType,
X-SourceID,
Accept and Content-Type.
Manual order placement through the Angel One app works fine.
Only automatic API-based order placement gives a 400 empty response.
This looks like an API key provisioning / routing / mapping issue for my client code.
Client Code: K296995
Please escalate this to the SmartAPI backend team and check API key mapping for the order microservice.
Thank you.