Represents a customer
who has an account with the store.
Customer
returns data including the customer's contact information and order history.
MoneyV2!
)
The total amount that the customer has spent on orders. The amount is converted from the shop's currency to the currency of the cart using a market rate.
String!
)
The full name of the customer, based on the values for firstName
and lastName
.
If firstName
and lastName
aren't specified, then the value is the customer's email address.
If the email address isn't specified, then the value is the customer's phone number.
String
)
The customer's email address.
String
)
The customer's first name.
Boolean!
)
Whether the customer is associated with any of the specified tags. The customer must have at least one tag
from the list to return true
.
Argument | Description |
---|---|
tags
(
[String!]!
)
required
|
A comma-separated list of searchable keywords that are associated with the customer. For example,
|
[HasTagResponse!]!
)
Whether the customer is associated with the specified tags. The customer must have all of the tags in the list
to return true
.
Argument | Description |
---|---|
tags
(
[String!]!
)
required
|
A comma-separated list of searchable keywords that are associated with the customer. For example,
|
ID!
)
A globally-unique ID for the customer.
String
)
The customer's last name.
Metafield
)
A custom field that stores additional information about a Shopify resource, such as products, orders, and many more. Using metafields with Shopify Functions enables you to customize the checkout experience.
Argument | Description |
---|---|
key
(
String!
)
required
|
The unique identifier for the metafield within its namespace. A metafield is composed of a
namespace and a key, in the format |
namespace
(
String
)
|
A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts between different apps or different parts of the same app. If omitted, then the app-reserved namespace is used. |
Int!
)
The total number of orders that the customer has made at the store.