In my Square integration app, I need to determine the exact time an item was added to an order, particularly in a restaurant or bar setting.
We apply deals or coupons that are valid only during specific time windows, such as 7 PM to 9 PM. To enforce this, we need to identify which items were added before 7 PM or outside the deal window. Currently, it seems there’s no way to retrieve timestamps for individual line items within an order.
Is there any plan to:
Add timestamps at the line-item level?
Introduce order versioning to track changes over time (e.g., when line items are added or updated)?
This functionality would be incredibly helpful for time-sensitive offers and promotions.
At this time the only way to know when items are added to an order would be to listen to webhooks and call RetrieveOrder when an order event is triggered. Unfortunately, the ability to get orders by version isn’t currently possible so there is the possibility that you could miss a version.
What you can alternatively do is to get all open orders when the discount time window closes and parse the results for all relative line items to apply discounts. Then any new items added to an order you won’t have to worry about since the discount window is closed.
Hello @1337,
This sounds like an essential feature for managing time-sensitive offers in your restaurant or bar! Currently, the Square API indeed lacks the ability to add timestamps to individual line items. However, this feature has been requested by multiple users and may be implemented in the future. Additionally, Square is continually enhancing its API capabilities based on user feedback.
I’d recommend keeping an eye on the Square API updates for any announcements regarding these features. In the meantime, you might consider implementing custom logic in your app to track the times when items are added to orders.
Has anyone else faced similar challenges with Square integration, or found alternative solutions?