1

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?

3

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.