--- title: CustomerEmailAddress - GraphQL Admin description: >- A customer's email address with marketing consent. This includes the email address, marketing subscription status, and opt-in level according to [M3AAWG best practices guidelines](https://www.m3aawg.org/news/updated-m3aawg-best-practices-for-senders-urge-opt-in-only-mailings-address-sender-transparency). It also provides the timestamp of when customers last updated marketing consent and URLs for unsubscribing from marketing emails or opting in or out of email open tracking. The [`sourceLocation`](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerEmailAddress#field-CustomerEmailAddress.fields.sourceLocation) field indicates where the customer consented to receive marketing material. api_version: 2025-01 api_name: admin type: object api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2025-01/objects/CustomerEmailAddress md: >- https://shopify.dev/docs/api/admin-graphql/2025-01/objects/CustomerEmailAddress.md --- # Customer​Email​Address object Requires `read_customers` access scope. A customer's email address with marketing consent. This includes the email address, marketing subscription status, and opt-in level according to [M3AAWG best practices guidelines](https://www.m3aawg.org/news/updated-m3aawg-best-practices-for-senders-urge-opt-in-only-mailings-address-sender-transparency). It also provides the timestamp of when customers last updated marketing consent and URLs for unsubscribing from marketing emails or opting in or out of email open tracking. The [`sourceLocation`](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerEmailAddress#field-CustomerEmailAddress.fields.sourceLocation) field indicates where the customer consented to receive marketing material. ## Fields * email​Address [String!](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/String) non-null The customer's default email address. * marketing​State [Customer​Email​Address​Marketing​State!](https://shopify.dev/docs/api/admin-graphql/2025-01/enums/CustomerEmailAddressMarketingState) non-null Whether the customer has subscribed to email marketing. * marketing​Unsubscribe​Url [URL!](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/URL) non-null The URL to unsubscribe a member from all mailing lists. * open​Tracking​Level [Customer​Email​Address​Open​Tracking​Level!](https://shopify.dev/docs/api/admin-graphql/2025-01/enums/CustomerEmailAddressOpenTrackingLevel) non-null Whether the customer has opted in to having their opened emails tracked. * open​Tracking​Url [URL!](https://shopify.dev/docs/api/admin-graphql/2025-01/scalars/URL) non-null The URL that can be used to opt a customer in or out of email open tracking. *** ## Map ### Fields with this object * {}[CustomerMergePreviewAlternateFields.email](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/CustomerMergePreviewAlternateFields#field-CustomerMergePreviewAlternateFields.fields.email) * {}[CustomerMergePreviewDefaultFields.email](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/CustomerMergePreviewDefaultFields#field-CustomerMergePreviewDefaultFields.fields.email) * {}[CustomerSegmentMember.defaultEmailAddress](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/CustomerSegmentMember#field-CustomerSegmentMember.fields.defaultEmailAddress)