Anchor to CustomerPhoneNumberCustomer
objectCustomer Phone Number
Requires access scope.
Defines the phone number of the customer. Apps using the Customer Account API must meet the protected customer data requirements.
Anchor to FieldsFields
- marketingState (SmsMarketingState!)
- phoneNumber (String!)
- smsMarketingConsent (CustomerSmsMarketingConsent!)
- whatsAppMarketingConsent (CustomerWhatsAppMarketingConsent!)
- Anchor to marketingStatemarketing•Sms
State Marketing State! non-null Indicates whether the customer has subscribed to SMS marketing material.
- Anchor to phoneNumberphone•String!
Number non-null The customer's phone number.
- Anchor to smsMarketingConsentsms•Customer
Marketing Consent Sms Marketing Consent! non-null The SMS marketing consent information for the customer's phone number.
- Anchor to whatsAppMarketingConsentwhats•Customer
App Marketing Consent Whats App Marketing Consent! non-null The WhatsApp marketing consent information for the customer's phone number. Update it with the
mutation.
Was this section helpful?
Anchor to MutationsMutations
- customerWhatsAppMarketingConsentUpdate (CustomerWhatsAppMarketingConsentUpdatePayload)
- •mutation
Updates the current customer's WhatsApp marketing consent information. Shopify identifies the customer's WhatsApp account by their phone number.
You can subscribe or unsubscribe the customer from WhatsApp marketing.
- Anchor to inputinput•Customer
Whats App Marketing Consent Update Input! required Specifies the input fields to update the current customer's WhatsApp marketing consent information.
Arguments
Was this section helpful?