# Retrieve Payment Methods to Enroll

Get the list of payment methods the user has available for enrollment.

**GET** `/checkout/customers/sessions/{customer_session}/payment-methods`

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

Retrieve Payment Methods To Enroll

## Authorization

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

## Path parameters

- `customer_session` (string, required)
  The customer session that has been created for the enrollment using the [Create Customer Session](https://docs.whitelabel.com/reference/create-customer-session) endpoint (UUID, 36 chars).

## Responses

### 200

200

- `payment_methods` (object[])
  - `name` (string)
  - `description` (string)
  - `type` (string)
  - `category` (string)
  - `icon` (string)
  - `enrollment` (object)
    - `session` (string)
    - `sdk_required_action` (boolean)

Example:

```json
{
  "payment_methods": [
    {
      "name": "Visa Credit Card",
      "description": "Visa Credit Card",
      "type": "VISA",
      "category": "CARD",
      "icon": "https://icons.prod.whitelabel.com/visa_logosimbolo.png",
      "enrollment": {
        "session": "6641e30d-ca7a-440f-b97c-24231eac6dab",
        "sdk_required_action": false
      }
    }
  ]
}
```

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