--- title: Attribute - Storefront API description: >- Represents a generic custom attribute, such as whether an order is a customer's first. api_version: 2024-10 api_name: storefront type: object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/2024-10/objects/Attribute' md: 'https://shopify.dev/docs/api/storefront/2024-10/objects/Attribute.txt' --- # Attribute object Represents a generic custom attribute, such as whether an order is a customer's first. ## Fields * key [String!](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) non-null The key or name of the attribute. For example, `"customersFirstOrder"`. * value [String](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) The value of the attribute. For example, `"true"`. *** ## Map ### Fields with this object * ||-[BaseCartLine.attribute](https://shopify.dev/docs/api/storefront/2024-10/interfaces/BaseCartLine#field-attribute) * ||-[BaseCartLine.attributes](https://shopify.dev/docs/api/storefront/2024-10/interfaces/BaseCartLine#field-attributes) * {}[Cart.attribute](https://shopify.dev/docs/api/storefront/2024-10/objects/Cart#field-attribute) * {}[Cart.attributes](https://shopify.dev/docs/api/storefront/2024-10/objects/Cart#field-attributes) * {}[CartLine.attribute](https://shopify.dev/docs/api/storefront/2024-10/objects/CartLine#field-attribute) * {}[CartLine.attributes](https://shopify.dev/docs/api/storefront/2024-10/objects/CartLine#field-attributes) * {}[ComponentizableCartLine.attribute](https://shopify.dev/docs/api/storefront/2024-10/objects/ComponentizableCartLine#field-attribute) * {}[ComponentizableCartLine.attributes](https://shopify.dev/docs/api/storefront/2024-10/objects/ComponentizableCartLine#field-attributes) * {}[Order.customAttributes](https://shopify.dev/docs/api/storefront/2024-10/objects/Order#field-customAttributes) * {}[OrderLineItem.customAttributes](https://shopify.dev/docs/api/storefront/2024-10/objects/OrderLineItem#field-customAttributes)