curl --request POST \
--url https://console.advinservers.com/api/v1/client/floating-ips/{floatingIp}/withdraw-cancellation \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/floating-ips/{floatingIp}/withdraw-cancellation"
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/floating-ips/{floatingIp}/withdraw-cancellation', 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/floating-ips/{floatingIp}/withdraw-cancellation",
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/floating-ips/{floatingIp}/withdraw-cancellation"
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/floating-ips/{floatingIp}/withdraw-cancellation")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/floating-ips/{floatingIp}/withdraw-cancellation")
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": "1b8349e5-3568-43e0-bf89-fc3350dd7a08",
"uuid_short": "1b8349e5",
"status": "active",
"status_label": "Active",
"progress_message": null,
"needs_funds": false,
"type": "ipv4",
"address": "198.51.100.42",
"cidr": 24,
"gateway": "198.51.100.1",
"onlink": null,
"is_primary": false,
"location": "Kansas City, MO",
"location_id": 3,
"is_granted": false,
"can_release": false,
"billing": {
"service_id": 7421,
"invoice_id": 17214,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": "Paid",
"amount": "3.00",
"currency": "USD",
"billing_cycle": "monthly",
"payment_due_at": null,
"payment_window_minutes": null,
"paid_at": "2026-06-20T14:03:58+00:00"
},
"can_cancel_checkout": false,
"can_request_cancellation": true,
"can_withdraw_cancellation": false,
"cancellation_type": null,
"cancellation_requested_at": null,
"created_at": "2026-06-20T14:03:51+00:00",
"server": {
"id": "ecc6f4f1",
"name": "lambda-core",
"hostname": "lambda-core.blackmesa.example.com",
"windows": false,
"template_name": "Ubuntu 24.04",
"template_icon_url": "https://img.icons8.com/color/48/ubuntu.png"
},
"attaching_to": null,
"attachment_status": null,
"limits": {
"ipv4": {
"quota": 10,
"used": 1,
"remaining": 9
},
"ipv6": {
"quota": 5,
"used": 0,
"remaining": 5
}
}
}{
"message": "The request could not be carried out."
}{
"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."
}Withdraw a floating IP cancellation
Overview
Withdraws an end-of-period cancellation and continues billing for the address. Available only when can_withdraw_cancellation is true. Immediate cancellations cannot be reversed. Automatic payments remain disabled and must be set up again. limits contains account address allowances.
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/floating-ips/{floatingIp}/withdraw-cancellation \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/floating-ips/{floatingIp}/withdraw-cancellation"
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/floating-ips/{floatingIp}/withdraw-cancellation', 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/floating-ips/{floatingIp}/withdraw-cancellation",
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/floating-ips/{floatingIp}/withdraw-cancellation"
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/floating-ips/{floatingIp}/withdraw-cancellation")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/floating-ips/{floatingIp}/withdraw-cancellation")
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": "1b8349e5-3568-43e0-bf89-fc3350dd7a08",
"uuid_short": "1b8349e5",
"status": "active",
"status_label": "Active",
"progress_message": null,
"needs_funds": false,
"type": "ipv4",
"address": "198.51.100.42",
"cidr": 24,
"gateway": "198.51.100.1",
"onlink": null,
"is_primary": false,
"location": "Kansas City, MO",
"location_id": 3,
"is_granted": false,
"can_release": false,
"billing": {
"service_id": 7421,
"invoice_id": 17214,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": "Paid",
"amount": "3.00",
"currency": "USD",
"billing_cycle": "monthly",
"payment_due_at": null,
"payment_window_minutes": null,
"paid_at": "2026-06-20T14:03:58+00:00"
},
"can_cancel_checkout": false,
"can_request_cancellation": true,
"can_withdraw_cancellation": false,
"cancellation_type": null,
"cancellation_requested_at": null,
"created_at": "2026-06-20T14:03:51+00:00",
"server": {
"id": "ecc6f4f1",
"name": "lambda-core",
"hostname": "lambda-core.blackmesa.example.com",
"windows": false,
"template_name": "Ubuntu 24.04",
"template_icon_url": "https://img.icons8.com/color/48/ubuntu.png"
},
"attaching_to": null,
"attachment_status": null,
"limits": {
"ipv4": {
"quota": 10,
"used": 1,
"remaining": 9
},
"ipv6": {
"quota": 5,
"used": 0,
"remaining": 5
}
}
}{
"message": "The request could not be carried out."
}{
"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 floating ip uuid short
"1b8349e5-3568-43e0-bf89-fc3350dd7a08"
Response
The record, as a JSON object. There is no envelope.
A floating IP address and its current assignment.
The uuid UUID.
"1b8349e5-3568-43e0-bf89-fc3350dd7a08"
The first eight characters of the UUID. Either form can identify the address.
"1b8349e5"
The value of status.
pending_payment, active, pending_cancellation, deleting, expired, cancelled, payment_review "active"
The value of status_label.
"Active"
One sentence about why a purchase is waiting, or null.
null
Whether the purchase is waiting on account credit, which is the one wait the customer can end themselves.
false
The type of operation or resource.
ipv4, ipv6 "ipv4"
The IP address, or null after it has been released.
"198.51.100.42"
The network prefix length.
24
The gateway address for the network.
"198.51.100.1"
The value of onlink.
null
Whether the resource is primary.
false
The value of location.
"Kansas City, MO"
The location id ID.
3
Whether the resource is granted.
false
Whether the customer can release.
false
The value of billing.
Show child attributes
Show child attributes
{
"service_id": 7421,
"invoice_id": 17214,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": "Paid",
"amount": "3.00",
"currency": "USD",
"billing_cycle": "monthly",
"payment_due_at": null,
"payment_window_minutes": null,
"paid_at": "2026-06-20T14:03:58+00:00"
}
Whether the customer can cancel checkout.
false
Whether the customer can request cancellation.
true
Whether the cancellation standing against this address can still be taken back. False for an immediate one, which gave the address away as it was filed.
false
The value of cancellation_type.
immediate, end_of_billing, null null
The date and time for cancellation requested at, in UTC.
null
The date and time for created at, in UTC.
"2026-06-20T14:03:51+00:00"
Null whenever the address is held but parked on nothing, which is a perfectly ordinary state for a floating address to sit in.
Show child attributes
Show child attributes
{
"id": "ecc6f4f1",
"name": "lambda-core",
"hostname": "lambda-core.blackmesa.example.com",
"windows": false,
"template_name": "Ubuntu 24.04",
"template_icon_url": "https://img.icons8.com/color/48/ubuntu.png"
}
The server this address was bought for, while it waits to be put there. It is attached as soon as the purchase has been paid for, and this goes back to null.
Show child attributes
Show child attributes
null
Which way the address is moving while a worker attaches or detaches it, or null once it has settled. An attaching address is not on attaching_to yet; a detaching one is still on server.
attaching, detaching, null null
The value of limits.
Show child attributes
Show child attributes
{
"ipv4": { "quota": 10, "used": 1, "remaining": 9 },
"ipv6": { "quota": 5, "used": 0, "remaining": 5 }
}