curl --request POST \
--url https://console.advinservers.com/api/v1/client/billing/deposits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "25.00"
}
'import requests
url = "https://console.advinservers.com/api/v1/client/billing/deposits"
payload = { "amount": "25.00" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: '25.00'})
};
fetch('https://console.advinservers.com/api/v1/client/billing/deposits', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '25.00'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://console.advinservers.com/api/v1/client/billing/deposits"
payload := strings.NewReader("{\n \"amount\": \"25.00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"25.00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/billing/deposits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"25.00\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "20a09a3f-a6cf-4470-b078-7330235aa5d5",
"status": "pending_payment",
"status_label": "Awaiting payment",
"billing": {
"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
},
"credited_at": null,
"cancelled_at": null,
"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": "The name field is required.",
"errors": {}
}{
"message": "Too Many Attempts."
}Add funds to the account
Overview
Creates an invoice and checkout for an account credit top-up. Payment is required. Send a decimal amount within the published minimum, maximum and remaining balance limit.
Credit is added only after the invoice is paid and the payment is processed. Use billing.checkout_uuid to pay in the panel, or billing.invoice_url as a fallback. Adding credit does not purchase a service.
Only one top-up waits for payment at a time. Starting another cancels the one still waiting, unless a payment for it is already being processed, in which case the request is rejected. A top-up that is not paid within the payment window is cancelled automatically.
Permissions
Requires the account permission billing.manage (Manage billing).
curl --request POST \
--url https://console.advinservers.com/api/v1/client/billing/deposits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "25.00"
}
'import requests
url = "https://console.advinservers.com/api/v1/client/billing/deposits"
payload = { "amount": "25.00" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: '25.00'})
};
fetch('https://console.advinservers.com/api/v1/client/billing/deposits', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => '25.00'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://console.advinservers.com/api/v1/client/billing/deposits"
payload := strings.NewReader("{\n \"amount\": \"25.00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"25.00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/billing/deposits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"25.00\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "20a09a3f-a6cf-4470-b078-7330235aa5d5",
"status": "pending_payment",
"status_label": "Awaiting payment",
"billing": {
"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
},
"credited_at": null,
"cancelled_at": null,
"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": "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.
Body
Send a JSON object containing the fields below. Required fields are marked in the schema.
The amount in the currency shown by currency.
0.01 <= x <= 1000000Response
The record, as a JSON object. There is no envelope.
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"