Identify users

The following describes how to fetch information about a user (merchant organisation) through the Zettle OAuth API.

Prerequisites

  • A working authorisation flow set up using either assertion grant, code grant, or code grant with PKCE.

Get user information

The following request fetches the uuid and organizationUuid for the organisation associated with a user.
1
GET /users/self
Example: Retrieving user information using the access token eyJraWQiOiIxN...R5Y6FDNTva7esJ5Q.
Request
1
GET users/self HTTP/1.1
2
Host: oauth.zettle.com
3
Authorization: Bearer eyJraWQiOiIxN...R5Y6FDNTva7esJ5Q
Response
1
{
2
"uuid": "de305d54-75b4-431b-adb2-eb6b9e546014",
3
"organizationUuid": "ab305d54-75b4-431b-adb2-eb6b9e546013"
4
}