question

gummus3 avatar image
0 Likes"
gummus3 asked ·

Access Denied for Catalog RESTful API

Hello,


When I send requests to the endpoints getProduct and search in the catalog RESTful api, I always get the following response:


{"errors":[{"errorId":1100,"domain":"ACCESS","category":"REQUEST","message":"Access denied","longMessage":"Insufficient permissions to fulfill the request."}]}


The access token I used for the request had the scope https://api.ebay.com/oauth/api_scope


Does anyone know why the request is not working?


Thank you,

Jimmy

commerce
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.

1 Answer

· Write an Answer
eram_developersupport avatar image
0 Likes"
eram_developersupport answered ·

Hi @gummus3 ,

Can you please retry the request and provide us the rlogID from response header. NOTE: This request requires an access token created with the authorization code grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):

https://api.ebay.com/oauth/api_scope/sell.inventory

https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly

See OAuth access tokens for more information.

REF: https://developer.ebay.com/api-docs/commerce/catalog/resources/product/methods/getProduct

Best Regards,

eBay Developers Support

· 2 · 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.

Thanks so much for your help!

Here is the rlogID for a request I just made to the getProduct endpoint:

t6%60drfojafsl%3C%3Dpiedbqgklbgwj%28d3uwl*w%60ut3527-174bbdd8d0d-0x14bI


I have been using an access token of the Client Credential Grant Type. I will try with an access token from the the authorization code grant flow instead and see if that resolves the problem.


Thank you,

Jimmy


0 Likes 0 · ·

Thank you very much for your help! Using an access token created with the authorization code grant flow solved the problem :)

0 Likes 0 · ·

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.