Newsletter

Actions

Actions available for implementation and usage

Canonical actions can be imported from the @laioutr-core/canonical-types package. They represent actions that are common in an ecommerce application and may have different implementations depending on the app.

SubscribeAction

newsletter/subscribe
Initial newsletter subscription from a user.
email
stringrequired

Email is the only required field.

formatemail
source
string
phone
string

Represents a phone number. Formatted as a E.164 number.

pattern^\+?[1-9]\d{1,14}$
customFields
Record<string, unknown>
status
"success" | "error" | "already-subscribed"required