question

awaegel avatar image
awaegel asked emilyjohnson63 answered

Using REST API for simple internal integration

Hello,

I'm veteran web developer who's new to Clover, and have a question about how to access our merchant data via the REST API.

The use case is querying Clover data from our website's administrative backend in order to generate on-demand reports of recent sales and current inventory levels.

There's seems to be a way to generate an API token directly from my Merchant Dashboard screen, but it seems that can no longer be used to access production data.

Instead, the docs (https://docs.clover.com/docs/using-oauth-20) direct me to set up a developer account and develop a Clover 'app', which I then install on my Merchant account. We then use standard OAuth techniques to obtain an authorization code and trade it for an access token that we can use to make an API request.

This basically makes sense, but I'm confused about taking this into production - It seems like I need to publish this 'app' in the Clover App marketplace, then connect it to my production account. Naturally I'm reluctant to do this, as we would never ever want any other Merchant to access this app.

Is this the only way for me to access my production data? All of the API documentation seems to be for the use case of Developers publishing Apps into the Marketplace, and while I'm willing to do this, it just seems like the wrong path.

Thanks for any feedback!

I've read previous posts on this forum from a few years back and it seems like I'm not the only one who's confused.

REST APIApp MarketOAuth
2 comments
10 |2000

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

lilly45 avatar image lilly45 commented ·

Using a REST API for simple internal integration involves creating a set of standardized rules for communication between different software applications within an organization. REST (Representational State Transfer) APIs use HTTP requests to perform CRUD (Create, Read, Update, Delete) operations on resources, sportzfy app download represented in a stateless manner. For example, a company might use a REST API to allow their HR system to communicate with their payroll system. By sending HTTP requests (GET, POST, PUT, DELETE) to specific endpoints, the HR system can retrieve employee data from the payroll system or update records as needed. This approach ensures scalability, flexibility, and ease of maintenance, making it a preferred method for internal integrations.

0 Likes 0 ·
lilly45 avatar image lilly45 commented ·

Using a REST API for simple internal integration involves creating a set of standardized rules for communication between different software applications within an organization. REST (Representational State Transfer) APIs use HTTP requests to perform CRUD (Create, Read, Update, Delete) operations on resources, represented in a stateless manner. For example, a company might use a REST API to allow their HR system sportzfy app download communicate with their payroll system. By sending HTTP requests (GET, POST, PUT, DELETE) to specific endpoints, the HR system can retrieve employee data from the payroll system or update records as needed. This approach ensures scalability, flexibility, and ease of maintenance, making it a preferred method for internal integrations.

0 Likes 0 ·
parquet76 avatar image
parquet76 answered

Clover discourages the use of merchant tokens, but they are perfectly fine to use in cases like this and will work on production. You can easily test this to verify what I am saying.


10 |2000

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

awaegel avatar image
awaegel answered akr commented

Thanks - However I get "401 Unauthorized" when I try one of these tokens with the production API endpoints, so this might not work anymore.

5 comments
10 |2000

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

parquet76 avatar image parquet76 commented ·
Are you making the call directly from a web browser? If you are, you can't, you need to proxy the call via your server. Otherwise, you are either passing the token incorrectly or are using an improper merchant id (13 char alpha-numeric, check the URL in your dashboard for the correct id)
0 Likes 0 ·
awaegel avatar image awaegel parquet76 commented ·

I'm using curl from a command line like this:

curl --request GET --url 'https://api.clover.com/v3/merchants/<13-char-id>'  --header 'accept: application/json'  --header 'authorization: Bearer <api-token-long-uuid>'

I've set up a Clover sandbox developer account and this scheme works perfectly there (once I learned where to find the actual merchant id).

Will continue to dig and post what I find; appreciate the suggestions.

-1 Like -1 ·
akr avatar image akr awaegel commented ·
Thanks! This helped me to figure how to connect without creating an app.
0 Likes 0 ·
Show more comments
essie-63 avatar image
essie-63 answered

Using a REST API for internal integration is a common and efficient way to enable communication between different systems or services within an organization.

10 |2000

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

gptnederlands avatar image
gptnederlands answered logomaniya Suspended commented

This is a great question, and you're definitely not alone in your confusion! Clover's API documentation can be a bit developer-centric at times. Thankfully, there are ways to access your production data without publishing a full-fledged app in the marketplace. I'd suggest checking out ChatGPT for potential solutions. It might be able to provide code snippets or alternative approaches based on the latest Clover API updates.

10 |2000

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

stardewvaly3 avatar image
stardewvaly3 answered

Using a REST API for simple internal integration allows seamless data exchange between applications. While unrelated, Smart Play APK helps developers test and manage API integrations efficiently.

10 |2000

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

fastestbeam avatar image
fastestbeam answered

Using a REST API for simple internal integration involves sending HTTP requests (GET, POST, etc.) to exchange data between systems and site. It's lightweight, supports multiple formats like JSON, and allows seamless communication between applications for efficient data handling.

10 |2000

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

sibtulhassan92911 avatar image
sibtulhassan92911 answered

The medical study is 5 year for MBBS and 6 year for MD
Medical school

10 |2000

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

sigah85686 avatar image
sigah85686 answered


Using a REST API for simple internal integration is a great way to enable different systems or components within an organization ppc management services to communicate with each other seamlessly.

10 |2000

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

topaitrends avatar image
topaitrends answered

At TopAITrends.io, our mission is to make AI accessible for everyone. With a directory of many AI-powered apps, we provide daily updates on the latest tools and trends. Our platform offers personalized recommendations, user-driven reviews, and expert content to help you explore the ever-evolving world of AI. Whether you're looking to automate tasks or enhance your business, we’re here to guide you through your AI journey.

10 |2000

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

emilyjohnson63 avatar image
emilyjohnson63 answered

Slope is such a great game to stream! My slope online viewers love watching me navigate the twists and turns, and the moments where I narrowly avoid falling are always a hit. It’s also a game that’s easy for people to understand, so even those who haven’t played it before can enjoy watching. I’ve even inspired some of my followers to try it themselves!

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