Customer Update Payload
Return type for mutation.
Anchor to FieldsFields
- customer (Customer)
- customerAccessToken (CustomerAccessToken)
- customerUserErrors ([CustomerUserError!]!)
- userErrors ([UserError!]!): deprecated
- Anchor to customercustomer•CustomerToken access required
The updated customer object.
- Anchor to customerAccessTokencustomer•Customer
Access Token Access Token Token access required The newly created customer access token. If the customer's password is updated, all previous access tokens (including the one used to perform this mutation) become invalid, and a new token is generated.
- Anchor to customerUserErrorscustomer•[Customer
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated
Anchor to Mutations with this payloadMutations with this payload
- customerUpdate (CustomerUpdatePayload)
- •mutation
Updates a customer's personal information such as name, password, and marketing preferences. Requires a valid
to authenticate the customer making the update.If the customer's password is updated, then all previous access tokens become invalid. The mutation returns a new access token in the payload to maintain the customer's session.
CautionPassword changes invalidate all existing access tokens. Ensure your app handles the new token returned in the response to avoid logging the customer out.
Caution:Password changes invalidate all existing access tokens. Ensure your app handles the new token returned in the response to avoid logging the customer out.
Caution: Password changes invalidate all existing access tokens. Ensure your app handles the new token returned in the response to avoid logging the customer out.
- Anchor to customerAccessTokencustomer•String!
Access Token required The access token used to identify the customer.
- Anchor to customercustomer•Customer
Update Input! required The customer object input.
Arguments