# Retrieve an account card

Source: https://developers.swell.is/backend-api/account-cards/retrieve-an-account-card

Retrieve an existing account card using the ID that was returned when created.

## Arguments

- `id` (objectId, required): ID of the customer account card to retrieve.
- `expand` (string): Expanding link fields and child collections is performed using the expand argument.

  - For example, `expand=account` would return a related customer account if one exists.

  When the field represents a collection, you can specify the query limit,

  - For example, `expand=variants:10` would return up to 10 records of the variants collection.

  See [expanding ](https://developers.swell.is/backend-api/querying/expanding)for more details.
- `fields` (string): Return only the specified fields in the result. For example `fields=name,slug` would return only the fields `name` and `slug` in the response. Supports nested object and array fields using dot-notation, for example `items.product_id`. The customer account card `id` is always returned.
- `include` (string): Include one or more arbitrary queries in the response, possibly related to the main query.

  See [including ](https://developers.swell.is/backend-api/querying/including)for more details.

## Example request

`GET /accounts:cards/:id`

**cURL**

```sh
$ curl https://api.swell.store/accounts:cards/64ceea552fa37600131711f3 \
  -u store-id:secret-key
```

**Node**

```javascript
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');

await swell.get('/accounts:cards/{id}', {
  id: '64ceea552fa37600131711f3'
});
```

**PHP**

```php
<?php $swell = new \Swell\Client('store-id', 'secret-key');

$swell->get('/accounts:cards/{id}', [
  'id' => '64ceea552fa37600131711f3'
]);
```

## Example response

```json
{
  "parent_id": "621e53a6213eaf013d1fa6b2",
  "billing": {
    "name": "Jarl Balgruff",
    "first_name": "Jarl",
    "last_name": "Balgruff",
    "address1": "543 Castle Way",
    "address2": null,
    "city": "Whiterun",
    "state": "CA",
    "zip": null,
    "country": "US",
    "phone": null,
    "company": null
  },
  "brand": "Visa",
  "last4": "1234",
  "exp_month": 10,
  "exp_year": 2023,
  "token": "card_QD5rOXP3I4bOmUCKlmLo7BzC",
  "address_check": "unchecked",
  "zip_check": "unchecked",
  "cvc_check": "unchecked",
  "fingerprint": "3628a7581fec797682e06740213c08f1",
  "date_created": "2022-07-13T15:52:53.253Z",
  "active": true,
  "id": "64ceea552fa37600131711f3"
}
```
