curl --request GET \
--url https://console.advinservers.com/api/v1/client/servers/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/servers/catalog"
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/servers/catalog', 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/catalog",
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/servers/catalog"
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/servers/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/servers/catalog")
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{
"enabled": true,
"currency": "USD",
"payment_window_minutes": 30,
"billing_cycles": [
{
"value": "monthly",
"label": "Monthly",
"months": 1
},
{
"value": "quarterly",
"label": "Quarterly",
"months": 3
},
{
"value": "semiannually",
"label": "Semi-annually",
"months": 6
},
{
"value": "annually",
"label": "Yearly",
"months": 12
}
],
"default_billing_cycle": "monthly",
"default_team": {
"id": "fbb31f5f-bd6f-4019-a3ed-1062a28f56f7",
"name": "Anomalous Materials",
"is_active": true
},
"message": null,
"groups": [
{
"id": "2",
"name": "Standard VPS",
"description": "NVMe storage, DDR5 memory and a 10 Gbps port on every plan.",
"subtext": null,
"speed": "10 Gbps",
"ddr5": true,
"locations": [
{
"id": "2-3",
"display_name": "Kansas City, MO",
"name": "Kansas City, MO",
"flag_url": null,
"cid": 3,
"group_name": "Standard VPS",
"location_id": 3,
"product_group_id": 2,
"plans": [
{
"key": "032f97c3b0f718ae9a2edfba83d5adf321025b5d9af1e90d397e79b8667bb3a4",
"id": "standard-4gb",
"name": "Standard 4 GB",
"vcpu_cores": 4,
"memory": 4000,
"disk": 80,
"bandwidth": 5000,
"hdd": false,
"primary_disk": 80,
"hdd_disk": 0,
"price": "12.00",
"deployment_time": "Instant",
"whmcs_id": "48",
"available": true,
"stock": 14
}
]
}
]
}
]
}{
"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 server plans
Overview
Lists available plans and prices. groups contains plans grouped by product and location. billing_cycles lists the available payment periods and their lengths in months. default_billing_cycle is used when an order does not specify a cycle. currency applies to all prices. payment_window_minutes is the time allowed to pay for an order.
New servers are created in default_team. The request cannot change this destination. SSH keys and scripts are resolved in the requesting team, so ordering from another team can select resources outside the server’s destination team.
When ordering is unavailable, enabled is false, message explains why, and no plans are returned.
Permissions
Requires the server.read (View servers) permission for the selected team. Resources outside that team return 404.
curl --request GET \
--url https://console.advinservers.com/api/v1/client/servers/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/servers/catalog"
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/servers/catalog', 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/catalog",
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/servers/catalog"
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/servers/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/servers/catalog")
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{
"enabled": true,
"currency": "USD",
"payment_window_minutes": 30,
"billing_cycles": [
{
"value": "monthly",
"label": "Monthly",
"months": 1
},
{
"value": "quarterly",
"label": "Quarterly",
"months": 3
},
{
"value": "semiannually",
"label": "Semi-annually",
"months": 6
},
{
"value": "annually",
"label": "Yearly",
"months": 12
}
],
"default_billing_cycle": "monthly",
"default_team": {
"id": "fbb31f5f-bd6f-4019-a3ed-1062a28f56f7",
"name": "Anomalous Materials",
"is_active": true
},
"message": null,
"groups": [
{
"id": "2",
"name": "Standard VPS",
"description": "NVMe storage, DDR5 memory and a 10 Gbps port on every plan.",
"subtext": null,
"speed": "10 Gbps",
"ddr5": true,
"locations": [
{
"id": "2-3",
"display_name": "Kansas City, MO",
"name": "Kansas City, MO",
"flag_url": null,
"cid": 3,
"group_name": "Standard VPS",
"location_id": 3,
"product_group_id": 2,
"plans": [
{
"key": "032f97c3b0f718ae9a2edfba83d5adf321025b5d9af1e90d397e79b8667bb3a4",
"id": "standard-4gb",
"name": "Standard 4 GB",
"vcpu_cores": 4,
"memory": 4000,
"disk": 80,
"bandwidth": 5000,
"hdd": false,
"primary_disk": 80,
"hdd_disk": 0,
"price": "12.00",
"deployment_time": "Instant",
"whmcs_id": "48",
"available": true,
"stock": 14
}
]
}
]
}
]
}{
"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 enabled.
true
The three-letter currency code used for monetary amounts.
"USD"
How many minutes the original payment window allowed.
30
The value of billing_cycles.
Show child attributes
Show child attributes
[
{
"value": "monthly",
"label": "Monthly",
"months": 1
},
{
"value": "quarterly",
"label": "Quarterly",
"months": 3
},
{
"value": "semiannually",
"label": "Semi-annually",
"months": 6
},
{
"value": "annually",
"label": "Yearly",
"months": 12
}
]
The value of default_billing_cycle.
"monthly"
The value of default_team.
Show child attributes
Show child attributes
{
"id": "fbb31f5f-bd6f-4019-a3ed-1062a28f56f7",
"name": "Anomalous Materials",
"is_active": true
}
The message text.
null
The value of groups.
Show child attributes
Show child attributes
[
{
"id": "2",
"name": "Standard VPS",
"description": "NVMe storage, DDR5 memory and a 10 Gbps port on every plan.",
"subtext": null,
"speed": "10 Gbps",
"ddr5": true,
"locations": [
{
"id": "2-3",
"display_name": "Kansas City, MO",
"name": "Kansas City, MO",
"flag_url": null,
"cid": 3,
"group_name": "Standard VPS",
"location_id": 3,
"product_group_id": 2,
"plans": [
{
"key": "032f97c3b0f718ae9a2edfba83d5adf321025b5d9af1e90d397e79b8667bb3a4",
"id": "standard-4gb",
"name": "Standard 4 GB",
"vcpu_cores": 4,
"memory": 4000,
"disk": 80,
"bandwidth": 5000,
"hdd": false,
"primary_disk": 80,
"hdd_disk": 0,
"price": "12.00",
"deployment_time": "Instant",
"whmcs_id": "48",
"available": true,
"stock": 14
}
]
}
]
}
]