Shopify has added a new defaultEmailAddress field to the Customer object in GraphQL Admin API version 2025-04. This field enables developers to query a customer's email address along with their associated marketing communication state in a single, streamlined request. The addition simplifies customer data retrieval for apps that need to access and manage customer contact information and preferences.
Previously, developers had to navigate multiple fields or make separate API calls to reliably retrieve a customer's primary email address and understand their marketing opt-in status. With this new field, you can now access this critical information more efficiently, reducing API complexity and improving app performance. This is particularly valuable for marketing automation apps, customer communication platforms, and loyalty programs that depend on accurate email data and consent tracking.
defaultEmailAddress fieldGetShopifyToken makes it easy to obtain and manage the OAuth tokens required to access Shopify's GraphQL Admin API. With proper authentication in place, you can immediately start leveraging the new defaultEmailAddress field in your API requests.