Clients with Pending Notes
This endpoint returns the count of customers whose applications are neither approved nor declined — that is, they remain in a pending state. Results can be filtered by agent IDs, ISO ID, and profile IDs. The response provides separate counts for banking and merchant customer types.
Endpoint
POST /api/Widget/pending
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint to populate dashboard widgets or administrative reports that display how many customers are awaiting review or approval. It is particularly useful for partner portals where agents or ISO managers need a real-time snapshot of their pending customer pipeline, broken down by banking and merchant profile types.
Request Body
The request body accepts one of the following schemas. All share the base filter fields (agentsId, isoId, profileIds) and extend them with additional date or status fields depending on the use case.
Base Fields (shared across all request types)
| Field | Type | Required | Description |
|---|---|---|---|
| agentsId | array of integer | No | List of agent IDs to filter pending customers by. Pass an empty array or omit to include all agents. |
| isoId | integer | No | ISO ID to scope results to a specific ISO organization. |
| profileIds | array of integer | No | List of profile IDs to restrict results to specific customer profiles. |
Extended Fields — widgetrequest variant
widgetrequest variant| Field | Type | Required | Description |
|---|---|---|---|
| fromDate | string (date-time) | Yes | Start of the date range (ISO 8601). |
| toDate | string (date-time) | Yes | End of the date range (ISO 8601). |
Extended Fields — reportrequest variant
reportrequest variant| Field | Type | Required | Description |
|---|---|---|---|
| reportDate | string (date-time) | Yes | The single report date for the snapshot. |
| havePoints | boolean | No | Filter to customers who have reward points. |
| profileType | integer | No | Customer profile type. Enum: 1, 2, 3, 4, 5. |
| applicationStatus | string | No | Filter by application status. Enum: New, Submitted, PendingUW, ApprovedUW, Closed, Cancelled, Pending_Review, Denied, Approved, Pending, InReview, AutoApprovedUW. |
Extended Fields — widgetreportrequest variant
widgetreportrequest variant| Field | Type | Required | Description |
|---|---|---|---|
| reportDates | array of string (date-time) | Yes | Array of specific report dates to aggregate counts across. |
Extended Fields — balancesrequest variant
balancesrequest variant| Field | Type | Required | Description |
|---|---|---|---|
| fromDate | string (date-time) | Yes | Start of the date range (ISO 8601). |
| toDate | string (date-time) | Yes | End of the date range (ISO 8601). |
| skip | integer | No | Pagination offset. Default: 0. |
| limit | integer | No | Maximum number of records to return. Default: 100. |
Extended Fields — rewardsreportrequest variant
rewardsreportrequest variant| Field | Type | Required | Description |
|---|---|---|---|
| reportDate | string (date-time) | No | Optional report date to filter rewards data. |
Minimal request body example (base filters only):
{
"agentsId": [101, 102],
"isoId": 5,
"profileIds": [201, 202, 203]
}Widget date-range request example:
{
"agentsId": [101],
"isoId": 5,
"profileIds": [201],
"fromDate": "2026-01-01T00:00:00Z",
"toDate": "2026-06-01T00:00:00Z"
}Response
200 OK
| Field | Type | Description |
|---|---|---|
| bankingCount | integer or null | Number of pending banking customers matching the provided filters. |
| merchantCount | integer or null | Number of pending merchant customers matching the provided filters. |
{
"bankingCount": 47,
"merchantCount": 12
}Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields (e.g., fromDate/toDate omitted for widgetrequest) or validation error in request body |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to access widget data for the specified agents, ISO, or profiles |
| 404 | Specified resource (agent, ISO, or profile) not found |
| 500 | Internal server error |
Common Mistakes
- Omitting
fromDateandtoDatewhen using thewidgetrequestorbalancesrequestschema — both fields are required for those variants. - Passing an empty
agentsIdarray expecting it to return no results; an empty or null array means no agent filter is applied and all agents are included. - Assuming a
nullresponse forbankingCountormerchantCountindicates an error — null values simply mean no matching pending customers were found for that category. - Sending
reportDatesas a single string instead of an array when using thewidgetreportrequestvariant. - Using an
applicationStatusvalue outside the defined enum list, which will result in a 400 validation error.
Related Endpoints
POST /api/Widget/approved— Returns the count of customers with approved application statusPOST /api/Widget/declined— Returns the count of customers with declined application statusPOST /api/Widget/totalClients— Returns the total count of all customers regardless of statusPOST /api/Widget/newClients— Returns the count of newly created customer records within a date range
Example
curl -X POST https://api.banking.netevia.dev/api/Widget/pending \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"agentsId": [101, 102],
"isoId": 5,
"profileIds": [201, 202],
"fromDate": "2026-01-01T00:00:00Z",
"toDate": "2026-06-01T00:00:00Z"
}'