Clients with pending notes

This API endpoint POST /api/Widget/pending returns the count of pending customers who have not yet been approved or declined. The API should accept agent IDs, ISO ID, and profile IDs as input parameters and return the count of pending customers based on the provided filters.

Expected Behavior:

  1. Filters:
    • The API should filter pending customers based on the provided agentsId, isoId, and profileIds in the request body.
    • A "pending" customer is defined as one who is neither approved nor declined.
  2. Response:
    • The API should return the count of pending customers that match the provided filters.

Acceptance Criteria:

  • The API returns the correct count of pending customers who are neither approved nor declined.
  • Filtering based on agents, ISO, and profiles is working as expected.
  • The response is provided in JSON format with the pending customers count.

Notes:

  • Ensure efficient handling of large data sets.
  • Properly handle edge cases, such as empty lists of agents, ISOs, or profiles, and return appropriate results when no pending customers are found.
Body Params
agentsId
array of int32s | null
agentsId
int32 | null
profileIds
array of int32s | null
profileIds
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json