Skip to content
You are reading the unreleased documentation. No version is released yet, and these pages describe code that is not in a release.

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:

  • 200: no description.
  • 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:

  • 200: no description.
  • 302: Redirect to the storefront confirmation page.

One-click newsletter unsubscribe (RFC 8058)

Parameters:

  • token in query (string, required).

Responses:

  • 200: Opted out.
  • email (string, max length 254, required).
  • locale ("fr", "en", "ar", optional).