Protecting your API key
Treat your API key like a password. Keep it out of public code repositories, store it in an environment variable or a secrets file, and never paste it into a support chat. If you think it has leaked, generate a new one and update your scripts straight away.
Also log every request and response during testing, so you can see exactly what was sent when an order behaves unexpectedly. The reseller guide covers how API orders fit into a reseller workflow, and the trial guide shows how to test with a small order first.