Skip to main content
This section describes the available actions in the customer account area. With these actions, accounts can be created, addresses managed, and login credentials changed, for example.

Actions overview


Actions

AccountRegister

This action creates a new customer account. The user specifies their email address and a password. After successful registration, the customer is automatically logged in and receives a new session. Usage example
Can be used on a registration page where new customers can create an account, for example 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

With this action, a customer activates a customer account that has already been created, for example an imported account, and sets their password in the process. The account is found via the customer number. The action is only available if account activation is enabled in the configuration. If an opt-in is intended, the customer receives an email with a confirmation link. The activation is then completed with the AccountActivateOptIn action. Otherwise, the account is activated immediately and the customer is logged in directly. Usage example
Can be used on an activation page where customers with an existing customer number unlock their account and set a password.
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 existing account with their customer number and a new password.

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 example
Can 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. If the double opt-in procedure for account deletion is enabled in the configuration, the customer instead receives an email with a confirmation link. The deletion is then only carried out with the AccountDeleteOptIn action. Usage example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Useful 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. After successful login, the shop creates a new session. After multiple failed login attempts, the login is locked. The customer is informed of the lock by email and receives an unlock link (see UnlockLogin). Usage example
Can 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. In the process, the customer data of the session is reset, stored auto-login data is removed, and a new session is created. If no user is logged in, nothing happens. Usage example
Can 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 enables the execution of the ResetPassword action. However, the action does not reset the password itself. Usage example
Can 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 the selected user account. By default, the action applies to the currently logged-in user. If an opt-in token is sent along with it, it applies to the user associated with the token. Without an opt-in token, the user is automatically logged out after successful execution, provided the autoLogout option is enabled in the configuration (default). Whether the previous password is requested is controlled via the options of actions.resetPassword (see actions - Sign-in & registration). The new password must differ from the previous password. The opt-in token from the “Password forgotten” email is only valid once. After the change, the shop ends all active sessions of the account. Usage example
Can be used on the page to which the customer is redirected via the password-forgotten link to set a new password.
Parameters Error codes If the checkLoginID option is enabled, the error codes missingEmail (the email parameter is empty) and emailMismatch (the specified email address does not belong to the account) also apply. 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 the logged-in user account. If an employee account is logged in, the email address of this employee account is changed, not that of the corporate account. If double opt-in is enabled for the change in the configuration, the new address is only applied after the opt-in link has been confirmed with the EmailUpdateOptIn action. After the change, the stored auto-login data of the affected account is discarded. An email to confirm the address is sent to the new address (see EmailVerify). Usage example
Can 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 via a link in a confirmation email. Whether this email is sent to the previous or the new address is determined by the parameter sendTo under actions.emailUpdate. The token belongs to the account from which the change was requested. For an employee account, this is the respective employee account and not the corporate account. The link therefore also works if a different account is currently logged in in the browser. The auto-login data is only discarded for the affected account. Usage example
Can 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 the double opt-in procedure. After registration, the customer receives a confirmation email. Clicking the link it contains carries out the verification on the shop page. Usage example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Can 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 example
Can 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

RemoveDefaultBillAddress

This action removes the set default billing address of the logged-in user. Usage example
Can 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 example
Can 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 example
Can 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 example
Can be used on pages with password input fields, for example on the registration page, to give the customer direct feedback on the strength of their password.
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 example
Can 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 example
Can be used on the account management page where logged-in customers can store their personal data, for example their 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 example
Can 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 example
Can 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.