Unsubscribe (storefront API)
Storefront and customer routes of the unsubscribe module. Send Accept-Language (or X-Locale from a browser) on every call; a customer route needs the session cookie.
GET /v1/unsubscribe
Section titled “GET /v1/unsubscribe”Unsubscribe via the email footer link
Parameters:
localein query (string, required).tokenin query (string, required).
Responses:
200: no description.302: Redirect to the preference center.
POST /v1/unsubscribe
Section titled “POST /v1/unsubscribe”One-click unsubscribe (RFC 8058)
Parameters:
tokenin query (string, required).
Responses:
200: Opted out.400: Invalid token.