Customer object
Represents a customer with the shop.
On this page
Fields
-
amountSpent (
MoneyV2!
)The total amount of money spent by the customer. Converted from the shop's currency to the currency of the cart using a market rate.
-
displayName (
String!
)The customer’s name, email or phone number.
-
email (
String
)The customer’s email address.
-
firstName (
String
)The customer's first name.
-
hasAnyTag (
Boolean!
)Whether the customer has any of the given tags.
Argument Description tags
([String!]!
) requiredThe tags to search for.
Default value:[]
-
hasTags (
[HasTagResponse!]!
)Whether the customer has the given tags.
Argument Description tags
([String!]!
) requiredThe tags to check.
Default value:[]
-
id (
ID!
)A unique identifier for the customer.
-
lastName (
String
)The customer's last name.
-
metafield (
Metafield
)Returns a metafield by namespace and key that belongs to the resource.
-
numberOfOrders (
Int!
)The number of orders made by the customer.