# Retrieve Enrolled Payment Methods

Get the list of payment methods the user has enrolled.

<Note>
  Instruments vaulted by an Apple Pay or Google Pay CIT (`vault_on_success: true`) are intentionally not included in this list. The `vaulted_token` is returned only in the CIT payment response, so store it on your side. A stored wallet token can still be resolved with [Retrieve Enrolled Payment Method by ID](/reference/retrieve-enrolled-payment-method-by-id-api). See [Stored credentials](/docs/payment-features/stored-credentials#wallet-originated-tokens-apple-pay-and-google-pay).
</Note>

**GET** `/customers/{customer_id}/payment-methods`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Retrieve Enrolled Payment Methods

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Path parameters

- `customer_id` (string, required)
  The unique identifier of the customer, created using the [Create Customer](https://docs.whitelabel.com/reference/create-customer) endpoint (MAX 64; MIN 36).

## Responses

### 200

200

- `payment_methods` (object[])
  - `idempotency_key` (any)
  - `name` (string)
  - `description` (string)
  - `icon` (string)
  - `type` (string)
  - `category` (string)
  - `country` (string)
  - `status` (string)
  - `sub_status` (any)
  - `vaulted_token` (string)
  - `callback_url` (any)
  - `action` (any)
  - `redirect_url` (any)
  - `created_at` (string)
  - `updated_at` (string)
  - `card_data` (object)
    - `iin` (string)
    - `lfd` (string)
    - `expiration_month` (integer)
    - `expiration_year` (integer)
    - `number_length` (integer)
    - `security_code_length` (integer)
    - `security_code_expires_in` (integer)
      Seconds left before the stored security code stops being available to the PCI forward proxy. Returns -1 once that window has closed, and is omitted entirely when the card carries no security code. Only present for organizations with the PCI forward proxy enabled.
    - `brand` (string)
    - `issuer` (any)
    - `issuer_name` (string)
    - `issuer_code` (string)
    - `category` (any)
    - `type` (string)
  - `last_successfully_used` (boolean)
  - `last_successfully_used_at` (string)

Example:

```json
{
  "payment_methods": [
    {
      "idempotency_key": null,
      "name": "VISA ****1111",
      "description": "VISA ****1111",
      "icon": "https://icons.prod.whitelabel.com/visa_logosimbolo.png",
      "type": "CARD",
      "category": "CARD",
      "country": "US",
      "status": "ENROLLED",
      "sub_status": null,
      "vaulted_token": "46adcbc0-aa26-4867-a4e7-28a5ad9100ae",
      "callback_url": null,
      "action": null,
      "redirect_url": null,
      "created_at": "2023-08-05T14:22:06.766268Z",
      "updated_at": "2023-08-05T14:22:06.766268Z",
      "card_data": {
        "iin": "41111111",
        "lfd": "1111",
        "expiration_month": 3,
        "expiration_year": 27,
        "number_length": 16,
        "security_code_length": 3,
        "security_code_expires_in": 842,
        "brand": "VISA",
        "issuer": null,
        "issuer_name": "JPMORGAN_CHASE_BANK_NA",
        "issuer_code": "US_JPMORGAN_CHASE_BANK_NA",
        "category": null,
        "type": "CREDIT"
      },
      "last_successfully_used": false,
      "last_successfully_used_at": ""
    }
  ]
}
```

### 400

400

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_REQUEST",
  "messages": [
    "Invalid request"
  ]
}
```

### 401

401

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "INVALID_CREDENTIALS",
  "messages": [
    "Invalid credentials"
  ]
}
```

### 403

403

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "AUTHORIZATION_REQUIRED",
  "messages": [
    "The merchant has no authorization to use this API."
  ]
}
```