> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/users/llms.txt)
> Source: https://docs.saleor.io/api-reference/users/mutations/customer-update

# customerUpdate Mutation

Updates an existing customer.

Requires the MANAGE\_USERS permission.

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.

```graphql
customerUpdate(
  externalReference: String
  id: ID
  input: CustomerInput!
): CustomerUpdate
```

Details

```graphql
type CustomerUpdate {
  accountErrors: [AccountError!]! @deprecated
  errors: [AccountError!]!
  user: User
}
```

<a id="arguments"></a>

### Arguments

<a id="external-reference"></a>

#### [`externalReference`](#external-reference) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

External ID of a customer to update.

<a id="id"></a>

#### [`id`](#id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

ID of a customer to update.

<a id="input"></a>

#### [`input`](#input) ● [`CustomerInput!`](/api-reference/users/inputs/customer-input.md)

Fields required to update a customer.

<a id="type"></a>

### Type

<a id="customerupdate"></a>

#### [`CustomerUpdate`](/api-reference/users/objects/customer-update.md)

Updates an existing customer.

Requires the MANAGE\_USERS permission.

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.
