How to Create an API Key
API keys allow you to access the Tax Balance REST API. API keys can be saved in scripts or external tools, without having to use your username and password. Each user account can have multiple API keys.
Creating an API Key
You can create API keys by performing the following steps:
Open the Swagger UI documentation at
https://<your-tax-balance-url>/swagger/index.html
Click Authorize.
In the Bearer section click Authorize. (client_id and client_secret should be prefilled, otherwise contact your administrator)
You will be directed to the Portal Login page.
Enter your credentials and click Login.
Click Close or X in the modal dialog.
Scroll to the ApiKeys section in Swagger UI.
Expand the POST operation and click Try it out.
Enter your User ID. You will get your User ID by navigating to Master Data → Users → Overview in the Portal application.
In the request body you might want to state the purpose of the API key and set the expiry date. Be aware to enter the date in a valid ISO-8601 format.
Click Execute.
Copy the new API key starting with “API-…” from the response body
Write Your Key Down After you generate an API key, it cannot be retrieved again, we store only a one-way hash of the API key. If you want to use the API key again, you need to store it in a secure place such as a password manager.