Raise a renewal invoice
curl --request POST \
--url https://my.server.express/api/v1/dedicated/{id}/renew \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"period": "1"
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({period: '1'})
};
fetch('https://my.server.express/api/v1/dedicated/{id}/renew', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/{id}/renew"
payload = { "period": "1" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceNumber": "<string>",
"total": 123,
"currency": "<string>",
"discount": 123
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Dedicated
Raise a renewal invoice
Creates an UNPAID invoice, due in 7 days and billed to the service owner, covering the server and its active add-ons for the chosen period starting at the current nextDueDate. Longer periods discount the server line (not add-ons): 3 months 2%, 6 months 4%, 12 months 8%. Doesn’t move nextDueDate itself — that happens when the invoice is paid. Needs billing access (owner or team ADMIN). Writes a RENEW_DEDICATED audit entry.
POST
/
v1
/
dedicated
/
{id}
/
renew
Raise a renewal invoice
curl --request POST \
--url https://my.server.express/api/v1/dedicated/{id}/renew \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"period": "1"
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({period: '1'})
};
fetch('https://my.server.express/api/v1/dedicated/{id}/renew', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/{id}/renew"
payload = { "period": "1" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceNumber": "<string>",
"total": 123,
"currency": "<string>",
"discount": 123
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
The dedicated server's service id.
Body
application/json
Months, as a string.
Available options:
1, 3, 6, 12