06-10-2024 02:19 AM
Hii Shivam here,
I am facing issues while making an Api call to commerce/notification/v1/subscription Api.
Issues Occurring is not authorized error code 195011, seems to be my access token haven't access to related scopes but I'm able to make an Api call to /commerce/notification/v1/destination with same access token .
kindly help me regarding this issue, Thanks in Advance for the help.
06-17-2024 11:50 PM
@Anonymous wrote:Hii Shivam here,
I am facing issues while making an Api call to commerce/notification/v1/subscription Api.
Issues Occurring is not authorized error code 195011, seems to be my access token haven't access to related scopes but I'm able to make an Api call to /commerce/notification/v1/destination with same access token .
kindly help me regarding this issue, Thanks in Advance for the help.
Hello, @Anonymous
The error code 195011 you’re encountering indicates an authorization issue, specifically that your application is not authorized to subscribe to a topic due to insufficient scopes. Even though you can make an API call to /commerce/notification/v1/destination with the same access token, the /commerce/notification/v1/subscription endpoint may require additional scopes that are not included in your current access token.
Here’s what you can do:
Check the required scopes for the /commerce/notification/v1/subscription API endpoint. Ensure that these scopes are included in your access token.
Review your application’s permissions to make sure it has the necessary authorization to access the subscription endpoint.
Consult the API documentation for any additional requirements or steps needed to subscribe to a topic.
This info is helpful to you.
Best Regard,
Gregory Chavez