question

manu avatar image
manu asked manu commented

Connect to Clover to get menu database

Hi, I am new to clover, We have a clover POS setup in our location. We moving forward to online ordering where our clients can order online, so that when they submit the order it will submit in our Clover POS directly. To start the development, first thing is I need to do is 1. connect to Clover 2 Query its database. Can anyone please tell me how to proceed?

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

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

When you connect to Clover, you need to do so on behalf of a particular merchant. To do this, you need the merchant's credentials. There's no way to authenticate once and obtain the order database for all merchants. As you can imagine, that would be a security issue. With that in mind, can you describe how your app will work?

0 Likes 0 ·
manu avatar image manu commented ·

When a customer will order something online from our website, suppose customer order 1 extra large pizza and submit it, then an order will be submitted into our clover POS with the item id and other details. So basically, we are submitting orders online to clover. We have merchant credentials for our location

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

Have you looked into our OAuth API (https://docs.clover.com/build/web-app...) to obtain a token, and the web orders API (https://docs.clover.com/build/web-app...) for creating orders?

0 Likes 0 ·
manu avatar image manu commented ·

I am not creating a web app, I'm developing a service which can simply make an order request to the clover pos or make a request to get all items so I can show those items on our website.

I have a merchant ID And I know to query all items we have to submit a request to /v3/merchants/{mId}/items But I am confused about the URL to connect to the POS?

I want to make GET https request on my Clover POS remotely to get back its response in raw JSON format.

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

The Clover POS itself doesn't expose web services. You need to work with the Clover (cloud) REST APIs.

0 Likes 0 ·
Show more comments
Jeffrey Blattman avatar image
Jeffrey Blattman answered

Have you looked into our OAuth API (https://docs.clover.com/build/web-app...) to obtain a token, and the web orders API (https://docs.clover.com/build/web-app...) for creating orders?

10 |2000

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

Jacob Abrams avatar image
Jacob Abrams answered

In this case you want to connect the Clover server where all the data is ultimately stored using the REST APIs. If you are just doing this for your own personal merchant then yes API Token created in the web dashboard Setup > API Tokensis a good choice. The name of the API Token can be anything, it is just there so you can remember what the token is for in case you create several tokens. To use the API tokens see this guide: https://docs.clover.com/build/web-app...

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