cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in ebay commerce/notification/v1/subscription api

Anonymous
Not applicable

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.

Message 1 of 5
latest reply
4 REPLIES 4

Re: Issue in ebay commerce/notification/v1/subscription api

Facing same issue here. Help is appreciated.

Best Regard

myfordbenefits

Message 2 of 5
latest reply

Re: Issue in ebay commerce/notification/v1/subscription api

Hi @Anonymous  @blanca23_32,

 

Commerce API subscription calls like createSubscription support both Application and User access token created authorization code grant flow or client credentials grant flow.

 

An OAuth token created with the client credentials grant flow and the https://api.ebay.com/oauth/api_scope scope is required in order to create, update, or retrieve application-based subscriptions to notification topics.

 

An OAuth token created with the authorization code grant flow and the https://api.ebay.com/oauth/api_scope/commerce.notification.subscription scope is required in order to create, update, or retrieve user-based subscriptions to notification topics.

Best Regards,
eBay Developer Support
Message 3 of 5
latest reply

Re: Issue in ebay commerce/notification/v1/subscription api

Thanks for the help,

Now I understand that to subscribe to an application-scoped notification, we need an application token, and to a user-scoped notification, we need an access token.

Message 4 of 5
latest reply

Re: Issue in ebay commerce/notification/v1/subscription api

We want to subscribe to ITEM_AVAILABILITY but can't get it to work, tried both, user and application tokens.

 

According to the response from https://developer.ebay.com/api-docs/commerce/notification/resources/topic/methods/getTopics we need an application token which we have. The response also contains the following:

 

authorizationScopes: ['https://api.ebay.com/oauth/api_scope/buy.item.stream']

 But when I add this scope to the token request, I'm getting "The requested scope is invalid, unknown, malformed, or exceeds the scope granted to the client" as a response. With just 

https://api.ebay.com/oauth/api_scope the error is the same as the thread starter's (195011).
 
Any suggestions? Thanks!
Message 5 of 5
latest reply