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:
- GraphQL
- cURL
mutation MobileAcceptInvite($input: MobileAcceptInviteInput!) {
mobileAcceptInvite(input: $input) {
accessToken
isNewBuyer
refreshToken
userId
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation MobileAcceptInvite($input: MobileAcceptInviteInput!) {\n mobileAcceptInvite(input: $input) {\n accessToken\n isNewBuyer\n refreshToken\n userId\n }\n}",
"variables": {
"input": {
"code": "string",
"token": "string"
}
}
}
EOF
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.