Do we have any event for invoice before create?

When we click on invoice and about to submit the form , do we have any event there?

Want to do some modification before creating invoice.

1 Answer 1


You can use sales_order_invoice_register that is right after the invoice has been created and before the first save in the database.

This event is also triggered if invoices are created automatically.

  • No I want before creating invoice, I already tried this on but it fired after my need
    – Daniel_12
    Feb 22, 2019 at 13:16
  • Than you should use a plugin. For example before toInvoice in Magento\Sales\Model\Convert\Order that's the method where the invoice is created.
    – HelgeB
    Feb 22, 2019 at 13:20
  • Hi @HelgeB Do you which event we use before cancelling the order in admin. Same like invoice
    – Daniel_12
    Feb 26, 2019 at 14:40
  • I tried (\Magento\Sales\Model\Order cancel method for plugin but that helped me
    – Daniel_12
    Feb 26, 2019 at 14:44
  • what exactly you want to achieve? I think that should be the focus of another question, please write a question with a little details and I will have a look at that. If we are done with this question,please accept the answer.
    – HelgeB
    Feb 26, 2019 at 14:49

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.