question

yofi5stars avatar image
0 Likes"
yofi5stars asked ·

oauth2 client token creation for sell.inventory scope fails.

Hi, I am experiencing issues creating an inventory item in the new sell API. I would like to create one client oauth token and use that in the backend system. There is no need for user oauth tokens. Anyways, here are the flow i'm seeing fail. Firstly, to clarify the issue, a oauth2 client token request for this scope works. https://api.ebay.com/oauth/api_scope. But for https://api.ebay.com/oauth/api_scope/sell.inventory fails. Full details are below, but my question is summarized above.: 1) Generated client oauth token with scope : https://api.ebay.com/oauth/api_scope 2) When try to call the api https://api.sandbox.ebay.com/sell/inventory/v1/inventory_item/{sku} With header: Authorization : Bearer {auth token from step 1} Get error: {"errors":[{"errorId":2003,"domain":"ACCESS","category":"APPLICATION","message":"Internal error","longMessage":"There was a problem with an eBay internal system or process. Contact eBay developer support for assistance","parameters":[{"name":"code","value":"415"}]}]} This is expected, because the scope requested in client oauth token request does not include selling. However, when I try to make request 1 with the scope : https://api.ebay.com/oauth/api_scope/sell.inventory {"error":"invalid_scope","error_description":"The requested scope is invalid, unknown, malformed, or exceeds the scope granted to the client"} Please help?
inventory apisell apioauth2
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
zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered ·
Hi yofi5stars, For selling on eBay via inventory API, you must use OAuth access tokens verify to eBay that a request is coming from a valid application and that the application has the seller's authorization to carry out the Inventory API requests. Best Regards,
· 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.