Skip to main content

pendingCustomersByRep

Requires a tenant administrator.

Returns the customers waiting for approval grouped by owning sales rep, with a group for customers that have no rep. Tenant admins only.

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:

query PendingCustomersByRep {
pendingCustomersByRep {
repName
oldestSubmittedAt
pendingCount
repCreatedCount
repEmail
repId
}
}

Response:

{
"data": {
"pendingCustomersByRep": [
{
"repName": "string",
"oldestSubmittedAt": "2025-01-15T00:00:00Z",
"pendingCount": 0,
"repCreatedCount": 0,
"repEmail": "string",
"repId": "id"
}
]
}
}
pendingCustomersByRep: [PendingRepGroup!]!

Type​

PendingRepGroup object​

The pending customers of one rep, or the unassigned group.