Skip to main content
union

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

•OBJECT

Represents the personal information of a customer. Apps using the Customer Account API must meet the protected customer data requirements.

•CustomerAddressConnection!
non-null

The addresses associated with the customer.

•CompanyContactConnection!
non-null

The list of contacts the customer is associated with.

•DateTime!
non-null

The date and time when the customer was created.

•CustomerAddress

The default address of the customer.

•String!
non-null

The full name of the customer, based on the first_name and last_name values. If these aren't available, it falls back to the customer's email address, and if that isn't available, the customer's phone number.

•DraftOrderConnection!
non-null

The Draft Orders associated with the customer.

•CustomerEmailAddress

The email address of the customer.

•String

The first name of the customer.

•ID!

A globally-unique ID.

•URL!
non-null

The URL to the avatar image of the customer.

Anchor to lastIncompleteCheckoutlastIncompleteCheckout
•Checkout

The customer's most recently updated, incomplete checkout.

•String

The last name of the customer.

•Metafield

A metafield found by namespace and key.

•[Metafield]!

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

•OrderConnection!
non-null

The orders associated with the customer.

•CustomerPhoneNumber

The phone number of the customer.

•StoreCreditAccountConnection!

A list of the owner resource's store credit accounts. Store credit accounts are not shown for shops with store credit disabled at checkout.

Anchor to subscriptionContractsubscriptionContract
•SubscriptionContract

A Subscription Contract resource identified by ID.

Anchor to subscriptionContractssubscriptionContracts
•SubscriptionContractConnection!
non-null

The Subscription Contracts associated with the customer.

•[String!]!
non-null

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

•OBJECT

The information of the purchasing company for an order or draft order.

•Company!

The company associated with the order or draft order.

•CompanyContact

The company contact associated with the order or draft order.

•CompanyLocation!

The company location associated with the order or draft order.


Was this section helpful?

Anchor to Fields with this unionFields with this union

•OBJECT

A draft order for the customer. Any fields related to money are in the presentment currency. Apps using the Customer Account API must meet the protected customer data requirements.

•OBJECT

A customer’s completed request to purchase one or more products from a shop. Apps using the Customer Account API must meet the protected customer data requirements.


Was this section helpful?