Yes, as @shivdas_b mentioned onOrderUpdate won't publish updates on closed or AMO status. I just checked for the limit MCX order and it's publishing updates fine. Go through the order update FAQs her…
Header content type should be URL encoded --header 'Content-Type: application/x-www-form-urlencoded' and form input data should be in the same format as given in the examples.