API Test Mode can be enabled or disabled in API settings, found under the API Access menu option. Test mode will automatically cancel any orders placed via Zapier or API.
First click the gear at the top right to find API Access.
Then, you can enable or disable API Test Mode: