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