Renew a service and generate a new invoice

Renew an existing service and automatically generate a new invoice. The endpoint returns an 'invoiceId' necessary for subsequent payment calls, for example, via POST /api/swish/payment.

Path Parameters

accountId integer · min: 1 required Example

Unique account identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
500
error string
message string
code string
timestamp string
requestId string
POST https://cloud.hostup.se/api/services/{accountId}/renew
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/services/16424/renew" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "invoiceId": "string",
    "message": "string",
    "info": [
      "string"
    ],
    "serviceType": "string",
    "raw": {
      "success": true,
      "invoice_id": "string",
      "call": "string",
      "server_time": 0,
      "info": [
        "string"
      ]
    }
  }
}