---
title: "CustomerUpdateInput"
description: "用于更新客户信息的输入字段。"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/inputs/customer-update-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/inputs/customer-update-input.md'
---
# CustomerUpdateInput

用于更新客户信息的输入字段。

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

## Input Fields

* `firstName`

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

  客户的名。  
  最大长度限制：128

* `lastName`

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

  客户的姓。  
  最大长度限制：128

* `password`

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

  客户的密码。  
  最大长度限制：18

* `phone`

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

  客户的手机号码。  
  最大长度限制：20

* `acceptsMarketing`

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

  客户是否已订阅营销邮件。
  
  * `true`：已订阅
  * `false`：未订阅

* `email`

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

  客户的邮箱地址。  
  最大长度限制：50

* `birthday`

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

  客户出生日期。格式：`yyyyMMdd`。如果不传入该字段，系统将保留该字段原有数据，不做更新。若传入 `null` 或空字符串 `""`，系统将清空对应数据。    
  例子：`19931231`

* `gender`

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

  客户的性别。如果不传入该字段，系统将保留该字段原有数据，不做更新。若传入 `null` 或空字符串 `""`，系统将清空对应数据。有效枚举值包含：
  * `unknown`：未设置
  * `male`：男
  * `female`：女
  * `prefer not to say`：保密

## Argument from

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

