-
Notifications
You must be signed in to change notification settings - Fork 4
Email and Marketing Consents
The 'Emails and Marketing' page displays a number of user consents for receiving newsletters and communications from the Guardian. The options and user settings are fetched from the idapi
endpoints /newsletters
and /consents
. This is combined with the product holdings the user has from the mdapi
me/mma
and mpapi
mobile-subscriptions
endpoints to determine which product specific consents to show. These consents are displayed under the heading 'Supporter exclusive'. Each consent can be toggled which triggers an API request to update that consent in the datastore.
The consents listed under 'Supporter exclusive' are also known as 'Soft Opt Ins' because the user is opted in to them when purchasing a product. A list of these IDs can be found in /shared/softOptInIDs.ts
. The config of which products correspond to which consents is stored in the softOptInIDs
property on each Product Type in /shared/productTypes.ts
and for mobile subscriptions in /shared/mpapiResponse.ts
.
Not what you're looking for? Be sure to use the navigation sidebar on the right. ➡️