GitHub

ShopifyAttribute

Type

import { ShopifyAttribute } from '@daffodil/driver/shopify'

A custom key-value pair for storing additional information on carts, cart lines, orders, and order line items. Common uses include gift wrapping requests, customer notes, and tracking whether a customer is a first-time buyer.

Attributes set on a cart carry over to the resulting order after checkout. Use the cartAttributesUpdate mutation to add or modify cart attributes. For a step-by-step guide, see managing carts with the Storefront API.

interface ShopifyAttribute {
  __typename: "Attribute"
  key: string
  value: string
}

Properties

__typename
"Attribute"
key
string

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

value
string

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