Include access token and tracking identifier in API requests
To send requests to Zettle APIs, you need to include an access token in the request header as described in the following.
Currently, there is no tracking available for integrations with Zettle. However, you can implement tracking in your solution by including a tracking identifier in API requests. See the following how to do this.
- A working authorisation flow for the integration.
- For a self-hosted app, make sure that you have prepared for app tracking.
The access token, generated in the authorisation flow, is prefixed by
Bearerwhen included in an API request.
Example: API request with authorisation token.
To track app usage in API requests, you can include a custom header
X-iZettle-Application-Idwith the client ID of the app. This will be used as a tracking identifier.