Skip to main content
input_object

The input fields and values to use when creating or updating a customer.

•[MailingAddressInput!]

The addresses for a customer.

•String

The unique email address of the customer.

Anchor to emailMarketingConsentemailMarketingConsent
•CustomerEmailMarketingConsentInput

Information that describes when the customer consented to receiving marketing material by email. The email field is required when creating a customer with email marketing consent information.

•String

The customer's first name.

•ID

The ID of the customer to update.

•String

The customer's last name.

•String

The customer's locale.

•[MetafieldInput!]

Additional metafields to associate to the customer.

•String

A note about the customer.

•String

The unique phone number for the customer.

•CustomerSmsMarketingConsentInput

The marketing consent information when the customer consented to receiving marketing material by SMS. The phone field is required when creating a customer with SMS marketing consent information.

•[String!]

A list of tags to associate with the customer. Can be an array or a comma-separated list. Example values: ["tag1", "tag2", "tag3"], "tag1, tag2, tag3"

Updating tags overwrites any existing tags that were previously added to the customer. To add new tags without overwriting existing tags, use the tagsAdd mutation.

•Boolean

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

•[TaxExemption!]

The list of tax exemptions to apply to the customer.


Was this section helpful?
OSZAR »