Actions overview
| Action | Description |
|---|---|
NewsletterSubscribe | Subscribes a customer to the newsletter. |
NewsletterSubscribeConfirm | Confirms the newsletter subscription via double opt-in. |
NewsletterUnsubscribe | Unsubscribes a customer from the newsletter. |
NewsletterUnsubscribeConfirm | Confirms the newsletter unsubscription via double opt-in. |
Actions
NewsletterSubscribe
This action subscribes a customer to the newsletter. After successful subscription, the customer receives a confirmation email with a double opt-in link. Usage exampleCan be used on a newsletter subscription page where customers can enter their email address and optionally select one or more target groups. Parameters
| Name | Description |
|---|---|
email | The email address to be subscribed to the newsletter. |
targetGroupId.(id) | Optional target group ID to which the customer should be subscribed. |
| Error code | Description |
|---|---|
missingEmail | Parameter email is missing. |
emailCheckFailed | The specified email address is invalid. |
accountAlreadyExists | The email address is already subscribed to the newsletter. |
NewsletterSubscribeConfirm
This action confirms the newsletter subscription via double opt-in. After subscribing, the customer receives an email with a confirmation link that triggers this action. Usage exampleCan be used on the confirmation page to which the customer is redirected after clicking the opt-in link in the subscription email. Error codes
| Error code | Description |
|---|---|
unauthorized | No valid opt-in token was passed. |
NewsletterUnsubscribe
This action unsubscribes a customer from the newsletter. The customer specifies their email address and can optionally deselect individual target groups. Usage exampleCan be used on the unsubscribe page, where customers can enter their email address and unsubscribe from individual or all newsletter target groups. Parameters
| Name | Description |
|---|---|
email | The email address to be unsubscribed from the newsletter. |
targetGroupId.(id) | Optional target group ID from which the customer should be unsubscribed. |
| Error code | Description |
|---|---|
missingEmail | Parameter email is missing. |
emailCheckFailed | The specified email address is invalid. |
NewsletterUnsubscribeConfirm
This action confirms the newsletter unsubscription via double opt-in. After unsubscribing, the customer receives an email with a confirmation link that triggers this action. Usage exampleCan be used on the confirmation page to which the customer is redirected after clicking the opt-in link in the unsubscription email. Error codes
| Error code | Description |
|---|---|
unauthorized | No valid opt-in token was passed. |
