Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. mani1090
    3. Posts
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Groups 0

    Posts made by mani1090

    • OOrder API returns HTTP 400 empty response (need backend provisioning check)

      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.

      posted in Python SDK
      M
      mani1090