Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Token type in the Authorization header is invalid,ebay api

I am calling ebay api but this error occurs "Token type in the Authorization header is invalid". I have tried both application token and user token but this error is not resolving.How to solve this error.?

like image 460
john Avatar asked May 03 '17 13:05

john


People also ask

How do I get my eBay authentication token?

Navigate to your Application Keys page on the eBay Developer Portal. Next to the App ID value (for Production or Sandbox environment), click the User Tokens link. In the Get a User Token Here section, select the OAuth (new security) radio button, then click the sign-in button.

What is eBay verification token?

OAuth access tokens verify to eBay that a request is coming from a valid application and that the application has the user's authorization to carry out the requests. Once you obtain a valid access token, use it to authorize a request.


1 Answers

You should change "Basic" with "Bearer".

Authorization: Bearer v^10#t^H5sI.... // your token

Api doc: https://developer.ebay.com/api-docs/static/rest-request-components.html#HTTP

like image 200
het Avatar answered Oct 20 '22 08:10

het