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.?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With