TeamteamMembers
HelpStatusOpen portal

Team

Your team is the people who sign in to your Payva account, each with a role. Invite someone, choose their role, suspend and reinstate them, all from your own admin tooling, so onboarding a new closer never means opening the portal.

teamMembersQuery

Your team members with their role on your account. Search, filter by suspension, and paginate.

Search matches first name, last name, email or role name, case-insensitive. Sorted with the most recently added members first, unless you say otherwise. Ties are ordered by member ID.

POST/graphql

teamMembers(input: TeamMembersInput): TeamMemberConnection!

Arguments

NameTypeDescription
input.firstIntPage size, 1–100. Defaults to 25.
input.afterStringThe endCursor from the previous page. Omit it for the first page.
input.searchStringMatches name, email or role name.
input.isSuspendedBooleanOnly suspended (true) or active (false) members.
input.sortByTeamMemberSortFieldJOINED_AT, LAST_NAME, EMAIL, LAST_SIGN_IN_AT or CREATED_AT. Defaults to JOINED_AT: newest member first.
input.sortDescBooleanDescending when true. Defaults to true (newest first) for JOINED_AT, LAST_SIGN_IN_AT and CREATED_AT, and false (A to Z) for LAST_NAME and EMAIL.

Returns

FieldTypeDescription
totalCountInt!How many team members match your filter, across every page.
pageInfoPageInfo!hasNextPage tells you whether to keep going; endCursor is what you pass as after.
edges[].nodeTeamMemberOne TeamMember per edge, with its cursor beside it. The TeamMember fields follow.

Each TeamMember node

FieldTypeDescription
idID!The user id. Pass it to teamMember.
firstNameStringGiven name.
lastNameStringFamily name.
emailStringSign-in email.
phoneNumberStringPhone in E.164 format. Null when missing.
roleTeamRoleTypeThe type of role they hold: OWNER, ADMIN or CLOSER. Values below.
roleNameStringThe role's display name.
isSuspendedBoolean!True while their access is suspended.
lastSignInAtStringTheir last sign-in, a timestamp.
joinedAtStringWhen this member joined your team, a timestamp. Null for a member with no role on your account.

Example

query Team($input: TeamMembersInput) {
  teamMembers(input: $input) {
    totalCount
    edges { node { id firstName lastName email role roleName isSuspended lastSignInAt joinedAt } }
  }
}
Variables
{
  "input": {
    "first": 3,
    "isSuspended": false
  }
}
Response
{
  "data": {
    "teamMembers": {
      "totalCount": 7,
      "edges": [
        {
          "node": {
            "id": "91",
            "firstName": "Biscuit",
            "lastName": "Wigglesworth",
            "email": "[email protected]",
            "role": "CLOSER",
            "roleName": "Closer",
            "isSuspended": false,
            "lastSignInAt": "2026-07-28T14:03:00Z",
            "joinedAt": "2026-02-03T16:20:00Z"
          }
        }
      ]
    }
  }
}

teamMemberQuery

Fetch one team member by user id.

roleName is the display name for the role; role is its type.

POST/graphql

teamMember(id: ID!): TeamMember

Arguments

NameTypeDescription
idID!requiredThe team member's user id.

Returns

FieldTypeDescription
idID!The user id.
firstNameStringGiven name.
lastNameStringFamily name.
emailStringSign-in email.
phoneNumberStringPhone in E.164 format. Null when missing.
roleTeamRoleTypeThe type of role: OWNER, ADMIN or CLOSER.
roleNameStringThe role's display name.
isSuspendedBoolean!True while suspended.
lastSignInAtStringLast sign-in, a timestamp.
joinedAtStringWhen this member joined your team, a timestamp.

Example

query TeamMember($id: ID!) {
  teamMember(id: $id) {
    id firstName lastName email role roleName isSuspended lastSignInAt joinedAt
  }
}
Variables
{
  "id": "91"
}
Response
{
  "data": {
    "teamMember": {
      "id": "91",
      "firstName": "Biscuit",
      "lastName": "Wigglesworth",
      "email": "[email protected]",
      "role": "CLOSER",
      "roleName": "Closer",
      "isSuspended": false,
      "lastSignInAt": "2026-07-28T14:03:00Z",
      "joinedAt": "2026-02-03T16:20:00Z"
    }
  }
}

