Skip to main content
Version: 3.x

customerUpdate

Updates an existing customer.

Requires MANAGE_USERSpermission.

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.
customerUpdate(
externalReference: String
id: ID
input: CustomerInput!
): CustomerUpdate

Arguments

customerUpdate.externalReference ● String scalar

External ID of a customer to update.

Added in Saleor 3.10

customerUpdate.id ● ID scalar

ID of a customer to update.

customerUpdate.input ● CustomerInput! non-null input

Fields required to update a customer.

Type

CustomerUpdate object

Updates an existing customer.

Requires MANAGE_USERSpermission.

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.

Was this page helpful?