CustomerErrorCode
Possible error codes that can be returned by customer mutations.
Enum Definition
enum CustomerErrorCode {
INVALID_CREDENTIALS
UNIDENTIFIED_CUSTOMER
TOKEN_EXPIRED
TOKEN_INVALID
TOO_MANY_ATTEMPTS
EMAIL_TAKEN
INVALID_EMAIL
INVALID_PASSWORD
PASSWORD_MISMATCH
LOGIN_DISABLED
REGISTRATION_DISABLED
BLANK
INVALID
}Values
Example
mutation LoginCustomer($email: String!, $password: String!) {
customerLogin(input: {email: $email, password: $password}) {
customer {
id
email
}
errors {
code
message
}
}
}When this mutation fails, the errors field may contain a code value of type CustomerErrorCode, such as INVALID_CREDENTIALS or EMAIL_TAKEN.
Related Types
CustomerCustomerInputCustomerErrorCustomerLoginPayloadCustomerCreatePayloadCustomerUpdatePayload