--- title: Attribute - GraphQL Admin description: >- A custom property. Attributes are used to store additional information about a Shopify resource, such as products, customers, or orders. Attributes are stored as key-value pairs. For example, a list of attributes might include whether a customer is a first-time buyer (`"customer_first_order": "true"`), whether an order is gift-wrapped (`"gift_wrapped": "true"`), a preferred delivery date (`"preferred_delivery_date": "2025-10-01"`), the discount applied (`"loyalty_discount_applied": "10%"`), and any notes provided by the customer (`"customer_notes": "Please leave at the front door"`). api_version: 2024-10 api_name: admin type: object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Attribute' md: 'https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Attribute.txt' --- # Attribute object A custom property. Attributes are used to store additional information about a Shopify resource, such as products, customers, or orders. Attributes are stored as key-value pairs. For example, a list of attributes might include whether a customer is a first-time buyer (`"customer_first_order": "true"`), whether an order is gift-wrapped (`"gift_wrapped": "true"`), a preferred delivery date (`"preferred_delivery_date": "2025-10-01"`), the discount applied (`"loyalty_discount_applied": "10%"`), and any notes provided by the customer (`"customer_notes": "Please leave at the front door"`). ## Fields * key [String!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/String) non-null The key or name of the attribute. For example, `"customer_first_order"`. * value [String](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/String) The value of the attribute. For example, `"true"`. *** ## Map ### Fields with this object * {}[AbandonedCheckout.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/AbandonedCheckout#field-customAttributes) * {}[AbandonedCheckoutLineItem.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/AbandonedCheckoutLineItem#field-customAttributes) * {}[CalculatedDraftOrderLineItem.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CalculatedDraftOrderLineItem#field-customAttributes) * {}[CalculatedLineItem.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CalculatedLineItem#field-customAttributes) * {}[DraftOrder.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DraftOrder#field-customAttributes) * {}[DraftOrderLineItem.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/DraftOrderLineItem#field-customAttributes) * {}[LineItem.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/LineItem#field-customAttributes) * {}[LineItemGroup.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/LineItemGroup#field-customAttributes) * {}[Order.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/Order#field-customAttributes) * {}[SubscriptionBillingCycleEditedContract.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/SubscriptionBillingCycleEditedContract#field-customAttributes) * {}[SubscriptionContract.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/SubscriptionContract#field-customAttributes) * ||-[SubscriptionContractBase.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/interfaces/SubscriptionContractBase#field-customAttributes) * {}[SubscriptionDraft.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/SubscriptionDraft#field-customAttributes) * {}[SubscriptionLine.customAttributes](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/SubscriptionLine#field-customAttributes) * {}[TaxonomyMeasurementAttribute.options](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/TaxonomyMeasurementAttribute#field-options)