question

donkowa93 avatar image
0 Likes"
donkowa93 asked

Scopes, Keys, and Tokens! Oh My!

Im having some issues in a sandbox instance I created. using my developers login I can see my id's and secret... below that it says available scopes ... am I to assume that those scopes are built into my sandbox?


Using the C# Ebay.OAuth.client via a list I can pass one or several scopes to the GetApplicationToken(); passing the paramaters of production or sandbox and a list of UrlEncode scopes. any scope I pass other then the api scope (https://api.ebay.com/oauth/api_scope")

returns {"error":"invalid_scope","error_description":"The requested scope is invalid, unknown, malformed, or exceeds the scope granted to the client"}


ideally id like to pass api_Inventory or api_Fulfillment scopes...

oauth scopes
· 1
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.

Sooo Crickets... Awesome! is my question in the wrong place or covered in documentation and I just didn't see it?

0 Likes 0 ·
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @donkowa93,

You need to use authorization code grant(User Token) for Inventory API and Fulfillment API scopes, As these API uses user token not application token.

Ref:-https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html

Ref:- https://developer.ebay.com/api-docs/sell/fulfillment/resources/order/methods/getOrder

Ref:- https://developer.ebay.com/api-docs/sell/inventory/resources/inventory_item/methods/bulkCreateOrReplaceInventoryItem

Best regards ,
eBay Developer Support

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.

stade_2143 avatar image
0 Likes"
stade_2143 answered

This document explains how applications installed on devices like phones, tablets, and computers use Google's OAuth 2.0 endpoints to authorize access to the YouTube Data API.


skylightpaycard


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.