Shopify Flow is Shopify’s automation app: it lets you build “when this happens, do that” rules without writing code. Livy connects to Flow and adds two pieces: a step to adjust points (Adjust Livy points) and a trigger that fires when Livy adds points (Livy points awarded).With them you can reward the customers you tag as VIP, subtract points when an order is refunded, or notify your team on Slack every time someone earns points.
A positive number adds. A negative one subtracts. 0 is rejected, because a zero-point adjustment is not an adjustment.
If the customer does not have enough balance, we subtract as much as there is and the workflow still succeeds. If you ask to subtract 500 and the customer has 100, those 100 are subtracted and the balance lands at zero: they are never left owing points and Flow does not mark the step as failed.This is on purpose. The normal case for a subtraction is penalizing a refund, and by then the customer has often already spent the points. Failing would fail exactly when you most want to collect.
If the problem is temporary (Livy does not answer for a moment), Flow retries the step for hours without you doing anything. The messages in the table above are the ones that do not fix themselves: there Flow stops and shows them to you.