timeDone field in Workorder?

In the API docs (https://developers.lightspeedhq.com/retail/endpoints/Workorder/), Workorder is shown to have a field called timeDone, which is the Date/Time that the Workorder is finished. However, when I perform a GET request on against the Workorder endpoint, this element is not loaded on any work orders. How do I get the timeDone field to send in my work orders?
Post edited by ann on
Tags:
4 comments
Yep, same outcome when I tried this API call against a Workorder that shows Done & Paid in the front-end UI.
Any feedback from the API team? I assume that the documentation needs to be updated since this field isn't present in the API response...
Hey @Ann thank you for pointing this out! We're having an overhaul of our documentation and this will be something that will be changed!
An alternative you have is to use the timeStamp field since when a workorder is done and paid for then grab the timestamp for that.
Adrian Samuel
Software Developer
Lightspeed HQ
From the API documentation it appears there are three date fields on Work Orders.
timeIn, etaOut, timeDone
timeDone is tied to “Done and Paid” status.
Ideally there should be both a timeStarted and a timeFinished fields/APIs. (Or better yet a field/API that records times for workorderStatus changes).
So when a job hits the bench and when it is marked Finished is properly recorded. This would help measuring bench productivity. With POST/PUT support with LS Work Orders we could even use a tool like Toggl at the bench.
https://toggl.com/
LS Support Team. Please encourage the Product and Development teams to benchmark RepairShopr.
Thanks