Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
I am currently working on developing a Python application designed for POS staff members to track their starting and ending session times in real-time.
My question is: Is it possible to use any Shopify webhooks to track the session times of Shopify POS staff members? If not, are there any alternative methods to collect this data in real-time?
Any guidance or suggestions would be greatly appreciated. Thank you!
See under settings->notifications and than you can set a webhook notification for many events from shopify.
Thank you for your suggestion. However, I have checked under Settings -> Notifications in Shopify, and I couldn't find any webhook type specifically for tracking POS staff session times. The available webhook events are primarily for order-related actions, customer updates, and other e-commerce events.
Do you mean cash tracking sessions?
https://shopify.dev/docs/api/admin-graphql/2024-04/objects/CashTrackingSession
Thank you, Kalen_Jordan, for your reply and the link to cash tracking sessions.
What I'm looking to track is the actual time an employee is working (session time tracking) but in real-time. I am developing an app that needs to capture the exact time an employee has worked to calculate their salary accurately. This data needs to be captured in real-time because it must be connected with a government application.
Currently, I have an external Android app where employees log their start and end times by "hitting" the app before and after their shift. However, integrating this functionality directly with Shopify would be a much more elegant solution. Is there a way to achieve this with Shopify, or perhaps any recommended approach or workaround that can help capture this data in real-time?
A second solution would be to query the Shopify API every 5 minutes for open sessions in POS, but it is not a beautiful solution.
Thank you for your assistance.