mobileCheckBuyerExists
Public: no authentication required.
Email-entry probe: true → route to OTP login (existing customer); false → route to the Sign Up / registration screen.
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
query MobileCheckBuyerExists($input: CheckBuyerExistsInput!) {
mobileCheckBuyerExists(input: $input) {
exists
selfRegistrationEnabled
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query MobileCheckBuyerExists($input: CheckBuyerExistsInput!) {\n mobileCheckBuyerExists(input: $input) {\n exists\n selfRegistrationEnabled\n }\n}",
"variables": {
"input": {
"email": "string"
}
}
}
EOF
Variables:
{
"input": {
"email": "string"
}
}
Response:
{
"data": {
"mobileCheckBuyerExists": {
"exists": true,
"selfRegistrationEnabled": true
}
}
}
mobileCheckBuyerExists(
input: CheckBuyerExistsInput!
): BuyerExistsResponse!
Arguments
mobileCheckBuyerExists.input ● CheckBuyerExistsInput! non-null input
The details of the check buyer exists request.
Type
BuyerExistsResponse object
Whether a buyer account exists for an email address. If it does, the app goes to the one-time code sign in, otherwise to sign up.