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
- phoneNumber (String!)
- whatsAppMarketingConsent (CustomerWhatsAppMarketingConsent!)
- marketingState (SmsMarketingState!): deprecated
- Anchor to phoneNumberphone•String!
Number non-null 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.- Anchor to marketingStatemarketing•Sms
State Marketing State! non-nullDeprecated
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?