mobileRegisterBuyer
Public: no authentication required.
Self-register a new buyer (Name/Company/Email/Business Type): creates a PENDING_APPROVAL customer and sends the login OTP. Rejects an email that already has a customer.
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 MobileRegisterBuyer($input: MobileRegisterBuyerInput!) {
mobileRegisterBuyer(input: $input)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation MobileRegisterBuyer($input: MobileRegisterBuyerInput!) {\n mobileRegisterBuyer(input: $input)\n}",
"variables": {
"input": {
"code": "string",
"companyName": "string",
"email": "string",
"name": "string"
}
}
}
EOF
Variables:
{
"input": {
"code": "string",
"companyName": "string",
"email": "string",
"name": "string"
}
}
Response:
{
"data": {
"mobileRegisterBuyer": true
}
}
mobileRegisterBuyer(
input: MobileRegisterBuyerInput!
): Boolean!
Arguments
mobileRegisterBuyer.input ● MobileRegisterBuyerInput! non-null input
The details of the mobile register buyer request.
Type
Boolean scalar
The Boolean scalar type represents true or false.