Skip to main content
This page contains all actions related to the user account and thus contains all messages and email templates that occur when account data is created, changed, deleted or checked.

Overview of actions

The following is a list of all actions provided for user accounts. Actions that thematically belong to a different area can be found in the corresponding sections of this documentation or in the alphabetical overview of actions.

Excerpt of the basic actions structure

{
  "actions": {
    ...
    "accountActivate": {...},
    "accountActivateOptIn": {...},
    "accountDelete": {...},
    "accountDisplayNameUpdate": {...},
    "accountRegister": {...},
    "addressCreate": {...},
    "addressDelete": {...},
    "addressUpdate": {...},
    "creditCardDelete": {...},
    "confirmZipCode": {...},
    "emailUpdate": {...},
    "emailVerify": {...},
    "setCustomerData": {...},
    "setMainAddress": {...},
    "subAccountCreate": {...},
    "userInvitation": {...},
    ...
  }
}

Action overview

ActionDescription
accountActivateConfigures the opt-in email as well as the error messages used when activating an existing customer account by existing customers.
accountActivateOptInConfigures the verification email and error messages used when confirming the opt-in link as part of the existing customer activation.
accountDeleteConfigures the email templates used for confirmation and double opt-in emails as well as possible error messages during account deletion.
accountDisplayNameUpdateDefines which error texts are output for missing inputs or non-signed-in users when changing the name.
accountRegisterDefines the error texts for the registration of new customers.
addressCreateDefines the error messages when creating new addresses in the customer account.
addressUpdateDefines the error messages when updating existing addresses in the customer account.
addressDeleteDefines the error messages when deleting addresses in the customer account.
creditCardDeleteDefines the error messages when removing stored pseudo credit card data from the customer account.
confirmZipCodeDefines the error messages when checking a possibly invalid postal code.
emailUpdateDefines the error messages when updating the email address in the customer account.
emailVerifyDefines the error messages when verifying the email address in the customer account.
setCustomerDataDefines the error messages when saving or updating customer data in the shop.
setMainAddressDefines the error messages when setting a main address in the customer account.
subAccountCreateDefines the error messages when creating new sub-accounts within an existing customer account.
userInvitationDefines the error messages when inviting new users, for example to sub-accounts or shared customer accounts.
Both the invitation email and possible error messages from invitation control are defined here.

actions.account* - User

The actions described in this section concern processes around the user account. They are triggered whenever the user performs a corresponding action in the shop — for example, during registration, when changing the profile, or when deleting the account.

actions.accountDelete - Account deletion

The accountDelete action controls the error messages for requests to delete a customer account. At the same time it configures which confirmation email is sent after a successful deletion and whether an additional double opt-in email is used to confirm the deletion request.

Example configuration

