Reputation: 1554
Invalid access token. Check the value of the Authorization HTTP request header.
What am I doing wrong here?
Upvotes: 5
Views: 4000
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
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