Skip to main content

acceptCustomerInvite

Public: no authentication required.

Accepts a customer-user invitation from its link and signs the invited person in. The link works once and expires. The person then signs in with one-time codes, never a password.

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 AcceptCustomerInvite($input: AcceptCustomerInviteInput!) {
acceptCustomerInvite(input: $input) {
accessToken
expiresIn
refreshToken
sessionToken
tokenType
user {
id
firstName
lastName
partnerName
avatar
email
}
}
}

Variables:

{
"input": {
"token": "string"
}
}

Response:

{
"data": {
"acceptCustomerInvite": {
"accessToken": "string",
"expiresIn": 0,
"refreshToken": "string",
"sessionToken": "string",
"tokenType": "string",
"user": {
"id": "id",
"firstName": "string",
"lastName": "string",
"partnerName": "string",
"avatar": "string",
"email": "string"
}
}
}
}
acceptCustomerInvite(
input: AcceptCustomerInviteInput!
): CustomerAuthResponse!

Arguments​

acceptCustomerInvite.input ● AcceptCustomerInviteInput! non-null input​

The invitation token from the link.

Type​

CustomerAuthResponse object​

The result of a customer sign in.