---
title: Attribute - Customer API
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: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/customer/latest/objects/Attribute'
  md: 'https://shopify.dev/docs/api/customer/latest/objects/Attribute.md'
api_name: customer
api_type: graphql
type: object
---

# 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/customer/latest/scalars/String)

  non-null

  The key or name of the attribute. For example, `"customer_first_order"`.

* value

  [String](https://shopify.dev/docs/api/customer/latest/scalars/String)

  The value of the attribute. For example, `"true"`.

***

## Map

### Fields with this object

* [LineItem.customAttributes](https://shopify.dev/docs/api/customer/latest/objects/LineItem#field-LineItem.fields.customAttributes)
* [SubscriptionContract.customAttributes](https://shopify.dev/docs/api/customer/latest/objects/SubscriptionContract#field-SubscriptionContract.fields.customAttributes)
* [SubscriptionContractBase.customAttributes](https://shopify.dev/docs/api/customer/latest/interfaces/SubscriptionContractBase#fields-customAttributes)
* [SubscriptionLine.customAttributes](https://shopify.dev/docs/api/customer/latest/objects/SubscriptionLine#field-SubscriptionLine.fields.customAttributes)
