Skip to main content

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:

mutation MobileRegisterBuyer($input: MobileRegisterBuyerInput!) {
mobileRegisterBuyer(input: $input)
}

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.