Upgrade web hosting service to a higher plan

Upgrade an existing web hosting service to a higher plan. The endpoint returns an order ID that can be used to track the order and for further actions in the billing system.

Path Parameters

accountId integer · min: 1 required Example

Unique account identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
productId string required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/hosting/{accountId}/upgrade
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/hosting/10060/upgrade" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "productId": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string",
    "orderId": 0,
    "orderNum": 0,
    "total": "string",
    "redirectUrl": "string",
    "upgradedTo": {
      "productId": "string",
      "name": "string"
    }
  }
}
Request Body
{
  "productId": "string"
}