---
title: "CustomerUpdateInput"
description: "The input fields for updating a customer."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/customers/inputs/customer-update-input'
  md: 'https://developer.shopline.com/docs/storefront-api/customers/inputs/customer-update-input.md'
---
# CustomerUpdateInput

The input fields for updating a customer.

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Input Fields

* `firstName`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's first name.     
  Maximum length: 128

* `lastName`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's last name.   
  Maximum length: 128

* `password`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's password.   
  Maximum length: 18

* `phone`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's phone number.    
  Maximum length: 20

* `acceptsMarketing`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  Whether the customer has subscribed to marketing information via email.
  * `true`: Subscribed
  * `false`: Not subscribed

* `email`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's email address.   
  Maximum length: 50

* `birthday`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's date of birth. Format: `yyyyMMdd`. If the field is omitted, the system retains the existing value and does not update the field. If the field is set to `null` or provided with an empty string `""`, the system clears the corresponding data.    
  Example: `19931231`

* `gender`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's gender. If the field is omitted, the system retains the existing value and does not update the field. If the field is set to `null` or provided with an empty string  `""`, the system clears the corresponding data. Valid values are: 
  * `unknown`: Unknown
  * `male`: Male
  * `female`: Female
  * `prefer not to say`: Secret

## Argument from

* [Mutation](https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-update.md).customerUpdate

