12-10-2023 10:29 AM
Hi all,
I am having a blocker issue on my side when I am trying to generate an application access token for PROD environment.
When I am requesting to https://api.ebay.com/identity/v1/oauth2/token and supplying as request parameter "scope : url encoded(https://api.ebay.com/oauth/api_scope)", I am receiving invalid_scope error.
To bypass the upper-mentioned issue, when i am not supplying scope at all, I am receiving a token as a response, but when using that token for
https://api.ebay.com/buy/browse/v1/item_summary/search, I am receiving access denied and insufficient permission issue.
Could you please help me to be unblocked ?
First of all cant understand why i am facing invalid_scope and then why the genereated token lacks permission?
Regards,
Razmik
12-12-2023 11:23 AM
Hi @razkarap_0
When minting OAuth access token using the client credentials grant flow, scopes should be URL-encoded and space-separated.
Browse API calls require an access token created with the client credentials grant flow, using the scope:
https://api.ebay.com/oauth/api_scope. Please make sure to use this scope when minting access token to execute the call.
12-12-2023 12:48 PM
Hi developer_support@ebay
Thanks for the reply, already figured out the issue.
Regards,
Razmik