Skip to content
You are reading the pinned copy of v1.0, which is also the latest release. Read the latest.

Newsletter (storefront API)

Storefront and customer routes of the newsletter module. Send Accept-Language (or X-Locale from a browser) on every call; a customer route needs the session cookie.

Confirm a newsletter subscription

Parameters:

  • locale in query (string, required).
  • token in query (string, required).

Responses:

  • 302: Redirect to the storefront confirmation page.

Subscribe to the newsletter (double opt-in)

Request body: SubscribeDto.

Responses:

  • 202: Confirmation email sent if applicable.
  • 400: Invalid email.

Unsubscribe via the email footer link

Parameters:

  • locale in query (string, required).
  • token in query (string, required).

Responses:

  • 302: Redirect to the storefront confirmation page.

One-click newsletter unsubscribe (RFC 8058)

Parameters:

  • token in query (string, optional).

Responses:

  • 200: Opted out.
  • locale (string, optional).
  • email (string, email, max length 254, required).
As seen on Open Source Alternatives The Merchant Engine badge