question

lubamb-86 avatar image
1 Like"
lubamb-86 asked ·

How to add additional scope to production keyset ?

Hello, I'm trying to create a user token via developer console (since we need to access catalog API, but with only a single user). Everything looks fine in sandbox environment, but production keyset does not seem to have this scope: https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly How can I add additional scope to my production keyset, through my developer console ?
catalog apiscopes
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

it_support_and_services avatar image
1 Like"
it_support_and_services answered ·
@sanjeev_developersupport Hi, Thanks for your reply but it doesn't help me at all. I have the token and am able to successfully retrieve orders using the https://api.ebay.com/sell/fulfillment/v1/order endpoint using it. What I need to do, but can't, is retrieve the user details for the token. I believe the correct endpoint is https://apiz.ebay.com/commerce/identity/v1/user/ but, when I attempt to use it, I get an "Insufficient permissions to fulfill the request." error. From what I can't make out from the documentation, I need the https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly scope added to my production key set but there are no clues as to how I can add it or get it added.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ericday avatar image
0 Likes"
ericday answered ·
Scopes aren't part of the keyset. They are sent in the querystring of your auth url to retrieve an auth code. You could try adding the scope to the querystring if you're getting the url from the developer "User Tokens" page. If you're using the .Net library, the call to get an auth url would look like this with you passing in your IList of scopes. _oauthService.GenerateUserAuthorizationUrl(OAuthEnvironment.PRODUCTION, _scopes, null);
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sanjeev_developersupport avatar image
0 Likes"
sanjeev_developersupport answered ·
Hi @ubamb-86 and @it_support_and_services, Catalog API requires an user access token created with the authorization code grant flow, with the auth scope. Please go through with the given docs and let us know if it helps you. https://api.ebay.com/oauth/api_scope/sell.inventory OR https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly https://developer.ebay.com/api-docs/commerce/catalog/resources/product_summary/methods/search https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html Best Regards eBay Developer Support
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

it_support_and_services avatar image
0 Likes"
it_support_and_services answered ·
I'd like to know that too. I need the commerce.identity.readonly scope but I can't see any way of adding it or getting it added.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.