How to call API or any custom method on click of custom button ?

  1. How to create Custom Button "Submit" in Order Module ?
  2. On Click of "Submit" button (created in Step 1), how to call custom method or any API which will pass data to external application .Please provide code and location where we want to modify or create files. 

Version : 10.3 (Enterprise Edition)