The GET /api/paymentCards endpoint retrieves a list of all payment cards associated with the user's account. This method provides detailed information for each card, including masked card numbers, type, expiration date, and status. It is essential for users to efficiently manage and view their active and inactive payment cards within the banking application.
Purpose:
This endpoint allows users to access and manage their payment cards by providing a list of all cards linked to their account. The response includes necessary details to track the status, type, and validity of each card.
Response:
Upon a successful request, the API returns response containing a list of the user's payment cards and their respective details.
Security:
Ensure that users are authenticated and authorized to access the payment card details. Masked card numbers are provided to enhance security and prevent exposure of sensitive information.