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