## GET /api/v2/products/shared-hosting/storage-addons

**List shared-hosting storage add-ons**

List SSD storage add-on tiers available for shared-hosting accounts. This public product catalog endpoint is for pricing and option discovery before purchase; use `POST /api/v2/shared-hosting/{accountId}/addons/storage` to buy storage for an existing account. The returned `id` is the add-on identifier to send as `addonId` in the purchase route.

### Related Endpoints

- `GET /api/v2/products/shared-hosting`: List shared-hosting products
- `GET /api/v2/products/vps`: List regular VPS products
- `GET /api/v2/products/domains`: List domain products

### Headers

- `Accept`: application/json
- No authorization header required.

### Request Example

```bash
curl -X GET "https://cloud.hostup.se/api/v2/products/shared-hosting/storage-addons" \
  -H "Accept: application/json"
```

### Response Schema

- `data` (array<object>, required)
- `data[].id` (string, required): Storage add-on identifier accepted by `POST /api/v2/shared-hosting/{accountId}/addons/storage` as `addonId`. Example: `7`
- `data[].sizeGb` (integer, required): Additional SSD storage in GB. Example: `25`
- `data[].price` (number, required): Price for the billing cycle in `currencyCode`. Example: `249`
- `data[].currencyCode` (string, required): ISO-4217 currency code. Example: `SEK`
- `data[].billingCycle` (string, required): Billing cycle code for the storage add-on. Storage add-ons renew annually with the hosting plan. Example: `a`
  Allowed values: a

### Responses

#### 200 - Shared-hosting storage add-on tiers.
```json
{
  "data": [
    {
      "id": "7",
      "sizeGb": 25,
      "price": 249,
      "currencyCode": "SEK",
      "billingCycle": "a"
    },
    {
      "id": "21",
      "sizeGb": 50,
      "price": 449,
      "currencyCode": "SEK",
      "billingCycle": "a"
    }
  ]
}
```

#### 400 - Invalid request. The response body is an RFC 7807 Problem Details document.
```json
{
  "type": "https://developer.hostup.se/errors/invalid_request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request body failed validation.",
  "code": "invalid_request",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z",
  "errors": [
    {
      "pointer": "/items/0/domainName",
      "detail": "`domainName` is required.",
      "code": "invalid_request"
    }
  ]
}
```

#### 404 - Not found. The resource does not exist or is not owned by the caller.
```json
{
  "type": "https://developer.hostup.se/errors/not_found",
  "title": "Not found",
  "status": 404,
  "detail": "The requested resource could not be found.",
  "code": "not_found",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 429 - Rate limited. Retry after the limit resets. 429 responses include `Retry-After` seconds plus `X-RateLimit-*` headers.
```json
{
  "type": "https://developer.hostup.se/errors/rate_limit_exceeded",
  "title": "Too many requests",
  "status": 429,
  "detail": "Too many requests. Retry after the limit resets.",
  "code": "rate_limit_exceeded",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 500 - Internal error. Retry later or contact support if the issue persists.
```json
{
  "type": "https://developer.hostup.se/errors/internal_error",
  "title": "Internal server error",
  "status": 500,
  "detail": "An unexpected error occurred. Retry later or contact support if the issue persists.",
  "code": "internal_error",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 502 - Storage add-on pricing could not be loaded from the upstream catalog.
```json
{
  "type": "https://developer.hostup.se/errors/upstream_shared_hosting_storage_addons_unavailable",
  "title": "Storage add-ons unavailable",
  "status": 502,
  "detail": "Storage add-on pricing could not be loaded. Please try again in a moment.",
  "code": "upstream_shared_hosting_storage_addons_unavailable"
}
```
