curl --request POST \
--url https://console.advinservers.com/api/v1/client/billing/deposits/{fundDeposit}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/billing/deposits/{fundDeposit}/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/billing/deposits/{fundDeposit}/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/billing/deposits/{fundDeposit}/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/billing/deposits/{fundDeposit}/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/billing/deposits/{fundDeposit}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/billing/deposits/{fundDeposit}/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": "20a09a3f-a6cf-4470-b078-7330235aa5d5",
"status": "cancelled",
"status_label": "Cancelled",
"billing": {
"service_id": null,
"invoice_id": 18386,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": "Cancelled",
"amount": "25.00",
"currency": "USD",
"billing_cycle": null,
"payment_due_at": "2026-09-14T17:12:09+00:00",
"payment_window_minutes": null,
"paid_at": null
},
"credited_at": null,
"cancelled_at": "2026-09-14T16:44:31+00:00",
"created_at": "2026-09-14T16:42:09+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 top-up
Overview
Cancels an unpaid top-up. Cancellation is rejected while a payment is being processed. The response normally has a cancelled status. If billing is unavailable or a payment arrives during cancellation, the top-up remains awaiting payment with an earlier deadline. Processing continues in the background; check again until the status is final. Top-ups belonging to another account return 404.
Permissions
Requires the account permission billing.manage (Manage billing).
curl --request POST \
--url https://console.advinservers.com/api/v1/client/billing/deposits/{fundDeposit}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/billing/deposits/{fundDeposit}/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/billing/deposits/{fundDeposit}/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/billing/deposits/{fundDeposit}/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/billing/deposits/{fundDeposit}/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/billing/deposits/{fundDeposit}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/billing/deposits/{fundDeposit}/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": "20a09a3f-a6cf-4470-b078-7330235aa5d5",
"status": "cancelled",
"status_label": "Cancelled",
"billing": {
"service_id": null,
"invoice_id": 18386,
"invoice_url": null,
"checkout_uuid": null,
"invoice_status": "Cancelled",
"amount": "25.00",
"currency": "USD",
"billing_cycle": null,
"payment_due_at": "2026-09-14T17:12:09+00:00",
"payment_window_minutes": null,
"paid_at": null
},
"credited_at": null,
"cancelled_at": "2026-09-14T16:44:31+00:00",
"created_at": "2026-09-14T16:42:09+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 fund deposit UUID
"20a09a3f-a6cf-4470-b078-7330235aa5d5"
Response
The request was accepted and is being carried out in the background.
An account credit top-up and its payment status.
The uuid UUID.
"20a09a3f-a6cf-4470-b078-7330235aa5d5"
The value of status.
pending_payment, credited, expired, cancelled, payment_review "pending_payment"
The status in the customer's words, written once on the enum.
"Awaiting payment"
The value of billing.
Show child attributes
Show child attributes
{
"service_id": null,
"invoice_id": 18386,
"invoice_url": "https://clients.advinservers.com/viewinvoice.php?id=18386",
"checkout_uuid": "53a832f9-e85e-44b5-af03-2ef26110686d",
"invoice_status": "Unpaid",
"amount": "25.00",
"currency": "USD",
"billing_cycle": null,
"payment_due_at": "2026-09-14T17:12:09+00:00",
"payment_window_minutes": null,
"paid_at": null
}
The date and time for credited at, in UTC.
null
The date and time for cancelled at, in UTC.
null
The date and time for created at, in UTC.
"2026-09-14T16:42:09+00:00"