Customer Input
The input fields and values to use when creating or updating a customer.
Anchor to FieldsFields
- Anchor to addressesaddresses•[Mailing
Address Input!] The addresses for a customer.
- Anchor to emailemail•String
The unique email address of the customer.
- Anchor to emailMarketingConsentemail•Customer
Marketing Consent Email Marketing Consent Input 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.- Anchor to firstNamefirst•String
Name The customer's first name.
- •ID
The ID of the customer to update.
- Anchor to lastNamelast•String
Name The customer's last name.
- Anchor to localelocale•String
The customer's locale.
- Anchor to metafieldsmetafields•[Metafield
Input!] Additional metafields to associate to the customer.
- Anchor to notenote•String
A note about the customer.
- Anchor to phonephone•String
The unique phone number for the customer.
- Anchor to smsMarketingConsentsms•Customer
Marketing Consent Sms Marketing Consent Input 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.- Anchor to taxExempttax•Boolean
Exempt Whether the customer is exempt from paying taxes on their order.
- Anchor to taxExemptionstax•[Tax
Exemptions Exemption!] The list of tax exemptions to apply to the customer.