Supported methods
List of all supported methods.General
Data fields of a user account
Example
Data fields of user settings
Example
Permissions
Permissions example
admin.0 (admin.active) permission is set to false).
However, they can use the entire newsletter service, because the permissions newsletter.0 (newsletter.Read), newsletter.1 (newsletter.Write), newsletter.2 (newsletter.Create), and newsletter.3 (newsletter.Delete) are set to true. In addition, they can read customer and product data, because the permissions customerAccounts.0 (customerAccounts.Read) and products.0 (products.Read) are set to true.
Methods for user accounts
The/admin/user endpoint enables the management of user accounts. Through it, users can be created, modified, deleted, and retrieved.
GET admin/user
This endpoint returns a list of all user accounts from the admin interface of the shop.Example
Response
Filter fields
id, firstName, lastName, email, privileges, websale
Sort fields
id, firstName, lastName, email, websale
Error codes
GET admin/user/self
This endpoint loads the data of the currently logged-in user account.Example
Response
Error codes
GET admin/user/{accountId}
This endpoint loads the data of a specific user account byaccountId.
Example
Response
Error codes
GET admin/permissions
This endpoint returns a list of all permissions a user can have.Example
Response
POST admin/user
This endpoint creates a new user account for the admin interface. When creating, either a password can be set directly or an email with a password setup link can be sent.Example
Request body
Response
Error codes
POST admin/passwordChange
This endpoint changes the password of the currently logged-in user account. The new password must not match the previous password. After a successful change, the shop ends all other sessions of the account. The session you use to make the change remains active.Example
Request body
Response
Error codes
POST admin/resend/{accountId}
This endpoint sends an email with a password reset link to the email address associated with the user account.Example
Request body
Response
Error codes
PUT admin/user/{accountId}
This endpoint updates the information of a user account byaccountId.
Example
Request body
Response
Error codes
DELETE admin/user/{accountId}
This endpoint deletes an existing user account byaccountId.
Example
Response
Error codes
Methods for user settings
The/admin/settings endpoint enables the saving and retrieving of user-related settings.
