Magento 2 MSI - How to listen the event of all source item stock update API
-
03-03-2021 - |
Question
Am using the below rest API to update bulk product's Stock information
/rest/all/V1/inventory/source-items
My requirement is that I need to listen the observer or some file whenever this API is triggered to write my custom logic.
Can anyone help me on how this can be done?
La solution
Add an after plugin to \Magento\InventoryApi\Api\SourceItemsSaveInterface::execute
API
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange