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?
8 comments
zahuynh
·4 months agoNevermind I've fixed it, the initial access token's scope was correct but for subsequent access token minted from refresh token, I set the scope wrongly, had to modify the scope variable, chatgpt made the mess and it helped me clear the mess.
scope = ["https://api.ebay.com/oauth/api_scope", #Forgot to include those 2 below
"https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
"https://api.ebay.com/oauth/api_scope/sell.marketing"]
scope_str = " ".join(scope)
data = {
"grant_type": "refresh_token",
"refresh_token": CONFIG_DATA["refresh_token"],
"scope": scope_str
}
zahuynh
·4 months ago2026, anybody solved the issue? I've checked the scopes in my html login page's url (the https://auth.ebay.com/oauth2/authorize .....) , and can subscribe to any other notifications (like the "Feedback"-ish notifications), but can't for those with scope requirements.
marks-uhren
·2 years agoAccording 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:
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
marks-uhren
·2 years agoWe'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.
shisha_9154
·2 years agoUse Application Token created using client credentials grant flow to getsubscription and createsubscription for scope application.
an-57470
·2 years agoI am also getting the same issue "Not Authorized",
Did someone has solution for it?
ks-gruppe21
·2 years agodid you solve the issue meanwhile?
ldk_luk
·2 years agoI get the same issue, the docs are confusing