Skip to main content
mutation

Requires write_customers access scope.

Update a customer's attributes. As of API version 2022-10, apps using protected customer data must meet the protected customer data requirements.

•CustomerInput!
required

Provides updated fields for the customer. To set marketing consent, use the customerEmailMarketingConsentUpdate or customerSmsMarketingConsentUpdate mutations instead.


Was this section helpful?

Anchor to CustomerUpdatePayload returnsCustomerUpdatePayload returns

•Customer

The updated customer.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?