There is no API function to do that. But you could just mimic what TWS does:
When you pause a working order, a cancel request is submitted to the exchange and the order is put into an inactive state but remains available on the Orders panel (Mosaic) or Quote Monitor (Classic) for you to resubmit at any time.