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.
accountId integer · min: 1 required Example Unique account identifier
Accept Example Content-Type Example success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string https://cloud.hostup.se/api/services/{accountId}/renew curl -X POST "https://cloud.hostup.se/api/services/16424/renew" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"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"
]
}
}
}