added

2021-08 New Workflow Events

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.

  • id holds the ID of the sale.
  • status holds the status of the sale. Use this to check if the sale is CLOSED, SAVED or any of the other sale statuses.
  • return_for will 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.