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

createSubscription error 195011 Not authorized for this topic.

I am trying to subscribe to notifications using the createSubscription. 

 

I have been able to call other APIs, I've been able to create a destination. However, every time I try to use the create subscriptions I get a 195011 error. Regardless if it is scoped to app or user level.

 

Scopes used creating the token:

scope: [
  ],
 
I have tried with the following payloads
{
  topicId: "MARKETPLACE_ACCOUNT_DELETION",
  status: "ENABLED",
  payload: {
    format: "JSON",
    schemaVersion: "1.0",
    deliveryProtocol: "HTTPS",
  },
  destinationId: "xxx-xxx-xxx-xxx",
}
 
and 
 
  topicId: "ITEM_AVAILABILITY",
  status: "ENABLED",
  payload: {
    format: "JSON",
    schemaVersion: "1.0",
    deliveryProtocol: "HTTPS",
  },
  destinationId: "xxx-xxx-xxx-xxx",
}
 
I get the same error if I use testing harness or via my code. Thoughts?
Message 1 of 7
latest reply
6 REPLIES 6

createSubscription error 195011 Not authorized for this topic.

I get the same issue, the docs are confusing  

Message 2 of 7
latest reply

createSubscription error 195011 Not authorized for this topic.

did you solve the issue meanwhile?

Message 3 of 7
latest reply

createSubscription error 195011 Not authorized for this topic.

Anonymous
Not applicable

I am also getting the same issue "Not Authorized",
Did someone has solution for it?

Message 4 of 7
latest reply

createSubscription error 195011 Not authorized for this topic.

Use Application Token created using client credentials grant flow to getsubscription and createsubscription for scope application.

Message 5 of 7
latest reply

createSubscription error 195011 Not authorized for this topic.

We're having the exact same issue. No matter wether we use client credentials or authorization code grant flow... we can create destinations, list subscriptions but not subscribe to ITEM_AVAILABILITY.

 

{"errors":[{"errorId":195011,"domain":"API_NOTIFICATION","category":"REQUEST","message":"Not authorized for this topic."}]}
Message 6 of 7
latest reply

createSubscription error 195011 Not authorized for this topic.

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).
Message 7 of 7
latest reply