# Retrieve Enrolled Payment Method by ID

Retrieve a specific payment method that a user has enrolled in.

<Note>
**Retrieve Enrolled Payment Method**

To recover the enrolled payment method information, you need to provide the `payment_method_id`, which is the `vaulted_token` received when using the [Enroll Payment Method](/reference/enroll-payment-method-api) endpoint.
</Note>

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

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

Retrieve Enrolled Payment Method by Id

## 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 (UUID, 36 chars).
- `payment_method_id` (string, required)
  The unique identifier of the `payment_method`. This information was received as the `vaulted_token` by enrolling a payment method using [Enroll Payment Method](/reference/enroll-payment-method-api) (UUID, 36 chars).

## Responses

### 200

200

- `idempotency_key` (string)
- `id` (string)
- `account_id` (string)
- `name` (string)
- `description` (string)
- `type` (string)
- `category` (string)
- `country` (string)
- `status` (string)
- `sub_status` (any)
- `vaulted_token` (string)
- `action` (string)
- `redirect_url` (any)
- `created_at` (string)
- `updated_at` (string)
- `enrollment` (object)
  - `session` (string)
  - `sdk_required_action` (boolean)
- `provider` (object)
  - `id` (string)
  - `type` (string)
  - `token` (string)
  - `provider_status` (any)
- `customer_payer` (object)
  - `first_name` (string)
  - `last_name` (string)
  - `email` (string)
  - `gender` (string)
  - `date_of_birth` (string)
  - `document` (object)
    - `document_number` (string)
    - `document_type` (string)
  - `phone` (object)
    - `number` (string)
    - `country_code` (string)
  - `billing_address` (object)
    - `address_line_1` (string)
    - `address_line_2` (string)
    - `country` (string)
    - `state` (string)
    - `city` (string)
    - `zip_code` (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` (string)
  - `issuer_code` (any)
  - `country_code` (string,null)
    ISO 3166-1 alpha-2 country code of the card's issuing country, derived from BIN lookup when the card is vaulted. Null when BIN enrichment data is unavailable.
  - `category` (string)
  - `type` (string)
  - `fingerprint` (string)
- `last_successfully_used` (any)
- `last_successfully_used_at` (any)
- `verify` (object)
  - `vault_on_success` (boolean)
  - `currency` (string)
    Currency of the card verification, as sent when the payment method was enrolled (ISO 4217).
  - `external_subscription` (object)
    The external subscription this payment method was linked to when it was enrolled. Returned only when the enrollment was created with `verify.vault_on_success` set to `true` and carried an `external_subscription` object. The key is omitted when there is no link, so an absent `external_subscription` does not prove the enrollment has none: the field is also omitted when the verification payment cannot be retrieved. Retrieve the verification payment to confirm.
    - `id` (string)
      Identifier of the subscription in your system.
    - `customer_id` (string)
      Identifier of the subscription's customer in your system.
  - `payment` (any)
- `preferred` (any)
- `provider_data` (object)
  Additional data from the provider
  - `raw_request` (object)
    Obfuscated copy of the request WHITELABEL sent to the provider. Only returned for allowlisted organizations.
  - `raw_response` (object)

Example:

```json
{
  "idempotency_key": "2ca58c6d-8794-4c8f-a2f6-bba4b7498b74",
  "id": "2fd6bf11-2129-4061-9c2a-34e196f89753",
  "account_id": "493e9374-510a-4201-9e09-de669d75f256",
  "name": "VISA ****1111",
  "description": "VISA ****1111",
  "type": "CARD",
  "category": "CARD",
  "country": "US",
  "status": "ENROLLED",
  "sub_status": null,
  "vaulted_token": "7ced7717-f860-4705-a376-58a714953de9",
  "action": "FORM",
  "redirect_url": null,
  "created_at": "2024-06-04T12:47:46.992602Z",
  "updated_at": "2024-06-04T12:47:46.992603Z",
  "enrollment": {
    "session": "",
    "sdk_required_action": false
  },
  "provider": {
    "id": "YUNO",
    "type": "YUNO",
    "token": "e47299a5-269e-42a1-9be1-9f64e400413a",
    "provider_status": null
  },
  "customer_payer": {
    "first_name": "John",
    "last_name": "Doe",
    "email": "john.doe@example.com",
    "gender": "M",
    "date_of_birth": "1990-02-28",
    "document": {
      "document_number": "123456789",
      "document_type": "SSN"
    },
    "phone": {
      "number": "5551234567",
      "country_code": "1"
    },
    "billing_address": {
      "address_line_1": "123 Main St",
      "address_line_2": "Apt 4B",
      "country": "US",
      "state": "NY",
      "city": "New York",
      "zip_code": "10001"
    }
  },
  "card_data": {
    "iin": "41111111",
    "lfd": "1111",
    "expiration_month": 3,
    "expiration_year": 26,
    "number_length": 16,
    "security_code_length": 3,
    "security_code_expires_in": 842,
    "brand": "VISA",
    "issuer": "JPMORGAN CHASE BANK N A",
    "issuer_code": null,
    "country_code": "US",
    "category": "CREDIT",
    "type": "CREDIT",
    "fingerprint": "55a7fe38-cdc3-45dc-8c5f-820751799c76"
  },
  "last_successfully_used": null,
  "last_successfully_used_at": null,
  "verify": {
    "vault_on_success": false,
    "currency": "string",
    "external_subscription": {
      "id": "string",
      "customer_id": "string"
    },
    "payment": null
  },
  "preferred": null,
  "provider_data": {
    "raw_request": {},
    "raw_response": {}
  }
}
```

### 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."
  ]
}
```