rolesQuery

The roles available for your team, with their ids. Sorted by name.

Role ids differ per merchant, so read them from this query instead of hard-coding them. Each role has a type: OWNER, ADMIN or CLOSER. The example ids are illustrative only.

POST/graphql

roles: [Role!]!

Arguments

None.

Returns

FieldTypeDescription
idID!The role id. Pass it as roleId.
nameString!The display name.
typeTeamRoleType!OWNER, ADMIN or CLOSER.

Example

query Roles {
  roles { id name type }
}
Response
{
  "data": {
    "roles": [
      {
        "id": "901",
        "name": "Owner",
        "type": "OWNER"
      },
      {
        "id": "902",
        "name": "Admin",
        "type": "ADMIN"
      },
      {
        "id": "903",
        "name": "Closer",
        "type": "CLOSER"
      }
    ]
  }
}

invitesQuery

Your pending, unexpired team invites by default, newest first. Request other statuses explicitly, and paginate.

Watch PENDING for people who have not acted yet, and request EXPIRED to find links that need renewing. Without statuses you get PENDING, including sent invites that have not expired. EXPIRED, REVOKED and INVALID are returned only when you select them. Accepted invites are never returned, and neither are expired invites superseded by a later accepted invite to the same email: find who joined in teamMembers.

POST/graphql

invites(input: InvitesInput): InviteConnection!

Arguments

NameTypeDescription
input.firstIntPage size, 1–100. Defaults to 25.
input.afterStringThe endCursor from the previous page. Omit it for the first page.
input.statuses[InviteStatus!]Only invites in these statuses. Defaults to PENDING. EXPIRED, REVOKED and INVALID require explicit selection.
input.sortDescBooleanInvites are sorted by creation time. Newest first when true. Defaults to true.

Returns

FieldTypeDescription
totalCountInt!How many invites match your filter, across every page.
pageInfoPageInfo!hasNextPage tells you whether to keep going; endCursor is what you pass as after.
edges[].nodeInviteOne Invite per edge, with its cursor beside it. The Invite fields follow.

Each Invite node

FieldTypeDescription
idID!The invite id.
emailString!The invitee's email.
firstNameString!Their given name.
lastNameString!Their family name.
roleTeamRoleType!The role type granted on acceptance.
statusInviteStatus!Where the invite stands. Values under Types.
expiresAtStringWhen the link expires, a timestamp.
createdAtStringWhen it was created, a timestamp.

Example

query Invites($input: InvitesInput) {
  invites(input: $input) {
    totalCount
    edges { node { id email firstName lastName role status expiresAt } }
  }
}
Variables
{
  "input": {
    "first": 5,
    "statuses": [
      "PENDING",
      "EXPIRED"
    ]
  }
}
Response
{
  "data": {
    "invites": {
      "totalCount": 3,
      "edges": [
        {
          "node": {
            "id": "302",
            "email": "[email protected]",
            "firstName": "John",
            "lastName": "Example",
            "role": "CLOSER",
            "status": "PENDING",
            "expiresAt": "2026-07-30T18:00:00Z"
          }
        }
      ]
    }
  }
}

Types

TeamMemberSortFieldEnum

ValueMeaning
JOINED_ATWhen the member was added to your team, most recently added first (the default).
LAST_NAMEFamily name.
EMAILSign-in email.
LAST_SIGN_IN_ATLast sign-in.
CREATED_ATWhen the user was created.

TeamRoleTypeEnum

The category of a role: OWNER, ADMIN or CLOSER.

ValueMeaning
OWNERThe account owner.
ADMINAn administrator.
CLOSERA sales closer.
INVALIDThe stored team role is not valid.

InviteStatusEnum

ValueMeaning
PENDINGAwaiting acceptance and not expired, including sent invites. The default.
EXPIREDExpired at read time or stored as expired; returned only when requested.
REVOKEDYou revoked it. The link no longer works.
INVALIDThe stored invite status is not valid.