{
  "confirmationEmail": {
    "fromAddress": "noreply@websale.de",
    "fromName": "Mein Onlineshop",
    "subject": "Mein Onlineshop | Löschung ihres Kontos",
    "template": "accountDelete.htm"
  },
  "doubleOptInEmail": {
    "enabled": false,
    "fromAddress": "noreply@websale.de",
    "fromName": "Mein Onlineshop",
    "subject": "Mein Onlineshop | Löschung ihres Kontos",
    "template": "accountDeleteOptIn.htm"
  },
  "errorCodes": {
    "actionNotAllowed": "<Textbaustein>",
    "notLoggedIn": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
confirmationEmailarrayConfigures the confirmation email sent to the customer after the account has been deleted.
The sending can be enabled or disabled via enabled. Subject, sender and template are controlled via the general email parameters, see here: Emails & email settings
doubleOptInEmailarrayConfigures the optional double opt-in email with which the customer must confirm the account deletion before it is carried out.
The sending can be enabled or disabled via enabled. Subject, sender and template are controlled via the general email parameters, see here: Emails & email settings
errorCodesarrayConfigures the error codes used for problems during the action.
notLoggedInstringError message output when the user is not signed in.

actionNotAllowedstringError message output when the action is not allowed.

actions.accountDisplayNameUpdate - Change display name

The accountDisplayNameUpdate action controls the error messages used when updating the public display name. This name is shown only in customer reviews and replaces the real name there.

Example configuration

{
  "errorCodes": {
    "missingDisplayname": "<Textbaustein>",
    "notLoggedIn": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesarrayConfigures the error codes used for problems during the action.
missingDisplayNamestringError message output when the display name was not supplied.

notLoggedInstringError message output when the user is not signed in.

actions.accountRegister - Register user

The accountRegister action controls the error messages when registering a new user account in the shop. Optionally, a confirmation or verification email can be sent via verifyEmail after a successful registration.

Example configuration

{
  "errorCodes": {
    "accountAlreadyExists": "<Textbaustein>",
    "emailCheckFailed": "<Textbaustein>",
    "missingId": "<Textbaustein>",
    "missingPassword": "<Textbaustein>",
    "passwordCheckFailed": "<Textbaustein>",
    "passwordMismatch": "<Textbaustein>"
  },
  "verifyEmail": {
    "fromAddress": "noreply@websale.de",
    "fromName": "Mein Onlineshop",
    "subject": "Mein Onlineshop | Registrierung",
    "template": "accountRegister.htm"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesarrayConfigures the error codes used for problems during the action.
accountAlreadyExistsstringError message output when the account already exists.

emailCheckFailedstringError message output when the provided email address is considered invalid.

missingIdstringError message output when no email address was supplied.

missingPasswordstringError message output when no password was supplied.

passwordCheckFailedstringError message output when the password does not meet the minimum requirements.

passwordMismatchstringError message output when the password and password confirmation do not match.

verifyEmailobjectConfigures the email through which the customer can confirm their registration.
Subject, sender and template are controlled via the general email parameters, see here: Emails & email settings

actions.accountActivate - Activate existing customers

The accountActivate action controls the opt-in email as well as the error messages used when activating an existing customer account already present in the shop. The prerequisite is that the customer record was previously created in the shop (e.g. via an import). Further information about configuring existing customer registration can be found under accounts.account. Example configuration
{
  "optInEmail": {
    "template": "account/activateAccountOptIn.htm",
    "subject": "Registration attempt for your Account",
    "fromAddress": "no-reply@websale.de",
    "fromName": "Websale Shop"
  },
  "errorCodes": {
    "disabled": "<Textbaustein>",
    "missingId": "<Textbaustein>",
    "missingCustomerNumber": "<Textbaustein>",
    "missingPassword": "<Textbaustein>",
    "passwordMismatch": "<Textbaustein>",
    "emailCheckFailed": "<Textbaustein>",
    "passwordCheckFailed": "<Textbaustein>",
    "accountNotFound": "<Textbaustein>",
    "accountAlreadyActivated": "<Textbaustein>"
  }
}
Parameter overview
ParameterTypeDescription
optInEmailobjectConfigures the opt-in email sent to the address stored in the customer account after activation.
The customer must confirm the registration again via this email.
The sending can be disabled in accounts.account via requireOptIn. Subject, sender and template are controlled via the general email parameters.
errorCodesarrayConfigures the error codes used for problems during the action.
disabledstringError message output when existing customer registration is disabled.

missingIdstringError message output when no email address was supplied.

missingCustomerNumberstringError message output when no customer number was supplied.

missingPasswordstringError message output when no password was supplied.

passwordMismatchstringError message output when the password and password confirmation do not match.

emailCheckFailedstringError message output when the provided email address is considered invalid.

passwordCheckFailedstringError message output when the password does not meet the minimum requirements.

accountNotFoundstringError message output when no account could be found with the supplied data.

accountAlreadyActivatedstringError message output when the account has already been activated.

actions.accountActivateOptIn - Existing customer activation opt-in confirmation

The accountActivateOptIn action controls the verification email as well as the error messages that occur when confirming the opt-in link as part of the existing customer activation. This action is triggered after the customer has called up the opt-in link from the email sent by accountActivate. Example configuration
{
  "verifyEmail": {
    "template": "account/email_verify.htm",
    "subject": "Verify your Email-Address",
    "fromAddress": "no-reply@websale.de",
    "fromName": "Websale Shop"
  },
  "errorCodes": {
    "actionNotAllowed": "<Textbaustein>",
    "accountAlreadyExists": "<Textbaustein>"
  }
}
Parameter overview
ParameterTypeDescription
verifyEmailobjectConfigures the verification email sent to the customer after the opt-in link has been confirmed successfully. Subject, sender and template are controlled via the general email parameters.
errorCodesarrayConfigures the error codes used for problems during the action.
actionNotAllowedstringError message output when the opt-in token is invalid or has expired.

accountAlreadyExistsstringError message output when a split into company / employee accounts is configured and the employee account could not be created because the email address is already in use.


actions.address* - Address data

This section contains all actions related to managing address data in the user account. The messages that are output when creating, changing or deleting billing and delivery addresses in the shop are documented here.

actions.addressCreate - Create address

The addressCreate action controls the error messages when creating a new address in the customer account.

Example configuration

{
  "errorCodes": {
    "notLoggedIn": "<Textbaustein>",
    "emptyAddress": "<Textbaustein>",
    "unknownField": "<Textbaustein>",
    "invalidFieldType": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesarrayConfigures the error codes used for problems during the action.
notLoggedInstringError message output when the user is not signed in.

emptyAddressstringError message output when no or incomplete address data was supplied.

unknownFieldstringError message output when fields are supplied that are not known to the system.

invalidFieldTypestringError message output when fields are filled with an invalid data type.

actions.addressDelete - Delete address

The addressDelete action controls the error messages when deleting an existing address in the customer account.

Example configuration

{
  "errorCodes": {
    "notLoggedIn": "<Textbaustein>",
    "invalidAddressId": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesarrayConfigures the error codes used for problems during the action.
notLoggedInstringError message output when the user is not signed in.

invalidAddressIdstringError message output when the provided address ID is invalid or the address cannot be found.

actions.addressUpdate - Edit address

The addressUpdate action controls the error messages that occur when editing an existing address in the customer account.

Example configuration

{
  "errorCodes": {
    "emptyAddress": "<Textbaustein>",
    "invalidAddressId": "<Textbaustein>",
    "unknownField": "<Textbaustein>",
    "invalidFieldType": "<Textbaustein>",
    "expressCheckoutNotAllowed": "<Textbaustein>",
    "readOnlyField": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesarrayConfigures the error codes used for problems during the action.
emptyAddressstringError message output when no or incomplete address data was supplied.

invalidAddressIdstringError message output when the provided address ID is invalid or the address cannot be found.

unknownFieldstringError message output when fields are supplied that are not known to the system.

invalidFieldTypestringError message output when fields are filled with an invalid data type.

expressCheckoutNotAllowedstringError message output when the address may not be changed in the context of an express checkout.

readOnlyFieldstringError message output when an attempt is made to change a read-only field.


actions.creditCardDelete - Delete stored credit card

The creditCardDelete action defines the error messages that are output when deleting a stored credit card.

Example configuration

{
  "errorCodes": {
    "notLoggedIn": "<Textbaustein>",
    "missingPseudoId": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesarrayConfigures the error codes used for problems during the action.
notLoggedInstringError message output when the user is not signed in.

missingPseudoIdstringError message output when no card reference or an invalid one was supplied, or the card cannot be found.


actions.confirmZipCode - Confirm postal code

The confirmZipCode action defines the error messages for verifying that the supplied postal code matches a given order.

Example configuration

{
  "errorCodes": {
    "missingZipCode": "<Textbaustein>",
    "missingOrderId": "<Textbaustein>",
    "invalidZipCode": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesarrayConfigures the error codes used for problems during the action.
missingZipCodestringError message output when no postal code was supplied.

missingOrderIdstringError message output when no order number was supplied.

invalidZipCodestringError message output when the postal code does not match the order.


actions.email* - Email address for sign-in

This section covers all actions around the email address used for signing in. Here you can configure the emails and error messages used when changing the sign-in email address as well as when confirming or verifying the email address via confirmation links.

actions.emailUpdate - Change email address

The emailUpdate action defines emails and error messages used when changing the email address of an existing customer account. Two email types can be used: an optional double opt-in email and a confirmation/verification email to the new address.

Example configuration

{
  "verifyEmail": {
    "template": "email_update_verify.htm",
    "subject": "Bitte bestätigen Sie Ihre neue E-Mail-Adresse",
    "fromAddress": "noreply@meinshop.de",
    "fromName": "Mein Onlineshop"
  },
  "doubleOptInEmail": {
    "template": "email_update_double_opt_in.htm",
    "subject": "Bestätigung zur Änderung Ihrer E-Mail-Adresse",
    "fromAddress": "noreply@meinshop.de",
    "fromName": "Mein Onlineshop",
    "enabled": false
  },
  "errorCodes": {
    "missingEmail": "<Textbaustein>",
    "emailCheckFailed": "<Textbaustein>",
    "accountAlreadyExists": "<Textbaustein>",
    "actionNotAllowed": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
verifyEmailobjectConfigures the email through which the customer can confirm their change.
Subject, sender and template are controlled via the general email parameters, see here: Emails & email settings
doubleOptInEmailobjectConfigures the optional double opt-in email with which the customer must confirm the account deletion before it is carried out.
The sending can be enabled or disabled via enabled. Subject, sender and template are controlled via the general email parameters, see here: Emails & email settings
errorCodesobjectConfigures the error codes used for problems during the action.
missingEmailstringError message output when no email address was supplied.

emailCheckFailedstringError message output when the provided email address is considered invalid.

accountAlreadyExistsstringError message output when an account with this email address already exists.

actionNotAllowedstringError message output when the action is not allowed.

actions.emailVerify - Confirm email address

The emailVerify action can be used to define the error messages that occur when a customer verifies their email address via a confirmation link (double opt-in).

Example configuration

{
  "errorCodes": {
    "actionNotAllowed": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesobjectConfigures the error codes used for problems during the action.
actionNotAllowedstringError message output when the action is not allowed.


actions.set* - Data assignment & update

This section covers actions used to set or update certain data or values during a running shop context.

actions.setCustomerData - Additional customer data

The setCustomerData action can be used to control error messages while processing additional customer data. This data is captured, for example, via forms in the customer account or during checkout.

Example configuration

{
  "errorCodes": {
    "fieldCheckFailed": "<Textbaustein>",
    "invalidNumberValue": "<Textbaustein>",
    "invalidCheckboxValue": "<Textbaustein>",
    "requiredCheckboxUnchecked": "<Textbaustein>",
    "requiredTextfieldEmpty": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesobjectConfigures the error codes used for problems during the action.
fieldCheckFailedstringError message output when a field check fails (e.g. required field violated or format error).

invalidNumberValuestringError message output when no valid numerical value is supplied in a number field.

invalidCheckboxValuestringError message output when an invalid value is supplied for a checkbox.

requiredCheckboxUncheckedstringError message output when a checkbox marked as required is not checked.

requiredTextfieldEmptystringError message output when a required text field is left empty.

actions.setMainAddress - Set main address

The setMainAddress action defines error messages that occur when setting the main address in the customer account.

Example configuration

{
  "errorCodes": {
    "notLoggedIn": "<Textbaustein>",
    "missingAddressId": "<Textbaustein>",
    "invalidAddressId": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesobjectConfigures the error codes used for problems during the action.
notLoggedInstringError message output when the user is not signed in.

missingAddressIdstringError message output when no address ID was supplied (no address selected).

invalidAddressIdstringError message output when the provided address ID is invalid or the address cannot be found.


actions.subAccountCreate - Create sub-accounts

The subAccountCreate action defines error messages that occur when registering a sub-account for an existing main customer account (e.g. for employee, store branch or team accounts).

Example configuration

{
  "errorCodes": {
    "disabled": "<Textbaustein>",
    "notLoggedIn": "<Textbaustein>",
    "missingEmail": "<Textbaustein>",
    "missingPassword": "<Textbaustein>",
    "passwordMismatch": "<Textbaustein>",
    "emailCheckFailed": "<Textbaustein>",
    "passwordCheckFailed": "<Textbaustein>",
    "accountAlreadyExists": "<Textbaustein>"
  }
}

Parameter overview

ParameterTypeDescription
errorCodesobjectConfigures the error codes used for problems during the action.
disabledstringError message output when the creation of sub-accounts is fundamentally disabled in the shop.

notLoggedInstringError message output when the user is not signed in.

missingEmailstringError message output when no email address was supplied.

missingPasswordstringError message output when no password was supplied.

passwordMismatchstringError message output when the password and password confirmation do not match.

emailCheckFailedstringError message output when the provided email address is considered invalid.

passwordCheckFailedstringError message output when the password does not meet the minimum requirements.

accountAlreadyExistsstringError message output when an account with this email address already exists.