brokenoval avatar image
brokenoval asked signup commented

How to GET merchant access_token via OAuth for existing Clover App?

We have an existing app that integrates with the clover system on the device.

We have a separate on-line portal that provides the venue with a data dashboard, currently using our own data. I would like however to integrate the dashboard with the venue's Clover data e.g. Orders/ Inventory etc.

Currently we don't store any Clover access_token, only Merchant IDs.

After reading through the documentation I discovered in order to connect a businesses data I must:

  • Access REST interface via OAuth
  • Use a valid access_token obtained via the Oauth procedure (
  • Have a URL specified under "Web App" in app settings in order to access the access_token
  • Then I can access all the API calls from our web dashboard

I tried adding a URL to an existing app (that has an APK uploaded & installed), and this broke the physical installation on the device i.e. couldn't reinstall the app (update etc). However it did then give me access to grab and use my merchants access token to pull their data into the web dashboard.

So my questions are:

  • How can I grab the access_token for a merchant via OAuth without specifying a URL in the app settings?
  • Can we have multiple "types" of the same app (e.g. Web and Clover App) - or do we have to chose one only?

NOTE: I realise we could send up an accesstoken from the installed app and store it on the server, but if there's a better way to get the accesstoken without an APK update that would be useful.

1 comment
10 |2000

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

signup avatar image signup commented ·

hello You got answer?

0 Likes 0 ·

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered

You don't need to specify a URL for this. In my test enviorment regardless if it's a web of android app, I use web, then exchange the code for a token using oauth, well explained here:

Just set the url to localhost.

10 |2000

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