Skip to main content

mobileAcceptInvite

Public: no authentication required.

Accept a team invite from the buyer app: verifies the OTP against the token's own email, activates the user and returns a MOBILE session.

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 MobileAcceptInvite($input: MobileAcceptInviteInput!) {
mobileAcceptInvite(input: $input) {
accessToken
isNewBuyer
refreshToken
userId
}
}

Variables:

{
"input": {
"code": "string",
"token": "string"
}
}

Response:

{
"data": {
"mobileAcceptInvite": {
"accessToken": "string",
"isNewBuyer": true,
"refreshToken": "string",
"userId": "id"
}
}
}
mobileAcceptInvite(
input: MobileAcceptInviteInput!
): MobileAuthResponse!

Arguments​

mobileAcceptInvite.input ● MobileAcceptInviteInput! non-null input​

The details of the mobile accept invite request.

Type​

MobileAuthResponse object​

The result of a buyer sign in.