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:
- GraphQL
- cURL
query PendingCustomersByRep {
pendingCustomersByRep {
repName
oldestSubmittedAt
pendingCount
repCreatedCount
repEmail
repId
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query PendingCustomersByRep {\n pendingCustomersByRep {\n repName\n oldestSubmittedAt\n pendingCount\n repCreatedCount\n repEmail\n repId\n }\n}"
}
EOF
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.