# Get Installments Plans

The **Get Installments Plan** API lets you retrieve a list of installment plans associated with a specific account. This endpoint helps view all available plans linked to an account, including their installment options, limits, and availability periods.

Use this API to fetch all installment plans available under a particular account ID.

**GET** `/installments-plans`

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

Get Installments Plans

## Authorization

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

## Query parameters

- `account_id` (string, required)
  The unique identifier of the account. Find it on the [WHITELABEL dashboard](https://dashboard.whitelabel.com) (UUID; 36 chars).
- `currency` (string)
  Currency used for filtering plans ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217); 3 chars).
- `iin` (string)
  [Optional] - The issuer identification number (IIN) refers to the first few digits of a payment card number issued by a financial institution (MAX 8; MIN 6). In case you defined an iin for the installments plan, you can use it to filter the response.
- `amount` (string)
  [Optional] - The amount that the installment plan is available for. In case you defined an amount range for the installments plan, you can use it to filter the response.
- `payment_method_type` (string)
  [Optional] - Filter by payment method type (CARD | NU_PAY_ENROLLMENT).

## Responses

### 200

200

- `id` (string)
- `name` (string)
- `account_id` (string[])
- `merchant_reference` (string)
- `installments_plan` (object[])
  - `installment` (integer)
  - `rate` (integer)
  - `provider_id` (string)
  - `financial_costs` (object[])
    - `type` ("CFT" | "TEA" | "CET" | "CAT")
    - `rate` (number<float>)
    - `formatted_value` (string)
  - `amount` (object)
    - `currency` (string)
    - `value` (string)
    - `total_value` (string)
- `iin` (any)
- `country_code` (string)
- `first_installment_deferral` (integer)
- `amount` (object)
  - `currency` (string)
  - `min_value` (integer)
  - `max_value` (integer)
- `availability` (object)
  - `start_at` (string)
  - `finish_at` (string)
- `created_at` (string)
- `updated_at` (string)
- `payment_method_type` ("CARD" | "NU_PAY_ENROLLMENT" | "APPLE_PAY")

Example:

```json
[
  {
    "id": "4d573425-33f9-4c46-b009-2c7e749b0ec7",
    "name": "plan_007",
    "account_id": [
      "f7c5fe77-721b-49c2-84d3-957748df3c2c"
    ],
    "merchant_reference": "Test",
    "installments_plan": [
      {
        "installment": 1,
        "rate": 1,
        "provider_id": "",
        "financial_costs": [
          {
            "type": "CFT",
            "rate": 0,
            "formatted_value": "string"
          }
        ],
        "amount": {
          "currency": "USD",
          "value": "0",
          "total_value": "0"
        }
      }
    ],
    "iin": null,
    "country_code": "US",
    "first_installment_deferral": 0,
    "amount": {
      "currency": "USD",
      "min_value": 0,
      "max_value": 100000000
    },
    "availability": {
      "start_at": "2023-09-12T00:00:00Z",
      "finish_at": "2030-09-20T00:00:00Z"
    },
    "created_at": "2023-10-11T17:52:31.886178Z",
    "updated_at": "2023-10-11T17:52:31.886178Z",
    "payment_method_type": "NU_PAY_ENROLLMENT"
  }
]
```

### 400

400

Example:

```json
{}
```