An order type that can be built via the API can always be first manually created and tested in TWS. If the order cannot be created in TWS, it cannot be created via the API. For further information:
What order types are supported in the TWS API?
Powered by IBot
Where can I download the TWS API?
How to pause orders using the TWS API?
Where can I find the Web API reference guide?
How do I reverse a position via API?