Token type in the Authorization header is invalid,ebay api
Asked Answered
A

1

13

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.?

Amphibole answered 3/5, 2017 at 13:20 Comment(0)
I
15

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

Icecap answered 23/8, 2017 at 7:56 Comment(2)
Cannot upvote this enough. If you could include a link the relevant docs, that would improve this answer a lot.Crossfertilize
Indeed you need to use Bearer in the Authorization header. Here is a link to the relevant documentation of the Ebay Request components documentation: HTTP headers for eBay REST requestsWren

© 2022 - 2024 — McMap. All rights reserved.