Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

union

Requires The user must have access to customers and orders or draft orders.

Represents information about the purchasing entity for the order or draft order.

OBJECT

Represents information about a customer of the shop, such as the customer's contact details, their order history, and whether they've agreed to receive marketing material by email.

Caution: Only use this data if it's required for your app's functionality. Shopify will restrict access to scopes for apps that don't have a legitimate use for the associated data.

addresses
non-null

A list of addresses associated with the customer.

addressesV2
non-null

The addresses associated with the customer.

amountSpent
non-null

The total amount that the customer has spent on orders in their lifetime.

canDelete
non-null

Whether the merchant can delete the customer from their store.

A customer can be deleted from a store only if they haven't yet made an order. After a customer makes an order, they can't be deleted from a store.

companyContactProfiles
non-null

A list of the customer's company contact profiles.

createdAt
non-null

The date and time when the customer was added to the store.

dataSaleOptOut
non-null

Whether the customer has opted out of having their data sold.

defaultAddress

The default address associated with the customer.

defaultEmailAddress

The customer's default email address.

defaultPhoneNumber

The customer's default phone number.

displayName
non-null

The full name of the customer, based on the values for first_name and last_name. If the first_name and last_name are not available, then this falls back to the customer's email address, and if that is not available, the customer's phone number.

events
non-null

A list of events associated with the customer.

firstName

The customer's first name.

id
non-null

A globally-unique ID.

image
non-null

The image associated with the customer.

lastName

The customer's last name.

lastOrder

The customer's last order.

legacyResourceId
non-null

The ID of the corresponding resource in the REST Admin API.

lifetimeDuration
non-null

The amount of time since the customer was first added to the store.

Example: 'about 12 years'.

locale
non-null

The customer's locale.

mergeable
non-null

Whether the customer can be merged with another customer.

metafield

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
non-null

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

metafieldsByIdentifiers
non-null

The metafields associated with the resource matching the supplied list of namespaces and keys.

multipassIdentifier

A unique identifier for the customer that's used with Multipass login.

note

A note about the customer.

numberOfOrders
non-null

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

orders
non-null

A list of the customer's orders.

paymentMethods
non-null

A list of the customer's payment methods.

productSubscriberStatus
non-null

Possible subscriber states of a customer defined by their subscription contracts.

state
non-null

The state of the customer's account with the shop.

Please note that this only meaningful when Classic Customer Accounts is active.

statistics
non-null

The statistics for a given customer.

storeCreditAccounts
non-null

Returns a list of store credit accounts that belong to the owner resource. A store credit account owner can hold multiple accounts each with a different currency.

subscriptionContracts
non-null

A list of the customer's subscription contracts.

tags
non-null

A comma separated list of tags that have been added to the customer.

taxExempt
non-null

Whether the customer is exempt from being charged taxes on their orders.

taxExemptions
non-null

The list of tax exemptions applied to the customer.

updatedAt
non-null

The date and time when the customer was last updated.

verifiedEmail
non-null

Whether the customer has verified their email address. Defaults to true if the customer is created through the Shopify admin or API.

email

The customer's email address.

emailMarketingConsent

The current email marketing state for the customer. If the customer doesn't have an email address, then this property is null.

hasTimelineComment
non-null

Whether the merchant has added timeline comments about the customer on the customer's page.

market

The market that includes the customer’s default address.

metafieldDefinitions
non-null

List of metafield definitions.

phone

The customer's phone number.

smsMarketingConsent

The current SMS marketing state for the customer's phone number.

If the customer does not have a phone number, then this property is null.

unsubscribeUrl
non-null

The URL to unsubscribe the customer from the mailing list.

validEmailAddress
non-null

Whether the email address is formatted correctly.

Returns true when the email is formatted correctly and belongs to an existing domain. This doesn't guarantee that the email address actually exists.

OBJECT

Represents information about the purchasing company for the order or draft order.

company
non-null

The company associated to the order or draft order.

contact

The company contact associated to the order or draft order.

location
non-null

The company location associated to the order or draft order.


Was this section helpful?

Anchor to Fields with this unionFields with this union


Was this section helpful?