Hello,
I wonder if you can have some sort of transactions using PW API.
in order to rollback any changes made to a previous state if something went wrong.
For example if you have a shopping cart.
a product that only have 1 item left.
two people that want that product at the same time.
One gets the product, the other gets an error. You can have something similar using many 'if '.
But something similar to this, I think could be cleaner.
Thanks