문제

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?

도움이 되었습니까?

해결책

Add an after plugin to \Magento\InventoryApi\Api\SourceItemsSaveInterface::execute API

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top