Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

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

    Python SDK
    2
    2
    4
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mani1090 last edited by

      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.

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @mani1090 last edited by

        Hi @mani1090

        Please test this API in postman still API getting failed means share the cURL here.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post