[SDK] : ERROR : Sell Approval done using one script isnt working for another script

Hi Team,

I again hit the same issue that the EDIS is not Validated when I already did the using some other script at 8:50 am today morning.


*****Placing order by sending the following body to Upstox : {‘quantity’: 4, ‘product’: ‘D’, ‘validity’: ‘DAY’, ‘price’: 0, ‘tag’: ‘UPSTOX’, ‘instrument_token’: ‘NSE_EQ|INE118A01012’, ‘order_type’: ‘MARKET’, ‘transaction_type’: ‘SELL’, ‘disclosed_quantity’: 0, ‘trigger_price’: 0, ‘is_amo’: ‘false’}

Exception when calling OrderApi->place_order: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({‘Date’: ‘Mon, 25 Sep 2023 03:52:21 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’: ‘afa41046-d4fd-4e88-94f3-49a7915a92b8’, ‘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=vf_kCF4fVTNUakSg5yxXe1_4IU6dbnE6BLMZskEtPKI-1695613941297-0-604800000; path=/; domain=.upstox.com; HttpOnly; Secure; SameSite=None’, ‘Server’: ‘cloudflare’, ‘CF-RAY’: ‘80c0505c3b6b06a8-MAA’})
HTTP response body: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100026”,“message”:“EDIS is not validated”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100026”,“property_path”:null,“invalid_value”:null}]}’

Approval emails at 8:50 am today

@RahulMittal87 We are currently checking with our internal team to investigate the potential causes of the error you’ve encountered. We will provide you with an update shortly.

@RahulMittal87 It appears that you have authorized the holdings from your Android device twice, both times successfully, and once attempted to do so from the web, which was not completed successfully.

Currently, our requirement is for users to authorize holdings from the web when they intend to sell via the API. For mobile selling, holding authorization is necessary from a mobile device.

We acknowledge the necessity for streamlining this process and are working towards creating a unified authorization method that would work seamlessly across all platforms. Until we implement these changes to enable cross-platform authorization, we kindly request that you continue authorizing holdings from the web.

Thanks for the quick update @Pradeep_Jaiswar . Yes, on mobile I did the authorization. Using Web, I just generated the token to fetch the secrets.
Are there any steps for UI authorization - as I have not done that till now.
Also, if I enable DDPAI (forgot the exact name), then this applies to all Web, Mobile, API, etc right?

Yes, activating DDPI in your account will apply to all orders on the platform, including those made through the API, eliminating the need for future authorization. For detailed instructions on how to activate DDPI, please refer to the documentation provided at this link: How do I activate DDPI (POA) on Upstox? - Upstox Help Center.

To authorize access from a web browser, please log in to https://pro.upstox.com/ on your laptop. You can then complete the authorization process from the ‘Holding’ tab, just as you would on a mobile device."

Thank you @Pradeep_Jaiswar for the detailed info.