# List the plans a web hosting package can be changed to

> The higher plans one web hosting package can be changed to, with their prices, and the plan it has now.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: stable
- MCP tool: `manitu_webhosting_upgrade_option_list` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/webhosting/upgrade/option/list`
- Needs: `service_webhosting`
- Page: /reference/webhosting/upgrade/option/list/

## MCP tool

`manitu_webhosting_upgrade_option_list`

### Description for the model

Lists the plans a web hosting package can be changed to (an upgrade: a higher plan, for a higher price), by its site_id - each with its option_id and price (in cent, net or gross, per period) - and the plan it has now (current_plan). An empty list: there is none (the highest plan, or a package of the old technology). To change it: [`manitu_webhosting_upgrade`](/reference/webhosting/upgrade.md) with the option_id. It changes nothing.

### Arguments

- `site_id` (integer | string, required) - The site_id of the package. Never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_webhosting_upgrade_option_list",
    "arguments": {
      "site_id": 12345
    }
  }
}
```

## REST

`POST https://api.manitu.de/v1/webhosting/upgrade/option/list`

### Description

Lists the higher plans a web hosting package can be changed to, by its site_id, each with its option_id and price (in cent, net or gross, per period), and the plan it has now (current_plan). An empty list means there is none - the highest plan, or a package of the old technology. The change itself is [`POST /v1/webhosting/upgrade`](/reference/webhosting/upgrade.md). Changes nothing.

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `site_id` (integer | string, required) - The site_id of the package. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Response

In `data`; the rest of the body as on every call.

- `site_id` (integer, required) - The package.
- `current_plan` (object, required) - The plan the package has now.
  - `current_plan.name` (string, required) - The plan, e.g. Webhosting M.
  - `current_plan.price_cent` (integer, required) - The price per period, in euro cent.
  - `current_plan.price_type` (string, required) - net: without VAT; gross: with VAT. (one of `"net"`, `"gross"`)
  - `current_plan.period_type` (string, required) - What the price is for: month or year (times period_length), onetime, or none. (one of `"none"`, `"onetime"`, `"month"`, `"year"`)
  - `current_plan.period_length` (integer, required) - How many months or years one period has.
- `upgrade_option_list` (array of object, required)
  - `upgrade_option_list[].option_id` (string, required) - What [`POST /v1/webhosting/upgrade`](/reference/webhosting/upgrade.md) takes, e.g. webhosting_l. (pattern `"^[^\\x00-\\x1F\\x7F]*$"`)
  - `upgrade_option_list[].plan` (object, required) - The plan after the change.
    - `upgrade_option_list[].plan.name` (string, required) - The plan, e.g. Webhosting M.
    - `upgrade_option_list[].plan.price_cent` (integer, required) - The price per period, in euro cent.
    - `upgrade_option_list[].plan.price_type` (string, required) - net: without VAT; gross: with VAT. (one of `"net"`, `"gross"`)
    - `upgrade_option_list[].plan.period_type` (string, required) - What the price is for: month or year (times period_length), onetime, or none. (one of `"none"`, `"onetime"`, `"month"`, `"year"`)
    - `upgrade_option_list[].plan.period_length` (integer, required) - How many months or years one period has.

### Statuses

- `200` Success.
- `400` The input is wrong, or the request itself (INVALID_INPUT). Each entry names its field and its reason - correct the input and call again.
- `401` No credential was presented, or it was not recognised (UNAUTHENTICATED).
- `403` The credential is valid, but may not do this (PERMISSION_DENIED). The reason says why - another credential is the way, not a repeat.
- `429` Too many calls. The Retry-After header says when to try again.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST \
  'https://api.manitu.de/v1/webhosting/upgrade/option/list' \
  -H "X-API-Key: $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"site_id":12345}'
```

## Example result

```json
{
  "site_id": 12345,
  "current_plan": {
    "name": "example.com",
    "price_cent": 1190,
    "price_type": "net",
    "period_type": "none",
    "period_length": 1
  },
  "upgrade_option_list": [
    {
      "option_id": "string",
      "plan": {
        "name": "example.com",
        "price_cent": 1190,
        "price_type": "net",
        "period_type": "none",
        "period_length": 1
      }
    }
  ]
}
```
