curl --request GET \
--url https://console.advinservers.com/api/v1/client/billing/subscriptions \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/billing/subscriptions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.advinservers.com/api/v1/client/billing/subscriptions', 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/subscriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/subscriptions"
req, _ := http.NewRequest("GET", 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.get("https://console.advinservers.com/api/v1/client/billing/subscriptions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/billing/subscriptions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sells_subscriptions": true,
"items": [
{
"uuid": "a216c52c-ccea-430f-b3bf-09aaf1025a44",
"provider": "paddle",
"status": "active",
"is_healthy": true,
"is_cancelled": false,
"is_ending": false,
"description": "Standard 4 GB · Kansas City, MO · Monthly",
"billing_cycle": "monthly",
"amount": "12.00",
"currency": "USD",
"next_charge_at": "2026-10-02T19:15:08+00:00",
"ends_at": null,
"cancelled_at": null,
"last_paid_at": "2026-09-02T19:15:08+00:00",
"can_cancel": true,
"services": [
{
"service_id": 7312,
"name": "Standard 4 GB",
"hostname": "lambda-core.blackmesa.example.com",
"status": "Active",
"next_due_date": "2026-10-02",
"server_id": "ecc6f4f1",
"server": {
"id": "ecc6f4f1",
"name": "lambda-core",
"hostname": "lambda-core.blackmesa.example.com",
"location": "Kansas City, MO",
"windows": false,
"template_name": "Ubuntu 24.04",
"template_icon_url": "https://img.icons8.com/color/48/ubuntu.png"
},
"is_known": true
}
],
"cancellation_service_id": null
}
]
}{
"message": "Unauthenticated."
}{
"message": "This API key is not allowed to do that in this team. It needs the \"snapshot.delete\" permission."
}{
"message": "Too Many Attempts."
}List automatic payments
Overview
Lists automatic payment subscriptions across the account’s teams. Subscription details are refreshed from the payment provider when requested. If the provider is unavailable, the last known details are returned.
Amounts are decimal strings excluding tax. Tax is calculated using the customer’s location at the time of payment. is_ending identifies a subscription that has been stopped but has not reached its end date. Display it separately from active and cancelled subscriptions. sells_subscriptions indicates whether automatic payments are available, even when the list is empty.
Permissions
Requires the account permission billing.read (View billing).
curl --request GET \
--url https://console.advinservers.com/api/v1/client/billing/subscriptions \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/billing/subscriptions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.advinservers.com/api/v1/client/billing/subscriptions', 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/subscriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/subscriptions"
req, _ := http.NewRequest("GET", 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.get("https://console.advinservers.com/api/v1/client/billing/subscriptions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/billing/subscriptions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sells_subscriptions": true,
"items": [
{
"uuid": "a216c52c-ccea-430f-b3bf-09aaf1025a44",
"provider": "paddle",
"status": "active",
"is_healthy": true,
"is_cancelled": false,
"is_ending": false,
"description": "Standard 4 GB · Kansas City, MO · Monthly",
"billing_cycle": "monthly",
"amount": "12.00",
"currency": "USD",
"next_charge_at": "2026-10-02T19:15:08+00:00",
"ends_at": null,
"cancelled_at": null,
"last_paid_at": "2026-09-02T19:15:08+00:00",
"can_cancel": true,
"services": [
{
"service_id": 7312,
"name": "Standard 4 GB",
"hostname": "lambda-core.blackmesa.example.com",
"status": "Active",
"next_due_date": "2026-10-02",
"server_id": "ecc6f4f1",
"server": {
"id": "ecc6f4f1",
"name": "lambda-core",
"hostname": "lambda-core.blackmesa.example.com",
"location": "Kansas City, MO",
"windows": false,
"template_name": "Ubuntu 24.04",
"template_icon_url": "https://img.icons8.com/color/48/ubuntu.png"
},
"is_known": true
}
],
"cancellation_service_id": null
}
]
}{
"message": "Unauthenticated."
}{
"message": "This API key is not allowed to do that in this team. It needs the \"snapshot.delete\" permission."
}{
"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.
Response
The record, as a JSON object. There is no envelope.
The value of sells_subscriptions.
true
Subscriptions, active ones first, with the service covered and the next payment date.
Show child attributes
Show child attributes
[
{
"uuid": "a216c52c-ccea-430f-b3bf-09aaf1025a44",
"provider": "paddle",
"status": "active",
"is_healthy": true,
"is_cancelled": false,
"is_ending": false,
"description": "Standard 4 GB · Kansas City, MO · Monthly",
"billing_cycle": "monthly",
"amount": "12.00",
"currency": "USD",
"next_charge_at": "2026-10-02T19:15:08+00:00",
"ends_at": null,
"cancelled_at": null,
"last_paid_at": "2026-09-02T19:15:08+00:00",
"can_cancel": true,
"services": [
{
"service_id": 7312,
"name": "Standard 4 GB",
"hostname": "lambda-core.blackmesa.example.com",
"status": "Active",
"next_due_date": "2026-10-02",
"server_id": "ecc6f4f1",
"server": {
"id": "ecc6f4f1",
"name": "lambda-core",
"hostname": "lambda-core.blackmesa.example.com",
"location": "Kansas City, MO",
"windows": false,
"template_name": "Ubuntu 24.04",
"template_icon_url": "https://img.icons8.com/color/48/ubuntu.png"
},
"is_known": true
}
],
"cancellation_service_id": null
}
]