question

dhanaraj avatar image
dhanaraj asked Lee Tickett answered

Get Access token without redirect Url or code

I am placing an Order in Clover by calling my Web API controller from my mobile app.

Is there any alternate way to get the access_token, without the "code" value (from navigation URL https://sandbox.dev.clover.com/oauth/authorize?client_id={APP_ID}).

Need access token without asking the user to log in.


How long will the Access token will be valid when generated from redirect url like below

https://www.example.com/oauth_callback?merchant_id={MERCHANT_ID}&client_id={APP_ID}&code={AUTHORIZATION_CODE}

OrdersAPI Token
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

You cannot obtain a token without asking the merchant to login. If you could then any app could have access to any merchant's data without their consent. The tokens are good for one year.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Lee Tickett avatar image
Lee Tickett answered

I believe the current lifetime for a token is set at 1 year.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community