Error Code UDAPI100050

Any help is appreciated with the following error. Error is thrown just after creating access_token when tried to get the margins.

HTTP response body: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100050”,“message”:“Invalid token used to access API”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100050”,“property_path”:null,“invalid_value”:null}]}’

Hi @Srinivasa_Rao_T,

The error message indicates that an invalid access token is being used in your request to our servers.

Kindly regenerate your access token and refer to our documentation page for guidance on how to create an access token.

Thank you.

I had regenerated at least 7 to 8 times before posting this message. Any other suggestions Ketan?

@Srinivasa_Rao_T Could you please try the same process using Postman and share the error message you encounter? Additionally, share the cURL request with us for further investigation.

Please ensure that you remove any sensitive information, such as your API key and secret, before sharing the cURL request.

You can also cross-check your code with the sample code available here: Sample Code.