Skip to content

Latest commit

 

History

History
98 lines (60 loc) · 6.28 KB

zettle-password-grant-migration-guide.md

File metadata and controls

98 lines (60 loc) · 6.28 KB

Zettle Password grant migration guide

The Password grant for Zettle integrations is now deprecated and will be removed on January 31th 2022.

Action needed

Update the integration to use an authentication grant supported by Zettle. You can find more information in this document and in the Zettle OAuth2 API documentation.

Support

If you have any questions, please contact our developer support at Zettle Developer Portal.

Technical details

Zettle API uses the OAuth 2.0 Authorization Framework. The Assertion grant is recommend to keep your integration secure. For more information about the assertion grant and other authentication flows, read more in the Zettle OAuth2 API documentation.

Assertion grant API Keys

To use this approach, the merchant using the integration needs to provide you with the API Key. The API key is created at my.zettle.com by the Zettle account owner (merchant). To create the API key, follow the instruction in one of the following options:

Tip: Share the screenshots with the merchant if needed.

Option 1: Create the API Key using a link

  1. In order to make it as easy as possible for the merchant to create the API key, the integrator can provide a deep link to the API key creation page with pre-populated fields:

    https://my.zettle.com/apps/api-keys?name=<key-name>&scopes=<scopes>
    

    Where:

    • <key-name> should be the name under which the API key is stored. Keep it short, but descriptive. One good practice is to use the integration name as the key name, for example, WooCommerce Sync.
    • <scopes> should contain the list of needed scopes separated by a space, for example, READ:PURCHASE+READ:FINANCE.

    Example:

    https://my.zettle.com/apps/api-keys?name=WooCommerce&scopes=READ:PURCHASE+READ:FINANCE
    
  2. When the merchant accesses the link, ask them to follow the steps to confirm the API key creation.

    a. Review the information and click Create key.

    This screenshot shows the dialog that is started after clicking a deep link for creating API keys. You can find the Create key button in the lower right corner of the dialog.

    b. Confirm your password.

    c. The API Key has been created. Click Copy key and keep it in a safe place. This is the information you need to share with the developer in charge of the changes.

    This screenshot shows the dialog where you can copy the API key and save it for later use. You can find the Copy key button in the lower right corner of the dialog.

    d. The created key will be displayed in the list of keys. Once the integration starts working with this key, the Last used column will show the last time the integration accessed your Zettle data.

    This screenshot shows the dialog where you can see a list of created API keys and their scopes.

Option 2: Create the API Key by accessing my.zettle.com

Ask the merchant to follow the steps to create the API key by accessing my.zettle.com.

  1. Go to my.zettle.com and log in to your account.

  2. On the left panel, click Integrations.

    This screenshot shows my zettle.com where you can find the Integrations link in the lower left corner of the left navigation menu.
  3. Under the Integration tools section, click API Keys.

    This screenshot shows the Integrations page where you can find the API keys link in the lower left corner of the left navigation menu on the page.
  4. Click Create API Key.

    This screenshot shows the Available API keys page where you can find the Create API key button in the upper right corner before the available API keys list on the page.
  5. Give a name to your key. Keep it short, but descriptive. One good practice is to use the integration name as the key name.

  6. Select which accesses the integration needs. If you’re not sure what to choose, contact the developer in charge of the changes.

  7. Click Create key.

    This screenshot shows the dialog where you can select scopes for the API key that you will create. You can find the Create key button in the lower right corner of the dialog.
  8. Confirm your password.

  9. The API Key has been created. Click Copy key and keep it in a safe place. This is the information you need to share with the developer in charge of the changes.

    This screenshot shows the dialog where you can copy the API key and save it for later use. You can find the Copy key button in the lower right corner of the dialog.
  10. The created key will be displayed in the list of keys. Once the integration starts working with this key, the Last used column will show the last time the integration accessed your Zettle data.

    This screenshot shows the Available API keys page where you can see a list of created API keys.