--- title: customerUpdate - Customer API description: Updates the customer's personal information. api_version: 2025-10 api_name: customer type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/customer/latest/mutations/customerUpdate md: https://shopify.dev/docs/api/customer/latest/mutations/customerUpdate.md --- # customer​Update mutation Updates the customer's personal information. ## Arguments * input [Customer​Update​Input!](https://shopify.dev/docs/api/customer/latest/input-objects/CustomerUpdateInput) required Specifies the input fields for the customer update. *** ## Customer​Update​Payload returns * customer [Customer](https://shopify.dev/docs/api/customer/latest/objects/Customer) The customer's personal information that has been updated. * user​Errors [\[User​Errors​Customer​User​Errors!\]!](https://shopify.dev/docs/api/customer/latest/objects/UserErrorsCustomerUserErrors) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### Updates a customer's first and last name #### Description Update a customer's first and last name #### Query ```graphql mutation customerUpdate($input: CustomerUpdateInput!) { customerUpdate(input: $input) { userErrors { field message } customer { firstName lastName } } } ``` #### Variables ```json { "input": { "firstName": "Quinn", "lastName": "Ishida" } } ``` #### cURL ```bash curl -X POST \ https://shopify.com//account/customer/api/2025-10/graphql/api/2025-10/graphql.json \ -H 'Content-Type: application/json' \ -H 'Authorization: {access_token}' \ -d '{ "query": "mutation customerUpdate($input: CustomerUpdateInput!) { customerUpdate(input: $input) { userErrors { field message } customer { firstName lastName } } }", "variables": { "input": { "firstName": "Quinn", "lastName": "Ishida" } } }' ``` #### Response ```json { "customerUpdate": { "userErrors": [], "customer": { "firstName": "Quinn", "lastName": "Ishida" } } } ``` * ### customerUpdate reference [Open in GraphiQL](http://localhost:3457/graphiql?query=mutation%20customerUpdate\(%24input%3A%20CustomerUpdateInput!\)%20%7B%0A%20%20customerUpdate\(input%3A%20%24input\)%20%7B%0A%20%20%20%20userErrors%20%7B%0A%20%20%20%20%20%20field%0A%20%20%20%20%20%20message%0A%20%20%20%20%7D%0A%20%20%20%20customer%20%7B%0A%20%20%20%20%20%20firstName%0A%20%20%20%20%20%20lastName%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D\&variables=%7B%0A%20%20%22input%22%3A%20%7B%0A%20%20%20%20%22firstName%22%3A%20%22Quinn%22%2C%0A%20%20%20%20%22lastName%22%3A%20%22Ishida%22%0A%20%20%7D%0A%7D) ```graphql mutation customerUpdate($input: CustomerUpdateInput!) { customerUpdate(input: $input) { userErrors { field message } customer { firstName lastName } } } ``` ## Input variables JSON ```json { "input": { "firstName": "Quinn", "lastName": "Ishida" } } ``` ## Response JSON ```json { "customerUpdate": { "userErrors": [], "customer": { "firstName": "Quinn", "lastName": "Ishida" } } } ```