> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cards Overview

> Use the cards endpoint to create and manage resources that represent physical and virtual payment cards.

The `card` resource represents a payment card. Cards are derived from and controlled by the `cardproduct` resource. For more information on cards, see [About Cards](https://www.marqeta.com/docs/developer-guides/about-cards.md).

Some attributes of the `card` resource can be defined in an associated `bulkissuance` or `cardproduct` resource. If you define one of these attributes in more than one object, the order of precedence at fulfillment time is as follows:

**Step 1**

`card`

**Step 2**

`bulkissuance`

**Step 3**

`cardproduct`

Defining an attribute in an object with higher precedence overrides, but does not overwrite, the attribute in a lower-precedence object.

## Available operations

| Method | Endpoint | Operation |
| - | - | - |
| `POST` | `/cards` | [Create card](https://www.marqeta.com/docs/core-api/cards/create-card.md) |
| `GET` | `/cards` | [List cards by last 4 digits of PAN](https://www.marqeta.com/docs/core-api/cards/list-by-last-4-digits-pan.md) |
| `GET` | `/cards/barcode/{barcode}` | [Retrieve card by barcode](https://www.marqeta.com/docs/core-api/cards/retrieve-by-barcode.md) |
| `POST` | `/cards/getbypan` | [Retrieve card by PAN](https://www.marqeta.com/docs/core-api/cards/retrieve-by-pan.md) |
| `GET` | `/cards/user/{token}` | [List cards for user](https://www.marqeta.com/docs/core-api/cards/list-cards-for-user.md) |
| `GET` | `/cards/{token}` | [Retrieve card](https://www.marqeta.com/docs/core-api/cards/retrieve-card.md) |
| `PUT` | `/cards/{token}` | [Update card](https://www.marqeta.com/docs/core-api/cards/update-card.md) |
| `GET` | `/cards/{token}/showpan` | [Show card PAN](https://www.marqeta.com/docs/core-api/cards/show-pan.md) |


## Related topics

- [Cards Overview](https://www.marqeta.com/docs/developer-guides/cards-landing-page.md)
- [External Cards Overview](https://www.marqeta.com/docs/core-api/external-cards.md)
- [Account Cards Overview](https://www.marqeta.com/docs/core-api/credit-account-cards.md)
- [Card Transitions Overview](https://www.marqeta.com/docs/core-api/card-transitions.md)
- [Card Products Overview](https://www.marqeta.com/docs/core-api/card-products.md)
