question

tharin avatar image
tharin asked Jeffrey Blattman answered

There is a way to get orders "Saved" flag from API called?

How to find out orders that merchants already hit "Save" button on Clover devices from API called. I read Clover Doc but I didn't find it.

10 |2000

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

Miguel avatar image
Miguel Deactivated answered tharin commented

You can listen for the com.clover.intent.action.ORDER_SAVED broadcast, which is fired when the merchant hits the save button.

You can read more about our broadcasts here: https://docs.clover.com/build/intents...

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

tharin avatar image tharin commented ·

Thanks for your answer. Sorry for my explanation not clear. We built web application and uses GET /v3/merchants/{mId}/orders endpoint to fetch orders. So we want to know where the "saved" flag from api called.

0 Likes 0 ·
Miguel avatar image Miguel commented ·

You can use webhooks to listen for changes to orders, but there's not a way be notified when a merchants specifically hits the "save" button on an order - outside of the Android SDK which I referenced.

If an order is saved but not paid, its properties should show up as "state":"open" However, having simply this property does not necessarily mean the "save" button was used to create it.

0 Likes 0 ·
tharin avatar image tharin commented ·

Is it possible to add orders "saved" flag to Clover REST api? Or add message to webhook what happen to orders e.g. "saved" We built a good app and got very good feedbacks from our merchants. If we can get "saved" flag or something that can tell us when merchants has hit on save button to web application. This will satisfy merchants so much and generate more revenue to both Clover and us.

0 Likes 0 ·
Miguel avatar image Miguel commented ·

I'm not 100% clear on your use case so I can't really suggest alternatives to listening for saved orders. As I mentioned, a saved order indicates an order with state set as "open." If you need to know specifically if the merchant hits the button on the device, you can build an android app that only listens to that broadcasts and then notifies your web app.

0 Likes 0 ·
corey avatar image corey commented ·

Hi Miguel, Tharin needs an event flag for the web api. From what I've read he need he has a web app and he needs to know when end users save an order on the Clover Station. This can be done in android but cannot be done in the web app. To get around this Tharin would need a saved flag.

For Example:

{ “saved” : true, "id": "7W2BBB0AH5C6P", "lineItems": { … } },

0 Likes 0 ·
Show more comments
Corey avatar image
Corey answered
@Miguel @Miguel Any word on this?
10 |2000

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

Corey avatar image
Corey answered
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 answered
Orders are always saved immediately after any mutation occurs. All the "save" button in the app does is open a new order in the Register app. Please read https://community.clover.com/page/asking-questions and specifically see bullet (4). Without knowing what you are trying to do with the "saved" information it's hard to comment on a better solution.
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