Actions overview
| Action | Description |
|---|---|
AccountRegister | Creates a new customer account. |
AccountActivate | Activates an existing customer account via an email address. |
AccountActivateOptIn | Activates an existing customer account via opt-in token. |
AccountDelete | Deletes the account of the logged-in user. |
AccountDeleteOptIn | Confirms the deletion of a customer account via opt-in token. |
SubAccountCreate | Creates a new employee account and sends an email with the link for setting the password. |
AcceptInvitation | Accepts an invitation to a customer account via opt-in token. |
UnlockLogin | Unlocks a locked login access. |
Login | Logs in a user. |
Logout | Logs out a logged-in user. |
PasswordForgotten | Sends a password-forgotten email. |
ResetPassword | Resets the password of a user account. |
EmailUpdate | Changes the stored email address of a user account. |
EMailUpdateOptIn | Confirms the change of the email address via opt-in token. |
EmailVerify | Verifies an email address via double opt-in. |
AddressCreate | Creates a new address for the logged-in user. |
AddressUpdate | Edits an existing address of the logged-in user. |
AddressDelete | Deletes an address of the logged-in user. |
SetMainAddress | Sets an address as the main address. |
SetDefaultBillAddress | Sets an address as the default billing address. |
SetDefaultDeliveryAddress | Sets an address as the default shipping address. |
RemoveDefaultBillAddress | Removes the set default billing address. |
RemoveDefaultDeliveryAddress | Removes the set default shipping address. |
CreditCardDelete | Deletes a saved credit card from the customer account. |
CheckPasswordStrength | Checks the strength of an entered password in real time via AJAX. |
SaveGuestDataToUser | Creates a fully-fledged customer account from a guest checkout. |
SubAccountDelete | Deletes an existing employee account. |
UpdateSubAccount | Updates the settings of an employee account. |
UpdatePrivileges | Creates or updates a privilege group with defined rights. |
CreatePrivilegeGroup | Creates a new privilege group. |
DeletePrivilegeGroup | Deletes an existing privilege group. |
Actions
AccountRegister
This action creates a new customer account. The user specifies their email address and a password. Usage exampleCan be used on a registration page where new customers can create an account, e.g., to view their order history or manage addresses. Parameters
| Name | Description |
|---|---|
email | Identifier of the user account (the email address by default). |
password | Password of the user account. |
passwordRepeat | Repeated entry of the password — must match password. |
| Code | Description |
|---|---|
missingId | Parameter id is empty. |
missingPassword | Parameter password is empty. |
passwordMismatch | Parameters password and passwordRepeat are not identical. |
emailCheckFailed | Parameter id contains an invalid email address. |
passwordCheckFailed | Password does not meet the required guidelines. |
accountAlreadyExists | An account with the given id already exists. |
AccountActivate
This action activates an existing customer account. The action is typically triggered via a form. Usage exampleCan be used on the confirmation page where the customer enters their email address to activate their account. Parameters
| Name | Description |
|---|---|
id | Identifier of the user account (the email address by default). |
| Error code | Description |
|---|---|
missingId | Parameter id is empty. |
emailCheckFailed | Parameter id contains an invalid email address. |
accountAlreadyExists | An active account with the given id already exists. |
AccountActivateOptIn
This action activates an existing customer account via an opt-in token. The token is transmitted to the user via a link in a confirmation email. Usage exampleCan be used on the confirmation page to which the customer is redirected after clicking the opt-in link in the registration email. Error codes
| Error code | Description |
|---|---|
unauthorized | No valid opt-in token was passed. |
AccountDelete
This action permanently deletes the account of the currently logged-in user. Usage exampleCan be used on an account management page where logged-in customers can delete their own account if desired. Error codes
| Code | Description |
|---|---|
| notLoggedIn | The user is not logged in. |
AccountDeleteOptIn
This action confirms the deletion of a customer account via an opt-in token. The token is transmitted to the user via a link in a confirmation email. Usage exampleCan be used on the confirmation page to which the customer is redirected after clicking the opt-in link in the deletion email. Error codes
| Error code | Description |
|---|---|
unauthorized | No valid opt-in token was passed. |
SubAccountCreate
This action creates a new employee account. An email containing a link to set the password is automatically sent to the specified email address. Admin rights are required for this action. Usage exampleCan be used on the account management page where administrators can create new employee accounts. Parameters
| Name | Description |
|---|---|
email | Email address of the new employee account. The link to set the password is sent to this address. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
unauthorized | The user does not have admin rights. |
missingId | Parameter email is empty. |
emailCheckFailed | Parameter email contains an invalid email address. |
accountAlreadyExists | An account with the given email address already exists. |
SubAccountDelete
This action deletes an existing employee account. Your own account as well as accounts with admin rights cannot be deleted. Admin rights are required for this action. Usage exampleCan be used on the employee management page where administrators can remove employee accounts that are no longer needed. Parameters
| Name | Description |
|---|---|
memberId | The ID of the employee account to be deleted. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
unauthorized | The user does not have admin rights. |
missingMemberId | Parameter memberId is missing. |
invalidMemberId | Invalid memberId — the employee account does not exist or does not belong to this account. |
deletionNotAllowed | The account may not be deleted because it is your own account or an admin account. |
UpdateSubAccount
This action updates the settings of an existing employee account. Deactivating your own account or removing admin rights from it is not possible. Admin rights are required for this action. Usage exampleCan be used on the employee management page where administrators can adjust roles and other settings of employee accounts. Parameters
| Name | Description |
|---|---|
memberId | The ID of the employee account to be updated. |
displayName | Display name of the employee account. |
active | Indicates whether the employee account is allowed to log in (true / false).Your own account cannot be deactivated. |
admin | Indicates whether the account has admin rights (true / false).Admin rights cannot be removed from your own account. |
privilegeGroupId | ID of the privilege group assigned to the employee account. |
defaultAddressVisibility | Specifies which visibility is preselected by default when creating new addresses. Possible values: - private (only visible for this account)- shared (shared company-wide) |
allowedSubshops | Specifies which subshops the employee account has access to. The subshop IDs are passed as keys of a JSON object, e.g., {"shop1": true, "shop2": true}. |
| Error code | Description |
|---|---|
| notLoggedIn | The user is not logged in. |
| unauthorized | The user does not have admin rights. |
| missingMemberId | Parameter memberId is missing. |
| invalidMemberId | Invalid memberId — the employee account does not exist or does not belong to this account. |
| selfDeactivationNotAllowed | Your own account cannot be deactivated. |
| selfAdminRemovalNotallowed | Admin rights cannot be removed from your own account. |
UpdatePrivileges
This action updates a privilege group. Admin rights are required for this action. Usage exampleCan be used on the privilege management page where administrators can define rights and restrictions for privilege groups. Parameters
| Name | Description |
|---|---|
privilegeId | The ID of the privilege group to be updated. |
createMissing | Indicates whether the group should be created automatically if it does not exist. Possible values: - yes |
type | Type of the privilege group: - global (shop-wide)- account (account-related) |
privileges | JSON object with the privilege fields. Possible fields: - allowedPaymentMethods (list of allowed payment methods)- paymentLimitPerOrder (maximum order value per order)- paymentLimit (global budget limit across all orders since the limit was set)- blockedTemplates (blocked templates / pages of the group) - blockedUrls (blocked URLs of the group)- editableFields (editable fields of the group)- groupName (only relevant for type = global) |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
unauthorized | The user does not have admin rights. |
missingPrivilegeId | Parameter privilegeId is missing. |
invalidPrivilegeId | Invalid privilegeId — the group does not exist and createMissing is not set. |
invalidType | Parameter type contains an invalid value. |
CreatePrivilegeGroup
This action creates a new privilege group. Admin rights are required for this action. Usage exampleCan be used on the privilege management page where administrators can create new groups with defined rights for employee accounts. Parameters
| Name | Description |
|---|---|
name | Name of the new privilege group. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
unauthorized | The user does not have admin rights. |
missingName | Parameter name is missing or empty. |
DeletePrivilegeGroup
This action deletes an existing privilege group. However, a group cannot be deleted as long as employee accounts are still assigned to it. Admin rights are required for this action. Usage exampleCan be used on the privilege management page when a privilege group that is no longer needed should be removed. Parameters
| Name | Description |
|---|---|
id | The ID of the privilege group to be deleted. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
unauthorized | The user does not have admin rights. |
missingId | Parameter id is missing. |
invalidId | Invalid id — the privilege group does not exist. |
groupHasMembers | The privilege group cannot be deleted because employee accounts are still assigned to it. |
AcceptInvitation
With this action, a B2B corporate customer accepts an invitation via the double opt-in procedure. The invitation is contained in a link that the customer receives by email. After successful verification, the account has full access to the shop. Usage exampleCan be used on the confirmation page to which the invited customer is redirected after clicking the invitation link in the email. Error codes
| Error code | Description |
|---|---|
unauthorized | No valid opt-in token was passed. |
invalidAccountId | The double opt-in token could not be assigned to any customer account. |
actionNotAllowed | The double opt-in token is invalid or does not match the account. |
UnlockLogin
This action unlocks a login access that has been locked due to too many failed login attempts. The action can be executed by a logged-in user as well as via an opt-in token. Usage exampleUseful when a customer has been locked out of their account after several incorrect entries and has received an unlock link by email. Error codes
| Code | Description |
|---|---|
unauthorized | The user is not logged in or no valid opt-in token was passed. |
Login
This action logs in a user with their access credentials. Usage exampleCan be used on the login page where customers can log in to their account with their email address and password. Parameters
| Name | Description |
|---|---|
id | Identifier of the user account (the email address by default). |
password | Password of the user account. |
| Code | Description |
|---|---|
missingId | Parameter id is empty. |
missingPassword | Parameter password is empty. |
emailCheckFailed | Parameter id contains an invalid email address. |
loginBlocked | Too many invalid login attempts. |
invalidCredentials | Invalid login attempt — id or password is not correct. |
Logout
This action logs out a logged-in user. Usage exampleCan be used as a logout button in the header or on the account overview page. Related modules, variables & methods Example showing how the action is triggered via a simple link that redirects the user to a defined page after logout.
PasswordForgotten
This action sends a password-forgotten email to the specified email address. The email contains an opt-in link that allows the execution of theResetPassword action.
Usage exampleCan be used on a “Password forgotten” page where customers enter their email address to receive a recovery link. Parameters
| Name | Description |
|---|---|
email | Email address of the user account to which the opt-in link is sent. |
| Error code | Description |
|---|---|
missingEmail | Parameter email is empty. |
emailCheckFailed | Parameter email does not contain a valid email address. |
passwordRecoveryFailed | No user account exists for the specified email address. |
ResetPassword
This action resets the password of a user account. After successful execution, the user is automatically logged out. By default, the action applies to the logged-in user — if an opt-in token is sent along with it, it applies to the user associated with the token. Usage exampleCan be used on the page to which the customer is redirected via the password-forgotten link to set a new password. Parameters
| Name | Description |
|---|---|
newPassword | The new password to be set for the user account. |
newPasswordRepeat | Repetition of the new password to avoid typos. |
passwordAuth | Previous password of the user account. Not required if an opt-in token is used. |
| Error code | Description |
|---|---|
notLoggedIn | Neither an opt-in token nor a logged-in session is present. |
missingPassword | Parameter newPassword is empty. |
passwordMismatch | Parameters newPassword and newPasswordRepeat are not identical. |
missingPasswordAuth | Parameter passwordAuth is empty. Only occurs without an opt-in token. |
failedPasswordAuth | Parameter passwordAuth does not match the previous password. |
passwordCheckFailed | newPassword does not meet the password rules. |
EmailUpdate
This action changes the stored email address of a user account. Usage exampleCan be used on the account management page where logged-in customers can update their email address. Parameters
| Name | Description |
|---|---|
email | New email address to be stored for the user account. |
| Error code | Description |
|---|---|
missingEmail | Parameter email is missing. |
emailCheckFailed | Parameter email does not contain a valid email address. |
accountAlreadyExists | Another account with this email address already exists. |
EmailUpdateOptIn
This action confirms the change of the email address via opt-in token. The token is transmitted to the new email address via a link in a confirmation email. Usage exampleCan be used on the confirmation page to which the customer is redirected after clicking the opt-in link in the confirmation email. Error codes
| Error code | Description |
|---|---|
unauthorized | No valid opt-in token was passed. |
EmailVerify
This action verifies an email address via double opt-in. After registration, the customer receives a confirmation email; clicking the contained link executes this action on the shop page. Usage exampleCan be used on the confirmation page to which the customer is redirected after clicking the verification link in the registration email. Error codes
| Error code | Description |
|---|---|
actionNotAllowed | No valid double opt-in token is present. |
AddressCreate
This action creates a new address for the logged-in user. Usage exampleCan be used on the address management page where customers can create new shipping or billing addresses. Parameters
| Name | Description |
|---|---|
address.(fieldname) | The individual fields of the address, e.g., address.firstName, address.street, etc. |
type | Type of address: - "bill" - Billing address - "delivery" - Shipping address If this is the first address of its kind for the relevant customer account, it is automatically set as the main address for the respective type. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in and no opt-in token is present. |
emptyAddress | No address fields were passed. |
addressCheckFailed | Error in the address data. Specified via sub-codes: - minlen = too few characters - maxlen = too many characters - numeric = invalid characters - country = country not configured - zip = postal code incorrect |
AddressUpdate
This action edits an existing address of the logged-in user. Usage exampleCan be used on the address management page when a customer wants to update one of their saved addresses. Parameters
| Name | Description |
|---|---|
addressId | The ID of the address to be edited. |
address.(fieldname) | The individual fields of the address to be updated. |
type | Type of address: - "bill" - Billing address - "delivery" - Shipping address |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in and no opt-in token is present. |
emptyAddress | No address fields were passed. |
invalidAddressId | Invalid addressId — the address does not exist or does not belong to this user account. |
AddressDelete
This action deletes an address of the logged-in user. Usage exampleCan be used on the address management page when a customer wants to remove an address that is no longer needed. Parameters
| Name | Description |
|---|---|
addressId | The ID of the address to be deleted. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in and no opt-in token is present. |
invalidAddressId | Invalid addressId — the address does not exist or does not belong to this user account. |
SetMainAddress
This action sets a saved address as the main address. The main address is automatically preselected in the checkout. Usage exampleCan be used on the address management page so customers can store their preferred address as the default for future orders. Parameters
| Name | Description |
|---|---|
addressId | The ID of the address to be set as the main address. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
missingAddressId | Parameter addressId is missing. |
invalidAddressId | Invalid addressId — the address does not exist or belongs to another account. |
SetDefaultBillAddress
This action sets a saved address as the default billing address. The default billing address is automatically preselected as the billing address in the checkout. Usage exampleCan be used on the address management page so customers can store a preferred billing address as the default for future orders. Parameters
| Name | Description |
|---|---|
addressId | The ID of the address to be set as the default billing address. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
missingAddressId | Parameter addressId is missing. |
invalidAddressId | Invalid addressId — the address does not exist or belongs to another account. |
SetDefaultDeliveryAddress
This action sets a saved address as the default shipping address. The default shipping address is automatically preselected as the shipping address in the checkout. Usage exampleCan be used on the address management page so customers can store a preferred shipping address as the default for future orders. Parameters
| Name | Description |
|---|---|
addressId | The ID of the address to be set as the default shipping address. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
missingAddressId | Parameter addressId is missing. |
invalidAddressId | Invalid addressId — the address does not exist or belongs to another account. |
- $wsAccount
- $wsAccount.addresses
- $wsAccount.defaultDeliveryAddress
Example showing how an address is set as the default shipping address via a button, provided it is not already.
RemoveDefaultBillAddress
This action removes the set default billing address of the logged-in user. Usage exampleCan be used on the address management page when a customer wants to reset the default billing address so that no address is preselected in the checkout. Error codes
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
RemoveDefaultDeliveryAddress
This action removes the set default shipping address of the logged-in user. Usage exampleCan be used on the address management page when a customer wants to reset the default shipping address so that no address is preselected in the checkout. Error codes
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
CreditCardDelete
This action deletes a saved credit card from the customer account. Usage exampleCan be used on the credit card management page where logged-in customers can view and remove their saved credit cards. Parameters
| Name | Description |
|---|---|
pseudoCCId | The ID of the credit card to be deleted. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
invalidPseudoCCId | Invalid pseudoCCId — the credit card does not exist or does not belong to this user account. |
CheckPasswordStrength
This action checks the strength of an entered password in real time. The action is executed in the background via AJAX and returns a JSON object with the evaluation result. Usage exampleCan be used on pages with password input fields, e.g., on the registration page, to give the customer direct feedback on the password strength. Parameters
| Name | Description |
|---|---|
password | The password to be checked. |
| Value | Description |
|---|---|
value | Score reached for password strength. |
max | Maximum score for password strength. |
accountDisplayNameUpdate
This action changes the display name of a customer account. Usage exampleCan be used on the account management page where logged-in customers can update their display name. Parameters
| Name | Description |
|---|---|
displayName | The new display name to be stored for the user account. |
| Code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
missingDisplayName | Parameter displayName is missing. |
AccountSetCustomerData
This action sets or updates custom customer data for the logged-in user account. Usage exampleCan be used on the account management page where logged-in customers can store their personal data such as date of birth or phone number. Parameters
| Name | Description |
|---|---|
customerData.(fieldname) | The individual fields of the customer data. |
| Error code | Description |
|---|---|
notLoggedIn | The user is not logged in. |
emptyCustomerData | No customer data fields were passed. |
GuestRegister
This action creates a fully-fledged customer account from a guest checkout. The guest specifies a password; the email address is automatically taken from the checkout data. Usage exampleCan be used on the order confirmation page after a guest checkout, where non-logged-in customers are given the option to create an account directly. Parameters
| Name | Description |
|---|---|
guestMail | Email address of the guest account, automatically taken from the checkout data. |
password | New password for the customer account. |
passwordRepeat | Repetition of the password. |
| Error code | Description |
|---|---|
passwordCheckFailed | Password does not meet the required guidelines. Specified via sub-codes: - minlen = too few characters - maxlen = too many characters |
SaveGuestDataToUser
This action creates a fully-fledged customer account from the data of a guest checkout. The guest specifies a password and thereby gains access to a permanent account. Usage exampleCan be used on the order confirmation page after a guest checkout to give the customer the option of creating an account directly without having to re-enter all data. Parameters
| Name | Description |
|---|---|
id | Email address of the guest account. |
password | New password for the customer account. |
passwordRepeat | Repetition of the password. |
| Error code | Description |
|---|---|
nonGuestAccount | The user is already logged in to a customer account. |
missingId | Parameter id is missing. |
missingPassword | Parameter password is missing. |
passwordMismatch | Parameters password and passwordRepeat are not identical. |
passwordCheckFailed | The password rule check has failed. |
