# Retrieve all Cards
source: https://developer.mastercard.com/donations/documentation/use-cases/manage-cards/retrieve-all-cards/index.md

## Overview {#overview}

The **Get All Cards** endpoint retrieves the details of all the cards-on-file associated with a donor. To fetch the details of all the cards associated with a donor, provide the unique `donor_id` as the endpoint path parameter.

A successful request returns the `HTTP 200 OK` status and a JSON response body with the details of all the cards-on-file registered for the donor.

## Sequence Diagram {#sequence-diagram}

The following outlines the sequence of events:
Diagram retrieve-all-cards

## Execution Steps {#execution-steps}

The following details the steps in the above sequence diagram:

1. The donor requests to view the details of all cards registered with the donor profile.
2. The partner user interface forwards the request to the partner server.
3. The partner server calls the `GET /donors/{donor_id}/cards` endpoint and provides the `donor_id` in the endpoint request to Mastercard Donate service.
4. The Mastercard Donate service verifies the donor identifier.
5. The Mastercard Donate service retrieves and returns all registered card details to the partner server if it finds the donor identifier.
6. The partner server then forwards the registered card details to the partner user interface.
7. The partner user interface displays the details of all the registered cards to the donor.
8. The Mastercard Donate service sends the error message to the partner server if it does not find the donor ID.
9. The partner server forwards the error message to the partner user interface.
10. The partner user interface displays the error message to the donor.

## Endpoint {#endpoint}


API Reference: `GET /donors/{donor_id}/cards`

## Endpoint Parameter {#endpoint-parameter}

For more details on the endpoint parameters, refer to the [Parameters to Retrieve all Cards](https://developer.mastercard.com/donations/documentation/parameters/manage-cards-param/retrieve-all-cards-param/index.md) section.

## Sample Request and Response {#sample-request-and-response}

For more details on the sample request and response, refer to the [Retrieve all Cards](https://developer.mastercard.com/donations/tutorial/donation-api-details/cardsapinew/index.md#retrieve-all-cards) tutorial.
