GitHub

ShopifyCustomer

interface

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

A customer represents a customer account with the shop. Customer accounts store contact information for the customer, saving logged-in customers the trouble of having to provide it at every checkout.

interface ShopifyCustomer {
  __typename: "Customer"
  acceptsMarketing: boolean
  addresses: ShopifyMailingAddressConnection
  createdAt: Scalars['DateTime']['output']
  defaultAddress: ShopifyMailingAddress
  displayName: string
  email: string
  firstName: string
  id: string
  lastIncompleteCheckout: ShopifyCheckout
  lastName: string
  metafield: ShopifyMetafield
  metafields: ShopifyMetafield[]
  numberOfOrders: Scalars['UnsignedInt64']['output']
  orders: ShopifyOrderConnection
  phone: string
  tags: string[]
  updatedAt: Scalars['DateTime']['output']
}

Properties

__typename
"Customer"
acceptsMarketing
boolean

Indicates whether the customer has consented to be sent marketing material via email.

addresses
ShopifyMailingAddressConnection

A list of addresses for the customer.

createdAt
Scalars['DateTime']['output']

The date and time when the customer was created.

defaultAddress
ShopifyMailingAddress

The customer’s default address.

displayName
string

The customer’s name, email or phone number.

email
string

The customer’s email address.

firstName
string

The customer’s first name.

id
string

A unique ID for the customer.

lastIncompleteCheckout
ShopifyCheckout

The customer's most recently updated, incomplete checkout.

lastName
string

The customer’s last name.

metafield
ShopifyMetafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

metafields
ShopifyMetafield[]

A list of custom fields that a merchant associates with a Shopify resource.

numberOfOrders
Scalars['UnsignedInt64']['output']

The number of orders that the customer has made at the store in their lifetime.

orders
ShopifyOrderConnection

The orders associated with the customer.

phone
string

The customer’s phone number.

tags
string[]

A comma separated list of tags that have been added to the customer. Additional access scope required: unauthenticated_read_customer_tags.

updatedAt
Scalars['DateTime']['output']

The date and time when the customer information was updated.