post https://api.banking.netevia.dev/api/Widget/pending
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:
- 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.
- 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.