---
title: customerUpdate Mutation
seo:
  title: customerUpdate Mutation
  description: 'Mutation: customerUpdate Mutation'
slug: api-reference/users/mutations/customer-update
sidebar:
  label: customerUpdate
search:
  tags:
    - API reference
    - Users
lastModified: '2026-04-13'
---

Updates an existing customer. 



Requires one of the following permissions: `MANAGE_USERS`.



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**

```graphql
@webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED, CUSTOMER_METADATA_UPDATED], syncEvents: [])
```



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

## Returns

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

<details>
<summary>Show return type</summary>


```graphql
type CustomerUpdate {
  accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [AccountError!]!
  user: User
}
```


</details>

## Arguments

### externalReference [#external-reference]

**`externalReference`** · [`String`](/api-reference/miscellaneous/scalars/string)

External ID of a customer to update.

### id [#id]

**`id`** · [`ID`](/api-reference/miscellaneous/scalars/id)

ID of a customer to update.

### input [#input]

**`input`** · [`CustomerInput!`](/api-reference/users/inputs/customer-input)

Fields required to update a customer.

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
