timeDone field in Workorder?

annann Posts: 1Member
edited June 27 in Development

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

  • gregaricangregarican  Posts: 311Member 

    Yep, same outcome when I tried this API call against a Workorder that shows Done & Paid in the front-end UI.

  • Adrian SamuelAdrian Samuel moderator Posts: 545Moderator, Lightspeed Staff moderator

    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

    API Integrations Consultant - Strategic Solutions

    Lightspeed HQ

  • dougfastfixdougfastfix Posts: 12Member

    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

Sign In or Register to comment.