customerUpdate Mutation
Updates an existing customer.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A new customer account was updated.
- CUSTOMER_METADATA_UPDATED (async): Optionally called when customer’s metadata was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: [])
customerUpdate(externalReference: String, id: ID, input: CustomerInput!): CustomerUpdate
Returns
Show return type
type CustomerUpdate {
accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [AccountError!]!
user: User
}Arguments
externalReference
externalReference · String
External ID of a customer to update.
id
id · ID
ID of a customer to update.
input
input · CustomerInput!
Fields required to update a customer.
Schema: Saleor 3.23.43. Download SDL.