# OAuth Scopes
# URL encodings
A RESTful API sends requests in the form of a URL. Scopes are :Ex Because spaces and other special characters might appear in some URIs scopes are URL-encoded.
For example, https://api.ebay.com/oauth/api_scope/sell.inventory
would be URL-encoded as
https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.inventory
Multiple scopes can be specified together,separated using the space character. The space URL encodes to %20. So the URL encoding for the Sell Inventory and Sell Account scopes together would look like this:
https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.inventory%20https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.account
# Common scopes and their URL encodings
TODO: Try appending %20 to each URL-encoded name even if only 1 is used.
Scope | Method name | URL encoding |
---|---|---|
Sell inventory | https://api.ebay.com/oauth/api_scope/sell.inventory | https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.inventory |
Sell account | https://api.ebay.com/oauth/api_scope/sell.account | https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.account |
Sell fulfillment | https://api.ebay.com/oauth/api_scope/sell.fulfillment | https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.fulfillment |
# Partial list of scopes for application access
(From https://developer.ebay.com/api-docs/static/oauth-scopes.html)
TODO: Find the complete list!
Scope | Method name | URL encoding |
---|---|---|
Buy guest order | https://api.ebay.com/oauth/api_scope/buy.guest.order | https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fbuy.guest.order |
Buy item feed | https://api.ebay.com/oauth/api_scope/buy.item.feed | https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fbuy.item.feed |
Buy marketing | https://api.ebay.com/oauth/api_scope/buy.marketing | https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fbuy.marketing |
Buy offer auction | https://api.ebay.com/oauth/api_scope/buy.offer.auction | https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fbuy.offer.auction |