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.
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!