Production API not working
Hello!
I'm trying to use the browse API which is working fine when using sandbox mode.
I have generated production API key and oauth token but I'm getting and error saying "Invalid access token. Check the value of the Authorization HTTP request header."
I suspect that the production API does not have access to the Browse API scope, but not sure how I can get access to it on real live data.
For context I'm just developing at the moment but want to test how my app works on real data.
Any help much appreciated!
akka881
Posted 2 years ago·Last reply 2 years ago
2 comments
shipscript
·2 years ago@akka881
Be sure to use your production keyset for the production token:
https://developer.ebay.com/my/keys
Notice on that same page that you are provided more scopes for the Sandbox than for Production.
At the bottom of the production scope list, find " Client Credential Grant Type", which will probably have only one scope type: https://api.ebay.com/oauth/api_scope
This scope is sufficient for the Browse API. Be sure to include that scope when you generate a "client_credential" 2-hour token for your application. That token must be reminted every two hours.
znts-wholesale-global
·2 years agoI have explained it in detail on how to get access token for PROD
https://github.com/CMS365-PTY-LTD/EbaySharp?tab=readme-ov-file#access-and-security
Have a read thorough and let me know If any step is missing and I will add in the doco.