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
| Name | Type | Description |
|---|---|---|
input.first | Int | Page size, 1–100. Defaults to 25. |
input.after | String | The endCursor from the previous page. Omit it for the first page. |
input.search | String | Matches name, email or role name. |
input.isSuspended | Boolean | Only suspended (true) or active (false) members. |
input.sortBy | TeamMemberSortField | JOINED_AT, LAST_NAME, EMAIL, LAST_SIGN_IN_AT or CREATED_AT. Defaults to JOINED_AT: newest member first. |
input.sortDesc | Boolean | Descending 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
| Field | Type | Description |
|---|---|---|
totalCount | Int! | How many team members match your filter, across every page. |
pageInfo | PageInfo! | hasNextPage tells you whether to keep going; endCursor is what you pass as after. |
edges[].node | TeamMember | One TeamMember per edge, with its cursor beside it. The TeamMember fields follow. |
Each TeamMember node
| Field | Type | Description |
|---|---|---|
id | ID! | The user id. Pass it to teamMember. |
firstName | String | Given name. |
lastName | String | Family name. |
email | String | Sign-in email. |
phoneNumber | String | Phone in E.164 format. Null when missing. |
role | TeamRoleType | The type of role they hold: OWNER, ADMIN or CLOSER. Values below. |
roleName | String | The role's display name. |
isSuspended | Boolean! | True while their access is suspended. |
lastSignInAt | String | Their last sign-in, a timestamp. |
joinedAt | String | When 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 } }
}
}{
"input": {
"first": 3,
"isSuspended": false
}
}{
"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
| Name | Type | Description |
|---|---|---|
id | ID!required | The team member's user id. |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | The user id. |
firstName | String | Given name. |
lastName | String | Family name. |
email | String | Sign-in email. |
phoneNumber | String | Phone in E.164 format. Null when missing. |
role | TeamRoleType | The type of role: OWNER, ADMIN or CLOSER. |
roleName | String | The role's display name. |
isSuspended | Boolean! | True while suspended. |
lastSignInAt | String | Last sign-in, a timestamp. |
joinedAt | String | When this member joined your team, a timestamp. |
Example
query TeamMember($id: ID!) {
teamMember(id: $id) {
id firstName lastName email role roleName isSuspended lastSignInAt joinedAt
}
}{
"id": "91"
}{
"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
| Field | Type | Description |
|---|---|---|
id | ID! | The role id. Pass it as roleId. |
name | String! | The display name. |
type | TeamRoleType! | OWNER, ADMIN or CLOSER. |
Example
query Roles {
roles { id name type }
}{
"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
| Name | Type | Description |
|---|---|---|
input.first | Int | Page size, 1–100. Defaults to 25. |
input.after | String | The 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.sortDesc | Boolean | Invites are sorted by creation time. Newest first when true. Defaults to true. |
Returns
| Field | Type | Description |
|---|---|---|
totalCount | Int! | How many invites match your filter, across every page. |
pageInfo | PageInfo! | hasNextPage tells you whether to keep going; endCursor is what you pass as after. |
edges[].node | Invite | One Invite per edge, with its cursor beside it. The Invite fields follow. |
Each Invite node
| Field | Type | Description |
|---|---|---|
id | ID! | The invite id. |
email | String! | The invitee's email. |
firstName | String! | Their given name. |
lastName | String! | Their family name. |
role | TeamRoleType! | The role type granted on acceptance. |
status | InviteStatus! | Where the invite stands. Values under Types. |
expiresAt | String | When the link expires, a timestamp. |
createdAt | String | When it was created, a timestamp. |
Example
query Invites($input: InvitesInput) {
invites(input: $input) {
totalCount
edges { node { id email firstName lastName role status expiresAt } }
}
}{
"input": {
"first": 5,
"statuses": [
"PENDING",
"EXPIRED"
]
}
}{
"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
| Value | Meaning |
|---|---|
JOINED_AT | When the member was added to your team, most recently added first (the default). |
LAST_NAME | Family name. |
EMAIL | Sign-in email. |
LAST_SIGN_IN_AT | Last sign-in. |
CREATED_AT | When the user was created. |