May I know how can I dispatch event sales_order_invoice_save_commit_after when I create invoice via REST api?

I noticed there are quite a number of extensions is observing this particular event but this event is not being dispatched when the invoice is created over REST api.

Is this function depreciated? I understand that this event works well in the web but there is dispatching in REST api.

  • What is the location of the events.xml?
    – Mr. Lewis
    Jan 23, 2019 at 17:48
  • your issue resolved ia m facing same issue but in my case its working for old user not working with guest
    – imtiazau
    Jul 15, 2019 at 13:58

1 Answer 1


you should use event "sales_order_invoice_save_after" instead

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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