Create an API key
The instructions provided here are intended for Zettle merchants when creating API keys to share with developers building Zettle integration apps. The API key is used for authorisation of an app in the assertion grant flow.
The API key must be created by a Zettle merchant account owner in
my.zettle.com
. There are two ways for merchants to create the API keys as described in the following.- If you are the developer of a self-hosted app, share this guide with the merchant that will use the app.
- If you are a merchant, follow the steps in the guide as instructed by the developer of your integration app.
- A Zettle merchant account from
my.zettle.com
. - Depending on the API key creation method used:
- An API creation link provided by the developer.
- OAuth scopes provided by the developer. These are specific permissions needed to access Zettle merchant account data.
Create the API key using a specific link provided by your app developer.
- Open the link provided by your developer.
- Enter your Zettle account password.
- Review the information and click Create key. A client ID will be created together with the API key.
- On the Create API key page, click Copy key. Keep the API key and the client ID as secret somewhere safe.
- Share the API key and client ID with the developer who sent you the link. The created key is shown in the list of keys. When the integration starts using the key, the Last used column will show the last time the integration accessed your Zettle data.
Create the API key in
my.zettle.com
using the OAuth permission scopes provided by your app developer.- Go to my.zettle.com and log in to your account.
- In the left panel, click Integrations.
- In the Integration tools section, click API Keys.
- Click Create API Key.
- Name your key, keep it short and descriptive. A good practice is to use the integration name as the key name.
- Select the OAuth permission scopes provided by your developer.
- Click Create key. A client ID will be created together with the API key.
- Confirm your password.
- On the Create API key page, click Copy key. Save the API key and client ID somewhere safe.
- Share the API key and client ID with your developer. The created key is shown in the list of keys. When the integration starts using the key, the Last used column will show the last time the integration accessed your Zettle data.