...
The end point checks to see if the specified order exists, and if so, if it qualifies to be canceled. If the order does not exist, is already completed, already flagged for deletion, or has been through a job station station that is marked as “Non-Cancel”, then the job will not be canceled and an appropriate message returned.
If a reason code is require required and the reason code entered is not valid, then the order cannot be deleted.
...