This endpoint will record explicit consent received by the customer.

This information can then be used for reporting purposes to track when explicit consent was received and to ensure that emails are only sent to customers that have provided explicit consent.

Param Name

Required

Type

Notes

email

Yes

String

Email address of the customer to record consent

📘

Any additional fields will be treated as strings and stored along with the record of explicit consent. This will allow you to store any additional information you find necessary regarding how the consent was received.

_rejoiner.push(['customerOptIn', {
  'email': '[email protected]',
  'type': 'accepts marketing checkbox',
  'otherInfo': 'accepted marketing on checkout page'
}]);