cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Generic questions

Hi all,

I'm approaching the use of the Ebay API for the first time.

I need to ask you some questions:

1. What is the duration of the Token? Currently when I create a new Token (sandbox or production), its duration is only one hour. Will this always be the case or is there a way to create a permanent or longer lasting Token?

2. I can't work with the Sandbox. It looks like I can only test API calls but I can't create, edit or close an AD. Is that it? or am I doing something wrong?

 

Thank you in advance.

Regards,

Renato

Message 1 of 7
latest reply
6 REPLIES 6

Re: Generic questions

Hi @guardiano78 

 

We support two methods for authorizing the calls you make to the eBay APIs:

 

  • OAuth—All eBay RESTful APIs use the OAuth 2.0 protocol for application and user authorization. OAuth is the industry standard for assuring your online transactions are secure. 

     

    OAuth user access token remains valid for 7,200 seconds (2 hours) from the time it was generated. After the token expires, you will need to renew it using the supplied refresh token. You can also use OAuth tokens with eBay Traditional APIs.

    Ref: https://developer.ebay.com/api-docs/static/oauth-authorization-code-grant.html

 

           Important: If you use Traditional APIs like the Trading API, we recommend that you use OAuth, but                     eBay's older Auth'n'Auth process is still available for older applications.

 

  • Auth’n’Auth—The authentication and authorization technology used by eBay Traditional APIs. Auth`n`Auth token is valid for 18 months across multiple sessions of the application.

           Ref: https://developer.ebay.com/api-docs/static/understand_auth_n_auth_tokens.html

 

Best Regards,
eBay Developer Support
Message 2 of 7
latest reply

Re: Generic questions

hello,

thank you so much for reply.

Since I'm starting now for the first time, also in the future, which type do you recommend me to use?

 

Regards,

Renato

Message 3 of 7
latest reply

Re: Generic questions

@guardiano78 

The future trend is to use OAuth, so you might start with that.

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 4 of 7
latest reply

Re: Generic questions

Hello @shipscript 

 

thank you very much, I'll follow your suggestion 😀

 

Speaking of Sandbox, does anyone know if it works well? Is it possible to add, edit and terminate ADS via API?
or is it just for generic API testing?

 

Message 5 of 7
latest reply

Re: Generic questions

The duration of a token depends on the specific API or service that you're using. However, in general, tokens have a limited duration for security purposes. This means that they will expire after a certain period of time, typically anywhere from a few minutes to a few hours, depending on the service.

 

 

 

BallSportsGames

Message 6 of 7
latest reply

Re: Generic questions

Hello,

why when I create a token, it only lasts one hour?
What am I doing wrong?

 

Please see image, I created it at 16.11 and it expires at 17.11 today:

https://imagogroup.it/ebay-api-token.png 

 

Regards

Message 7 of 7
latest reply