Skip to main content

customerInviteTeamMember

Requires a customer (portal or buyer app) session.

Invite a teammate (CUSTOMER_ADMIN only). Roles reuse CUSTOMER_* UserRole members. screen 16.

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 CustomerInviteTeamMember($input: CustomerInviteTeamMemberInput!) {
customerInviteTeamMember(input: $input) {
title
firstName
lastName
status
approvesOrders
assignedAddressIds
}
}

Variables:

{
"input": {
"email": "string",
"role": "string"
}
}

Response:

{
"data": {
"customerInviteTeamMember": {
"title": "string",
"firstName": "string",
"lastName": "string",
"status": "string",
"approvesOrders": true,
"assignedAddressIds": [
"id"
]
}
}
}
customerInviteTeamMember(
input: CustomerInviteTeamMemberInput!
): CustomerTeamMember!

Arguments​

customerInviteTeamMember.input ● CustomerInviteTeamMemberInput! non-null input​

The details of the customer invite team member request.

Type​

CustomerTeamMember object​

One buyer-side team member (a CUSTOMER-userType User under this partner).