Skip to main content
The authentication API reference describes how users can log in via the REST API. Login is performed with a user account that is managed in the admin interface of the shop.
After successful authentication, further REST API endpoints can be used — depending on assigned permissions — e.g. to process inquiries or manage orders.

Supported methods

List of all supported methods.

General

To access the REST API, you need a user account for the admin interface of the shop. The permissions and roles of this account control which REST API endpoints you may access and which HTTP methods (GET, POST, PUT, DELETE) are available to you. Example:
  • A user with only read permissions can retrieve inquiries but cannot edit or delete them.
  • A user with administrator permissions has full access to all REST services and methods.
If access to certain REST endpoints is denied, your user account is probably missing the corresponding permission. In this case, contact your responsible shop administrator. For more information about managing users and assigning permissions, see the section API reference user management.

Using the methods

GET login/checkToken/{otok}

This endpoint checks a double opt-in token (otok) for validity. It is used, for example, in the password reset process.

Example

Response

Error codes

POST login

This endpoint enables login via email/password or via an API key (apiKey). On successful authentication, an accessToken and a refreshToken are returned. If the ?setCookie parameter is specified in the URL, the tokens are set as cookies and the refreshToken is not returned in the JSON response.

Example

Request body

or

Response

Error codes

POST login/refresh

This endpoint issues a new accessToken, authorized via a valid refreshToken. If the ?setCookie parameter is specified in the URL, the endpoint additionally sets the new accessToken as a cookie.

Example

Request body

Response

Error codes

POST login/passwordLink

This endpoint sends an email containing a password reset link to the specified email address.

Example

Request body

Response

Error codes

POST login/setPassword

This endpoint sets a new password for a user account. The action must be authorized by a valid double opt-in token that was previously sent by email (login/passwordLink).

Example

Request body

Response

Error codes

POST login/logout

This endpoint logs out the current user. The cookies set for accessToken and refreshToken are deleted and the refresh token is removed from the database.

Example

Request body

Response

Error codes