---
title: "Attribute"
description: "Attribute"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/attribute'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/attribute.md'
---
# Attribute

Attribute

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

## Type Signature

`Attribute`

## 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
type Attribute { 
	key: String!
	value: String 
}
```

## Field from

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

  The attributes associated with the cart line. Attributes are represented as key-value pairs.

* [Checkout](https://developer.shopline.com/docs/storefront-api/checkouts/objects/checkout.md).customAttributes

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

* [Cart](https://developer.shopline.com/docs/storefront-api/cart/objects/cart.md).attributes

  The attributes associated with the cart. Attributes are represented as key-value pairs.

## 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).

