CustomerInput

Provides the fields and values to use when creating or updating a customer.

Show definition

# Provides the fields and values to use when creating or updating a customer.
input CustomerInput {
  # Whether the customer has consented to receive marketing material via email.
  acceptsMarketing: Boolean

# An input that specifies addresses for a customer. addresses: [MailingAddressInput!]

# The unique email address of the customer. email: String

# The customer's first name. firstName: String

# Specifies the customer to update, or creates a new customer if one doesn't exist. id: ID

# The customer's last name. lastName: String

# Attaches additional metadata to the customer. metafields: [MetafieldInput!]

# A note about the customer. note: String

# The unique phone number for the customer. phone: String

# Tags that the shop owner has attached to the customer. tags: [String!]

# Whether the customer is exempt from paying taxes on their order. taxExempt: Boolean }

Input Fields

acceptsMarketing   (Boolean)

Whether the customer has consented to receive marketing material via email.

addresses   ([MailingAddressInput!])

An input that specifies addresses for a customer.

email   (String)

The unique email address of the customer.

firstName   (String)

The customer's first name.

id   (ID)

Specifies the customer to update, or creates a new customer if one doesn't exist.

lastName   (String)

The customer's last name.

metafields   ([MetafieldInput!])

Attaches additional metadata to the customer.

note   (String)

A note about the customer.

phone   (String)

The unique phone number for the customer.

tags   ([String!])

Tags that the shop owner has attached to the customer.

taxExempt   (Boolean)

Whether the customer is exempt from paying taxes on their order.

Sign up for a Partner account to get started.

Sign up