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.
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.
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...
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.
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.
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.
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": { … } },
Tharin, do you care / want to be notified for these cases:
The Android broadcast does not fire in these cases.
Use case: My App displays orders on a seperate screen. Currently the app is able to show orders that are open or paid. The merchant would like to only show orders when he hit the save button in the register app. For me to create a setting to toggle this option on and off I will need a way to determine which orders have been saved. In essence I would be using the save button to fire the order to the screen.
Ok, I noted your feature request.
To find saved orders created with our REST API, you can listen to webhooks for orders and identify these orders by verifying having "state":"open"
and device id property is null. The only way to currently listen the ORDER_SAVED broadcast is to have an Android app that listens to it and notifies your web app. Also, there's currently not a way to distinguish between #1 and #3, both will show up as "state" : "open" along with the corresponding device ID.
2 People are following this question.