question

dhanaraj avatar image
dhanaraj asked Lee Tickett commented

Creating android and ios app and uploading in play store

I want to create a online mobile app for retriving inventory from clover pos and placing orders in Mobile. Once they place the order, order needs to be send to clover POS system. Is it possible whether can we place the orders in mobile app with Clover Rest API in both customer own mobile devices(both ios and Android)
OrdersInventoryProduction
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.

dhanaraj avatar image dhanaraj commented ·

Note: app is public facing consumer applications in Play store or Appstore.

-1 Like -1 ·
Lee Tickett avatar image
Lee Tickett answered
This is doable but you'll probably need to something server side.
You need an api token to communicate with the Clover API (get inventory and create orders). This token wont be available on your customer facing devices.
You will need to store an api token server-side then your requests can proxy via your server.
Hope that helps.
L
10 |2000

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

dhanaraj avatar image
dhanaraj answered dhanaraj commented
If we are going to use API tokens. How can I get the api Tokens in PROD? If we are going to use Oauth it requires app ID. But we are not creating any apps in clover.
3 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.

Lee Tickett avatar image Lee Tickett commented ·

No real way around this, you will need to create a (web) app and follow the Clover approval process to be able to generate tokens via the oauth flow.

0 Likes 0 ·
dhanaraj avatar image dhanaraj Lee Tickett commented ·

Thanks for the response.

0 Likes 0 ·
dhanaraj avatar image dhanaraj Lee Tickett commented ·

For the development purpose we are going to use test tokens. Once everything ready we need to submit site URL. Is it okay?

0 Likes 0 ·
dhanaraj avatar image
dhanaraj answered Lee Tickett commented
How to get authorization code for Web api. https://sandbox.dev.clover.com/oauth/authorize?client_id={}just navigate to clover app. It doesn't return authorization coe. It returns html page as response.
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.

Lee Tickett avatar image Lee Tickett commented ·
0 Likes 0 ·

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