---
title: "ExtAttributesInput"
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/ext-attributes-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/inputs/ext-attributes-input.md'
---
# ExtAttributesInput

用于定义客户自定义属性的输入字段（格式为键值对）。自定义属性用于在客户注册时一并收集额外的业务扩展信息，例如会员邀请码和自定义注册表单字段等。

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

## Input Fields

* `key`

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

  属性的键。  
  最大长度限制：64

* `value`

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

  属性的值。  
  最大长度限制：255

## Input field from

* [CustomerCreateInput](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/customers/inputs/customer-create-input.md).attributes

