API Keys
When you sign up, you receive two API Keys: the live and test keys. These are immediately active and determine the environment used by your integration.
Ease of use
The Invoicetronic API has a single entry point: https://api.invoicetronic.com/v[version]/
. Your integration seamlessly works with the test (sandbox) or live environment using the appropriate API key.
The API keys are easily distinguished by their prefixes: ik_live_
and ik_test_
. Let's say we want to request the events log. From the command line using curl, we could do this:
Test Key
curl -u "ik_test_YOUR-API-KEY": https://api.invoicetronic.com/v1/log
# The colon prevents curl from asking for a password.
ik_test_
.
Live Key
However:
curl -u "ik_live_YOUR-API-KEY": https://api.invoicetronic.com/v1/log
# The colon prevents curl from asking for a password.
Weill request the event log form the live environment, as you are now using the live (ik_live_
) Key.