[API] Fixed the action parameters in the methods to create and edit orders, closes #6845