Invalid Credentials error while trying to authorize

Using the above code to get the access token, following the below guides:

For some reason, I keep getting “Invalid Credentials” message, error code: UDAPI100016.
My credentials are correct though, I’ve double checked every single time.

Client ID: KB4716

  • By examining the code, I understand that you are implementing the first stage of authorization. After successfully calling this URL, you will be redirected to the Upstox login page to enter your credentials. So please try this url from browser.
  • Once you enter your credentials, you will receive a code parameter, which serves as your authorization code. This code will be used in the next stage of the authorization process. Then you can call Get Token api to get access token

Thank you.

I know, I logged in using this URL from the browser and after that I’m getting “Invalid Credentials” error. I have attached a photo for reference.