Customer Set User Error
Defines errors for CustomerSet mutation.
Anchor to FieldsFields
- Anchor to codecode•Customer
Set User Error Code The error code.
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- •mutation
Creates or updates a customer in a single mutation.
Use this mutation when syncing information from an external data source into Shopify.
This mutation can be used to create a new customer, update an existing customer by id, or upsert a customer by a unique key (email or phone).
To create a new customer omit the
identifier
argument. To update an existing customer, include theidentifier
with the id of the customer to update.To perform an 'upsert' by unique key (email or phone) use the
identifier
argument to upsert a customer by a unique key (email or phone). If a customer with the specified unique key exists, it will be updated. If not, a new customer will be created with that unique key.As of API version 2022-10, apps using protected customer data must meet the protected customer data requirements
Any list field (e.g. addresses, will be updated so that all included entries are either created or updated, and all existing entries not included will be deleted.
All other fields will be updated to the value passed. Omitted fields will not be updated.
- Anchor to identifieridentifier•Customer
Set Identifiers Specifies the identifier that will be used to lookup the resource.
- Anchor to inputinput•Customer
Set Input!required The properties of the customer.
Arguments
- Anchor to customercustomer•Customer
The created or updated customer.
- Anchor to userErrorsuser•[Customer
Errors Set User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields