Unsubscribe from the newsletter
Destroys the newsletter subscription, firing the newsletter_subscriber.deleted
lifecycle event. Two authorization paths are accepted:
- Unsubscribe token in the
?token=query param — bearer delivered to the subscriber by email (the link in an unsubscribe message). The token is cryptographically signed and is cross-checked against the:idin the URL — tampering with either is rejected. To request such an email be sent, call the collection actionPOST /newsletter_subscribers/request_unsubscribewith the subscriber’s email in the body. - JWT bearer for the logged-in customer who owns the subscription. No
tokenquery param is needed in this path.
All failure modes return a generic invalid_token 422.
DELETE
Unsubscribe from the newsletter
Authorizations
Publishable API key for store access
Headers
Optional Bearer JWT — alternative to the token query param
Path Parameters
Newsletter subscriber prefix id (sub_*)
Query Parameters
Unsubscribe token delivered to the subscriber by email (e.g. the link in an unsubscribe message).
Response
unsubscribed via JWT (owner)
Unsubscribe from the newsletter

