Magento – Event sales_order_invoice_save_after in magento 2

event-observermagento-2.1

Does in magento 2 exists event similar to event sales_order_invoice_save_after from magento 1?

Or, where should plugin "listen", to get similar functionality?

Thanks.

Best Answer

Yes, this event still exists. Just for your knowledge, I would like to share that it will always be fired whenever you made any change in order related data after invoice creation.

So it would be better to use "sales_order_invoice_pay" in case you want event to be fired only when first time invoice is created.

Related Topic