Skip to main content

requestCustomerSignInCode

Public: no authentication required.

Sends a 6-digit sign-in code to an existing, active customer by email and, when the seller has WhatsApp sign-in on, by WhatsApp too. Same gates as requestCustomerOtp, but it also answers what became of the WhatsApp half: SENT, PENDING (no answer yet) or NOT_SENT with a reason code. The email always goes.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RequestCustomerSignInCode($input: RequestCustomerOtpInput!) {
requestCustomerSignInCode(input: $input) {
sent
whatsapp {
status
reason
}
}
}

Variables:

{
"input": {}
}

Response:

{
"data": {
"requestCustomerSignInCode": {
"sent": true,
"whatsapp": {
"status": "NOT_SENT",
"reason": "NOT_ON_WHATSAPP"
}
}
}
}
requestCustomerSignInCode(
input: RequestCustomerOtpInput!
): SignInCodeResult!

Arguments​

requestCustomerSignInCode.input ● RequestCustomerOtpInput! non-null input​

The email address or WhatsApp number, and the subdomain.

Type​

SignInCodeResult object​

The answer to a sign-in code request.