---
title: "AttributeInput"
description: "AttributeInput"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/inputs/attribute-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/inputs/attribute-input.md'
---
# AttributeInput

AttributeInput

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

## Type Signature

`AttributeInput`

## Input Fields

* `value`

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

  属性值

* `key`

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

  属性键

## Schema Definition

```graphql
input AttributeInput { 
	value: String
	key: String 
}
```

## Input field from

* [CheckoutCreateInput](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/inputs/checkout-create-input.md).customAttributes

  添加到结账的额外信息列表。

* [CartLineInput](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/inputs/cart-line-input.md).attributes

  商品行自定义属性

* [CartInput](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/inputs/cart-input.md).attributes

  购物车属性键值对

* [CartLineUpdatelinesInput](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/inputs/cart-line-updatelines-input.md).attributes

  商品行自定义属性键值对

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

