Skip to main content
Anchor to customerEmailMarketingConsentUpdate

customerEmailMarketingConsentUpdate

mutation

Requires write_customers access scope.

Updates a Customer's email marketing consent information. The customer must have an email address to update their consent. Records the marketing state (such as subscribed, pending, unsubscribed), opt-in level, and when and where the customer gave or withdrew consent.

CustomerEmailMarketingConsentUpdateInput!
required

Specifies the input fields to update a customer's email marketing consent information.


Was this section helpful?

Anchor to CustomerEmailMarketingConsentUpdatePayload returnsCustomerEmailMarketingConsentUpdatePayload returns

Customer

The updated customer.

[CustomerEmailMarketingConsentUpdateUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?