question

yushiba avatar image
0 Likes"
yushiba asked

marketplace_insights API cannot be used

It can be executed by executing the marketplace_insights API in the sandbox, but it cannot be executed in the production environment.

[Command]

curl -X POST 'https://api.ebay.com/identity/v1/oauth2/token' \

-H 'Content-Type: application/x-www-form-urlencoded' \

-H 'Authorization: Basic LWVCYXlUcmVuLVBSRC0wZWY2ODZiYWUtMGJmOGU0MWU6UFxxxxxxxxxxxxxxxxxxxxxxxx' \

-d 'grant_type=client_credentials&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope'


--> {"access_token":"v^1.1#i^1#f^0#p^1#I^3#r^0#t^H4sIAAAAAxxxxxxxxxxxxxx=","expires_in":7200,"token_type":"Application Access Token"}


curl -X GET 'https://api.ebay.com/buy/marketplace_insights/v1_beta/item_sales/search?q=shirt&category_ids=137084' \

-H 'X-EBAY-C-ENDUSERCTX: affiliateCampaignId=xxxxxxxxxx' \

-H 'Authorization: Bearer v^1.1#i^1#f^0#p^1#I^3#r^0#t^H4sIAAAAAxxxxxxxxxxxxxx= '

-->

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


This may be due to the lack of https://api.ebay.com/oauth/api_scope/buy.marketplace.insights in the OAuth scope in my production environment.


But I don't know how to add https://api.ebay.com/oauth/api_scope/buy.marketplace.insights to a usable scope.


please help me.


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

0 Answers

· Write an Answer

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.