curl --request POST \
--url https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"uuid": "0e6a7712-98ab-451b-8675-5c5ae96e4d3a",
"purchase_uuid": "a930b81e-663e-4e12-a437-001f207d5ac6",
"purchase_status": "needs_funds",
"status": "pending_payment",
"status_label": "Needs funds",
"is_placed": false,
"progress_message": "Your balance is 2.00 USD short of the 12.00 USD this order costs. Add funds to continue.",
"plan_name": "Standard 4 GB",
"plan_key": "032f97c3b0f718ae9a2edfba83d5adf321025b5d9af1e90d397e79b8667bb3a4",
"vcpu_cores": 4,
"memory": 4000,
"disk": 80,
"bandwidth": 5000,
"hdd": false,
"location": "Kansas City, MO",
"location_id": 3,
"group_name": "Standard VPS",
"hostname": "hev-telemetry.blackmesa.example.com",
"label": "hev-telemetry",
"template_name": "Ubuntu 24.04",
"template_icon_url": "https://img.icons8.com/color/48/ubuntu.png",
"billing": {
"service_id": null,
"invoice_id": null,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": null,
"amount": "12.00",
"currency": "USD",
"billing_cycle": "monthly",
"payment_due_at": "2026-09-14T17:01:47+00:00",
"payment_window_minutes": 30,
"paid_at": null
},
"server_id": null,
"can_cancel": true,
"created_at": "2026-09-14T16:31:47+00:00"
}{
"message": "Unauthenticated."
}{
"message": "This API key is not allowed to do that in this team. It needs the \"snapshot.delete\" permission."
}{
"message": "Not found."
}{
"message": "The name field is required.",
"errors": {}
}{
"message": "Too Many Attempts."
}Cancel a server order
Overview
Cancels an unpaid order. Orders that have already been paid cannot be cancelled here. The response shows the payment deadline brought forward. The order and invoice are closed in the background after a final check for incoming payments. Check the order again until its status is final. Orders belonging to another account or team return 404.
Permissions
Requires the billing.purchase (Make purchases) permission for the selected team. Resources outside that team return 404.
curl --request POST \
--url https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/servers/orders/{serverOrder}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"uuid": "0e6a7712-98ab-451b-8675-5c5ae96e4d3a",
"purchase_uuid": "a930b81e-663e-4e12-a437-001f207d5ac6",
"purchase_status": "needs_funds",
"status": "pending_payment",
"status_label": "Needs funds",
"is_placed": false,
"progress_message": "Your balance is 2.00 USD short of the 12.00 USD this order costs. Add funds to continue.",
"plan_name": "Standard 4 GB",
"plan_key": "032f97c3b0f718ae9a2edfba83d5adf321025b5d9af1e90d397e79b8667bb3a4",
"vcpu_cores": 4,
"memory": 4000,
"disk": 80,
"bandwidth": 5000,
"hdd": false,
"location": "Kansas City, MO",
"location_id": 3,
"group_name": "Standard VPS",
"hostname": "hev-telemetry.blackmesa.example.com",
"label": "hev-telemetry",
"template_name": "Ubuntu 24.04",
"template_icon_url": "https://img.icons8.com/color/48/ubuntu.png",
"billing": {
"service_id": null,
"invoice_id": null,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": null,
"amount": "12.00",
"currency": "USD",
"billing_cycle": "monthly",
"payment_due_at": "2026-09-14T17:01:47+00:00",
"payment_window_minutes": 30,
"paid_at": null
},
"server_id": null,
"can_cancel": true,
"created_at": "2026-09-14T16:31:47+00:00"
}{
"message": "Unauthenticated."
}{
"message": "This API key is not allowed to do that in this team. It needs the \"snapshot.delete\" permission."
}{
"message": "Not found."
}{
"message": "The name field is required.",
"errors": {}
}{
"message": "Too Many Attempts."
}Authorizations
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Path Parameters
The server order UUID
"0e6a7712-98ab-451b-8675-5c5ae96e4d3a"
Response
The request was accepted and is being carried out in the background.
A server order and its installation progress.
The uuid UUID.
"0e6a7712-98ab-451b-8675-5c5ae96e4d3a"
The checkout this machine was bought in, shared with every other machine ordered at the same time.
"a930b81e-663e-4e12-a437-001f207d5ac6"
The purchase status, or null for an order without a purchase record.
pending, needs_funds, paid, refused, expired, cancelled, null "needs_funds"
The value of status.
pending_payment, provisioning, configuring, completed, expired, payment_review, failed, cancelled "pending_payment"
The value of status_label.
"Needs funds"
Whether the billing system has taken and been paid for this order, which is what separates "still placing" from "being built".
false
The value of progress_message.
"Your balance is 2.00 USD short of the 12.00 USD this order costs. Add funds to continue."
The value of plan_name.
"Standard 4 GB"
The value of plan_key.
"032f97c3b0f718ae9a2edfba83d5adf321025b5d9af1e90d397e79b8667bb3a4"
The value of vcpu_cores.
4
The value of memory.
4000
The value of disk.
80
The value of bandwidth.
5000
The value of hdd.
false
The value of location.
"Kansas City, MO"
The location id ID.
3
The value of group_name.
"Standard VPS"
The fully qualified hostname.
"hev-telemetry.blackmesa.example.com"
A short label shown to customers.
"hev-telemetry"
The value of template_name.
"Ubuntu 24.04"
The value of template_icon_url.
"https://img.icons8.com/color/48/ubuntu.png"
The value of billing.
Show child attributes
Show child attributes
{
"service_id": null,
"invoice_id": null,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": null,
"amount": "12.00",
"currency": "USD",
"billing_cycle": "monthly",
"payment_due_at": "2026-09-14T17:01:47+00:00",
"payment_window_minutes": 30,
"paid_at": null
}
The installed server's short ID, or null until installation finishes.
null
Whether the customer can cancel.
true
The date and time for created at, in UTC.
"2026-09-14T16:31:47+00:00"