Added
2021-08 New Workflow Events
over 4 years ago by ReadMe API
With the introduction of two new Workflow events, you can new register rules to be triggered when a sale is created and when it is updated.
The sale.created event is triggered when a sale has been created in Lightspeed Retail (X-Series) and the sale.updated
event is triggered when a sale has been updated in Lightspeed Retail (X-Series).
The sale payload sent to workflow rules has been expanded to include id, status, and return_for,
which all especially useful in these two new events.
idholds the ID of the sale.statusholds the status of the sale. Use this to check if the sale isCLOSED,SAVEDor any of the other sale statuses.return_forwill hold the ID of the sale that is being returned in case the sale is a return.
Read more about all the supported events in our tutorial section.
