---
title: "AttributeInput"
description: "AttributeInput"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/inputs/attribute-input'
  md: 'https://developer.shopline.com/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

* `key`

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

  Key or name of the attribute.

* `value`

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

  Value of the attribute.

## Schema Definition

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

## Input field from

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

  A list of extra information that is added to the checkout.

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

  An array of key-value pairs that contains additional information about the merchandise line.

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

  An array of key-value pairs that contains additional information about the cart.

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

  An array of key-value pairs that contains additional information about the merchandise line.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

