Sandbox API login error: UCC missing

Hi team,

I’m trying to log in to the Upstox sandbox using the OAuth URL:
https://api-sandbox.upstox.com/v2/login/authorization/dialog?client_id=XXXX&redirect_uri=http://127.0.0.1/&response_type=code&ucc=SANDBOX123

But I get this error:

{“status”:“error”,“errors”:[{“errorCode”:“”,“message”:“Required request parameter ‘ucc’ for method parameter type String is not present”,“propertyPath”:“ucc”,“invalidValue”:null,“error_code”:“”,“property_path”:“ucc”,“invalid_value”:null}]}

I tried my live UCC too, but it didn’t work.

Can someone please confirm the correct UCC for sandbox?

Thanks.

Hi @RASHMI_40236078
This endpoint is not supported for sandbox apps.

Here is a list of supported endpoints in sandbox.
Also, please refer to this guide on how to create a sandbox app and generate an access token.

Thanks!