Global Customer

{
  acceptsMarketing: true,
  email: "johnsmith@email.com",
  firstName: "John",
  id: "gid://shopify/Customer/6378324295927",
  isLoggedIn: true,
  lastName: "Smith",
  metafield: {},
  numberOfOrders: 3,
  shortId: "6378324295927",
  tags: [],
  totalSpent: "403.41",
}

Properties

boolean

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

string

The customer’s email address.

string

The customer’s first name.

string

A globally-unique identifier from Shopify (the GraphQL long-form format).

boolean

Whether or not the customer is currently logged in.

string

The customer’s last name.

object

number

The total number of orders placed by the customer.

string

A globally-unique identifier from Shopify (the Admin number-only format).

array

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

string

The total amount of money spent by the customer.