4
  • I've registered as a developer with eBay and created an app.
  • I generated an Oauth (not Auth'n'Auth)
  • Using Postman to generate a simple request (image) and recieving an error for token invalidity
  • Error: Invalid access token. Check the value of the Authorization HTTP request header.

enter image description here

What am I doing wrong here?

Community
  • 1
  • 1
clusterBuddy
  • 1,523
  • 12
  • 39

2 Answers2

1

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

WSBT
  • 33,033
  • 18
  • 128
  • 133
0

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.

Akshay Anurag
  • 724
  • 1
  • 8
  • 27