The GET /api/subProfiles/byPaymentCard endpoint retrieves information about authorized users associated with a specified payment card ID. By sending a request with the card ID as a parameter, you can access detailed profiles of all authorized users linked to that card. This method is ideal for managing and viewing authorized user details within the banking application.
Response
Upon a successful request, the API returns a list of authorized users associated with the specified payment card
Security Considerations
- Authentication and Authorization: The request must be made by an authenticated and authorized user.
- Input Validation: The system verifies that the card ID is valid and that the requester is authorized to access the associated user details.
Summary
The GET /api/subProfiles/byPaymentCard endpoint provides a way to view detailed information about authorized users linked to a specified payment card. This functionality is crucial for managing user access and maintaining accurate records within the banking application.