Sylius events (API, Shop UI)

Hi,

I have a shop and I added functionality which checks when the product is again in stock (from onHand 0 value to > 0) and I’m using sylius.product_variant.pre_update. Everything works fine using Admin UI. I have a problem using API - the event is not triggered and I am not sure it should be. My question is - it should be triggered? If not how to implement events for API requests?

Thanks

Which one, Admin, Shop or the new unified API?

Sorry for not responding.

I have an older version of Sylius (1.4) and I am using Admin API.