displayName No Longer Shows Unapproved Emails or Phones – What Developers Need to Know

Shopify’s latest API change hides customer emails and phone numbers in the displayName field unless your app has explicit permission. Learn who is affected, how the change works, and the exact steps to keep your integrations running smoothly.

displayName No Longer Shows Unapproved Emails or Phones – What Developers Need to Know
6 sections

Shopify just tightened privacy around the displayName field. Starting with the current API version, the field will no longer fall back to a customer’s email or phone number unless your app has been granted access to those protected data points. If the fallback value is hidden, the API now returns the placeholder “•••”. This seemingly small tweak can break any workflow that expects a real email or phone number from displayName, especially during customer merges or when showing contact info in admin‑side apps.

What Changed in displayName

Previously, displayName followed a simple hierarchy: first‑name + last‑name → email → phone. An app only needed the "customer name" permission to read the field, even when the returned value was an email or phone number. The new logic adds a permission check on the actual value returned:

• If the customer has a name, apps with "customer name" access get the name (unchanged).

• If the fallback is an email, the app must have "customer email" access; otherwise the API returns "•••".

• If the fallback is a phone, the app must have "customer phone" access; otherwise it also gets "•••".

• When a customer lacks name, email, and phone, displayName returns an empty string ("").

The fallback order itself did not change, and the field remains non‑null in the schema. The change also applies to related fields such as CustomerSegmentMember.displayName, CustomerMergePreviewDefaultFields.displayName, and the error messages in CustomerMergeError.message and CustomerMergeable.reason.

Who Is Affected

Any public or private app that reads one of the affected fields without having explicit permission to the customer's email or phone will now see "•••" for customers without a name. The impact is limited to the GraphQL Admin API and the Customer Account API; the REST Admin API is unchanged.

How It Impacts Your App

  • Customer‑facing lists that displayed displayName as a quick contact method may suddenly show "•••" instead of an email or phone, confusing staff and shoppers.
  • Automated merge‑preview tools that rely on CustomerMergePreviewDefaultFields.displayName could display generic error messages, making it harder to resolve duplicate accounts.
  • Any custom logic that parses the string for "@" or a phone pattern will now fail for hidden values.
  • If your app already requests "customer email" and "customer phone" scopes, you’re safe. Otherwise you’ll need to update permissions or adjust the UI to handle the placeholder.

    Actionable Steps to Stay Compliant

  • Audit Your Code
  • Search for any occurrence of the following GraphQL fields: Customer.displayName, CustomerSegmentMember.displayName, CustomerMergePreviewDefaultFields.displayName, CustomerMergeError.message, CustomerMergeable.reason. Verify whether you treat the value as a contact detail.

  • Request the Missing Scopes
  • If you need the email or phone, add the corresponding protected‑data scopes (customer.email, customer.phone) in the Partner Dashboard → App Settings → API scopes. Remember that protected data requires a justification and may be subject to Shopify review.

  • Gracefully Handle "•••"
  • When the API returns "•••", treat it as "contact details not available to this app". Show a friendly placeholder such as "Contact hidden" or fall back to a static note like "Email/Phone unavailable".

  • Update Documentation and UI Labels
  • Make sure any admin UI, help text, or API docs you provide explain why a customer’s contact information may be masked. This reduces support tickets.

    Testing the Change

    Create a development store, install your public app, and add a test customer with only an email address (no first/last name). Run a GraphQL query like the one below before and after you add the email scope.

    query TestDisplayName {

    customer(id: "gid://shopify/Customer/1234567890") {

    displayName

    email @include(if: $hasEmailScope)

    phone @include(if: $hasPhoneScope)

    }

    }

    Without the email scope you should see:

    "displayName": "•••"

    After adding the scope, the same query returns the actual email address. Replicate the same steps for merge‑preview fields to verify error messages display correctly.

    Conclusion & Next Steps

    Shopify’s privacy‑first tweak to displayName protects customer contact data but requires developers to be explicit about the data they need. By auditing your app, requesting the proper protected scopes, and handling the "•••" placeholder gracefully, you’ll keep your workflows reliable and stay compliant with Shopify’s data policies.

    Ready to update your app? Log in to the Partner Dashboard, add the missing scopes, and push a new version to your test store today. Need help with the scope request process or testing? Drop a comment below or reach out to our Shopify developer community for a quick walkthrough.

    Tags
    Sources

    Related Articles

    Offer DHL and Chronopost Pickup Points in Germany and France – What Shopify Merchants Need to Know

    Offer DHL and Chronopost Pickup Points in Germany and France – What Shopify Merchants Need to Know

    Shopify now supports DHL pickup points in Germany and Chronopost Relais in France. Learn how to enable the feature, what developers must consider, and actionable steps to start offering local pickup to your customers.

    December 1, 20264 min
    Unlock More Sales: Add Shopify Payments Next to Your Third‑Party Provider

    Unlock More Sales: Add Shopify Payments Next to Your Third‑Party Provider

    Shopify now lets merchants keep their existing third‑party processor while activating Shopify Payments for extra payment options, auto‑retries, and Shop app sales—all without checkout disruption.

    November 30, 20264 min
    Show Walk‑In Stores in Your Shopify Storefront with the New StoreAvailability Flag

    Show Walk‑In Stores in Your Shopify Storefront with the New StoreAvailability Flag

    Shopify’s Storefront API 2027‑01 adds a physicalStorefront argument, letting developers surface walk‑in locations alongside pickup points. Learn what changed, who it impacts, and how to implement the new query today.

    November 27, 20264 min
    Payment Verification Proof Boosts Your Chargeback Defense

    Payment Verification Proof Boosts Your Chargeback Defense

    Shopify Payments now automatically attaches CVV, AVS, 3D Secure, EMV and Visa evidence to unauthorized chargeback responses, giving merchants stronger proof and developers clearer data. Learn what changed, who it impacts, and how to act now.

    November 25, 20264 min