mobileVerifyRegistrationOtp
Public: no authentication required.
Verify a buyer registration OTP WITHOUT creating an account or issuing tokens — the step before the create-account form. Returns true/false; mobileRegisterBuyer re-checks the same code as proof this step was passed. Named mobile* because the auth module already owns a DIFFERENT verifyRegistrationOtp (staff, token-returning) and GraphQL field names are global.
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:
- GraphQL
- cURL
mutation MobileVerifyRegistrationOtp($input: VerifyEmailOtpInput!) {
mobileVerifyRegistrationOtp(input: $input)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation MobileVerifyRegistrationOtp($input: VerifyEmailOtpInput!) {\n mobileVerifyRegistrationOtp(input: $input)\n}",
"variables": {
"input": {
"code": "string",
"email": "string"
}
}
}
EOF
Variables:
{
"input": {
"code": "string",
"email": "string"
}
}
Response:
{
"data": {
"mobileVerifyRegistrationOtp": true
}
}
mobileVerifyRegistrationOtp(
input: VerifyEmailOtpInput!
): Boolean!
Arguments
mobileVerifyRegistrationOtp.input ● VerifyEmailOtpInput! non-null input
The details of the verify email otp request.
Type
Boolean scalar
The Boolean scalar type represents true or false.