> For the complete documentation index, see [llms.txt](https://blended.gitbook.io/a1pay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blended.gitbook.io/a1pay/list-users-cards.md).

# List User's Cards

Get a list of the logged in user's saved cards

## Get Cards

<mark style="color:blue;">`GET`</mark> `https://a1pay.net/api/transactions/cards/:UserId`

This endpoint allows you to list cards belonging to logged in user.

#### Query Parameters

| Name   | Type    | Description                 |
| ------ | ------- | --------------------------- |
| UserId | integer | UserId of the loggedin user |

{% tabs %}
{% tab title="200 An array of the following structure" %}

```javascript
{
  "Id": "1",
  "CardNumber": "xxxx xxxx xxxx 1234",
  "CardClass": "",
  "CountryOfIssue": "NIGERIA",
  "CountryOfIssueISO": "",
  "Issuer": "",
  "CardType": "",
  "IsForeign": "0",
  "CardBrand": "",
  "DateCreated": "2018-09-04T09:21:42.910",
  "CardFirstname": "John",
  "CardLastname": "Doe",
  "ExpiryYear": "2029",
  "ExpiryMonth": "3",
  "CVV": "000",
  "UserId": "99",
  "IsValid": "1"
}
```

{% endtab %}
{% endtabs %}
