## GET /api/v2/vps/payg/deployments

**Get Cloud VPS PAYG deployment options**

Return pay-as-you-go Cloud VPS deployment options: account eligibility, action gate, hourly pricing, default resources, min/max resource limits, and available regions. Use this as the preflight for `POST /api/v2/vps/payg/deployments`; do not invent resource sizes outside `limits`, and do not use `POST /api/v2/orders` for PAYG Cloud VPS creation. Regular fixed-cycle VPS products are listed by `GET /api/v2/products/vps`.

### Related Endpoints

- `POST /api/v2/vps/payg/deployments`: Create Cloud VPS PAYG deployment
- `GET /api/v2/vps/payg/limits`: Get Cloud VPS PAYG resource limits
- `GET /api/v2/vps`: List VPS instances

### Headers

- `Accept`: application/json
- `Authorization`: Bearer YOUR_API_KEY
- Required API scope: `read:vm`

### Request Example

```bash
curl -X GET "https://cloud.hostup.se/api/v2/vps/payg/deployments" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
```

### Response Schema

- `available` (boolean, required) Example: `false`
- `reason` (string,null, required) Example: `Verify your account before using Cloud VMs.`
- `access` (object | null, required) Example: `null`
- `access.available` (boolean, required) Example: `false`
- `access.reason` (string,null, required) Example: `Verify your account before using Cloud VMs.`
- `access.countryCode` (string,null, required) Example: `SE`
- `access.countryPaymentAvailable` (boolean, required) Example: `true`
- `access.requiresCard` (boolean, required) Example: `true`
- `access.hasCard` (boolean, required) Example: `true`
- `access.verified` (boolean, required) Example: `false`
- `access.cloudAccessEnabled` (boolean, required) Example: `false`
- `access.blockerReasons` (array<string>, required)
- `actions` (object, required)
- `actions.canDeploy` (object, required)
- `actions.canDeploy.allowed` (boolean, required) Example: `false`
- `actions.canDeploy.reason` (string,null, required) Example: `Verify your account before using Cloud VMs.`
- `pricing` (object, required)
- `pricing.currencyCode` (string, required) Example: `SEK`
- `pricing.cpuPerCoreHour` (number, required) Example: `0.12`
- `pricing.memoryPerGbHour` (number, required) Example: `0.04`
- `pricing.storagePerGbHour` (number, required) Example: `0.003`
- `pricing.bandwidthPerGb` (number, required) Example: `0.1`
- `pricing.ipPerHour` (number, required) Example: `0.02`
- `defaults` (object, required)
- `defaults.regionId` (string, required) Example: `stockholm`
- `defaults.resources` (object, required)
- `defaults.resources.cpuCores` (integer, required) Example: `2`
- `defaults.resources.memoryGb` (integer, required) Example: `4`
- `defaults.resources.storageGb` (integer, required) Example: `80`
- `limits` (object, required)
- `limits.cpuCores` (object, required)
- `limits.cpuCores.min` (integer, required) Example: `1`
- `limits.cpuCores.max` (integer, required) Example: `32`
- `limits.memoryGb` (object, required)
- `limits.memoryGb.min` (integer, required) Example: `1`
- `limits.memoryGb.max` (integer, required) Example: `256`
- `limits.storageGb` (object, required)
- `limits.storageGb.min` (integer, required) Example: `50`
- `limits.storageGb.max` (integer, required) Example: `2000`
- `regions` (array<object>, required)
- `regions[].id` (string,null, required) Example: `stockholm`
- `regions[].name` (string,null, required) Example: `Stockholm`
- `regions[].available` (boolean, required) Example: `true`

### Responses

#### 200 - PAYG deployment options.
```json
{
  "available": false,
  "reason": "Verify your account before using Cloud VMs.",
  "access": {
    "available": false,
    "reason": "Verify your account before using Cloud VMs.",
    "countryCode": "SE",
    "countryPaymentAvailable": true,
    "requiresCard": true,
    "hasCard": true,
    "verified": false,
    "cloudAccessEnabled": false,
    "blockerReasons": [
      "not_verified",
      "no_cloud_access"
    ]
  },
  "actions": {
    "canDeploy": {
      "allowed": false,
      "reason": "Verify your account before using Cloud VMs."
    }
  },
  "pricing": {
    "currencyCode": "SEK",
    "cpuPerCoreHour": 0,
    "memoryPerGbHour": 0,
    "storagePerGbHour": 0,
    "bandwidthPerGb": 0,
    "ipPerHour": 0
  },
  "defaults": {
    "regionId": "stockholm",
    "resources": {
      "cpuCores": 2,
      "memoryGb": 2,
      "storageGb": 50
    }
  },
  "limits": {
    "cpuCores": {
      "min": 1,
      "max": 32
    },
    "memoryGb": {
      "min": 1,
      "max": 256
    },
    "storageGb": {
      "min": 50,
      "max": 2000
    }
  },
  "regions": [
    {
      "id": "stockholm",
      "name": "Stockholm",
      "available": true
    }
  ]
}
```

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

#### 401 - Unauthorized. Authentication is required.
```json
{
  "type": "https://developer.hostup.se/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Authentication is required.",
  "code": "unauthorized",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 403 - Forbidden. The caller lacks a required scope or does not own the resource.
```json
{
  "type": "https://developer.hostup.se/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "The caller lacks a required scope or does not own the resource.",
  "code": "forbidden",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

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