Place Order Giving Error But Error is not Clear

V2.0 API, Place Order API is giving below error. But it doesn’t say what is the exact issue.

HTTP response headers: HTTPHeaderDict({‘Date’: ‘Tue, 19 Sep 2023 06:10:26 GMT’, ‘Content-Type’: ‘application/json’, ‘Transfer-Encoding’: ‘chunked’, ‘Connection’: ‘keep-alive’, ‘Vary’: ‘Origin, Access-Control-Request-Method, Access-Control-Request-Headers’, ‘message’: ‘request failed’, ‘requestId’: ‘90c66a47-1ace-455c-ab63-a3bfe93b0285’, ‘X-Content-Type-Options’: ‘nosniff’, ‘X-XSS-Protection’: ‘1; mode=block’, ‘Cache-Control’: ‘no-cache, no-store, max-age=0, must-revalidate’, ‘Pragma’: ‘no-cache’, ‘Expires’: ‘0’, ‘Strict-Transport-Security’: ‘max-age=0; includeSubDomains’, ‘X-Frame-Options’: ‘DENY’, ‘CF-Cache-Status’: ‘DYNAMIC’, ‘Set-Cookie’: ‘_cfuvid=KjGD81_iV01FT5SSSfOJfnEv.oUIKOEhCtZ3x_rLRpc-1695103826445-0-604800000; path=/;; HttpOnly; Secure; SameSite=None’, ‘Server’: ‘cloudflare’, ‘CF-RAY’: ‘808faa626c9a398f-MAA’})
HTTP response body: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100038”,“message”:“Invalid input passed to the API”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100038”,“property_path”:null,“invalid_value”:null}]}’

Parameters I’m passing:
API version = 2.0
Body =
{‘disclosed_quantity’: 0,
‘instrument_token’: ‘NSE_FO|50148’,
‘is_amo’: ‘Y’,
‘order_type’: ‘MARKET’,
‘price’: 0.0,
‘product’: ‘D’,
‘quantity’: 15,
‘tag’: None,
‘transaction_type’: ‘BUY’,
‘trigger_price’: 0,
‘validity’: ‘DAY’}

Issue is resolved after correcting is_amo=‘false’

It’s great to know that your issue has been resolved. We are actively striving to enhance the specificity of the error message for the order API.