Actions overview
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
Error codes
Related modules, variables & methods
Example showing how the action is created and embedded in a form.
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
Error codes
Related modules, variables & methods
Example showing how the action is created and embedded in a form through which the customer activates their account with their email address.
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
Related modules, variables & methods
Example showing how a confirmation message is displayed after successful execution of the action.
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
Related modules, variables & methods
Example showing how the action is created and triggered via a confirmation button.
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
Related modules, variables & methods
Example showing how a confirmation message is displayed after successful execution of the action.
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
Error codes
Related modules, variables & methods
Example showing how the action is created and embedded in a form through which a new employee account can be created.
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
Error codes
Related modules, variables & methods
Example showing how an employee account is deleted by its ID.
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
Error codes
Related modules, variables & methods
Example showing how the settings of an employee account are updated via a form.
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
Via
allowedPaymentMethods, only payment methods that are also available to the company account itself can be enabled: payment methods that are blocked for the account (blockedPaymentMethods) or that are configured with availableByDefault: false in the shop configuration and have not been specifically enabled for the account (enabledPaymentMethods) cannot be assigned to a privilege group (see Configuration payment methods).
Error codes
Related modules, variables & methods
Example showing how the privileges of a group are updated.
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
Error codes
Related modules, variables & methods
Example showing how a new privilege group is created via a form.
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
Error codes
Related modules, variables & methods
Example showing how a privilege group is deleted by its ID.
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
Related modules, variables & methods
Example showing how a confirmation message is displayed after the invitation has been successfully accepted.
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
Related modules, variables & methods
Example showing how a confirmation message is displayed after successful execution of the action. The action itself is typically triggered via an opt-in link in an email and does not require a form.
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
Error codes
Related modules, variables & methods
Example that creates a login form with email and password as well as a general error output for invalid entries.
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
Error codes
Related modules, variables & methods
Example that creates a form through which the customer enters their email address and receives a confirmation after successful execution.
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
Error codes
Related modules, variables & methods
Example showing how a confirmation is output after a successful reset, the form for setting the password is displayed for a valid opt-in token, and a notice about the expired link is displayed for an invalid token.
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
Error codes
Related modules, variables & methods
Example that provides a form for entering a new email address and outputs a confirmation after successful execution.
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
Related modules, variables & methods
Example showing how a confirmation form is displayed for a valid opt-in token, a success message appears after successful execution, and a corresponding notice is output for an expired token.
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
Related modules, variables & methods
Example showing how a success message is output after successfully clicking the confirmation link and a corresponding notice appears for an invalid token.
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
Error codes
Related modules, variables & methods
Example showing how a new address is created via a form with individual address fields.
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
Error codes
Related modules, variables & methods
Example showing how an existing address is edited by its ID.
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
Error codes
Related modules, variables & methods
Example showing how an address is deleted by its ID.
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
Error codes
Related modules, variables & methods
Example showing how an address is set as the main address via a button, provided it is not already.
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
Error codes
Related modules, variables & methods
Example showing how an address is set as the default billing address via a button, provided it is not already.
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
Error codes
Related modules, variables & methods
- $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
Related modules, variables & methods
Example showing how the default billing address is removed via a button, provided one is set.
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
Related modules, variables & methods
Example showing how the default shipping address is removed via a button, provided one is set.
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
Error codes
Related modules, variables & methods
Example showing how all saved credit cards are listed and each one can be deleted via a button.
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
Return values
Related modules, variables & methods
Example showing how the password strength is checked in real time on input and is displayed to the user visually as weak, medium, or strong.
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
Error codes
Related modules, variables & methods
Example showing how the action is created and embedded in a form through which the customer can update their display name.
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
Error codes
Related modules, variables & methods
Example showing how the action is created and embedded in a form through which the customer can update their personal data.
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
Error codes
Related modules, variables & methods
Example showing how non-logged-in customers are offered the option of creating a customer account after a guest checkout, including success output.
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
Error codes
Related modules, variables & methods
Example showing how a guest customer can create a permanent account after the checkout by only having to provide a password.
