clusterBuddy
clusterBuddy

Reputation: 1554

eBay API request error: 'Invalid access token. Check the value of the Authorization HTTP request header.'

enter image description here

What am I doing wrong here?

Upvotes: 5

Views: 4000

Answers (2)

WSBT
WSBT

Reputation: 36323

If your token is for "sandbox" environment, make sure you use sandbox API endpoints for your requests as well.

Instead of https://api.ebay.com/buy/browse/v1/...,

try https://api.sandbox.ebay.com/buy/browse/v1/....

Upvotes: 3

Akshay Anurag
Akshay Anurag

Reputation: 744

One of the issues which might have happened is:

The access token might have expired

Use the refresh token to refresh the access token when it expires — you know when to do this when your call to the API returns a status code of 401 and the above body you saw in Postman.

Upvotes: 0

Related Questions