curl --request GET \
--url https://console.advinservers.com/api/v1/client/invoices \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/invoices"
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/invoices', 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/invoices",
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/invoices"
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/invoices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/invoices")
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{
"statuses": [
"Draft",
"Unpaid",
"Overdue",
"Paid",
"Cancelled",
"Refunded",
"Collections",
"Payment Pending"
],
"truncated": false,
"scan_limit": 500,
"items": [
{
"id": 18342,
"number": "18342",
"status": "Unpaid",
"date": "2026-09-11T00:00:00+00:00",
"due_date": "2026-10-02T00:00:00+00:00",
"date_paid": null,
"subtotal": "12.00",
"credit": "0.00",
"tax": "0.00",
"total": "12.00",
"currency": "USD",
"payment_method": "Paddle",
"url": "https://clients.advinservers.com/viewinvoice.php?id=18342"
},
{
"id": 17906,
"number": "17906",
"status": "Paid",
"date": "2026-08-12T00:00:00+00:00",
"due_date": "2026-09-02T00:00:00+00:00",
"date_paid": "2026-09-02T19:15:08+00:00",
"subtotal": "12.00",
"credit": "0.00",
"tax": "0.00",
"total": "12.00",
"currency": "USD",
"payment_method": "Paddle",
"url": "https://clients.advinservers.com/viewinvoice.php?id=17906"
}
]
}{
"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 invoices
Overview
Lists account invoices, newest first, without filters or pagination. The list is the same for every team on the account.
Each invoice includes totals. Line items, payments and the remaining balance are omitted; fetch an individual invoice for those details. statuses lists possible statuses. scan_limit indicates how far back the lookup checked. truncated is true if more invoices exist than the lookup returned.
Permissions
Requires the account permission invoices.read (View invoices).
curl --request GET \
--url https://console.advinservers.com/api/v1/client/invoices \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.advinservers.com/api/v1/client/invoices"
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/invoices', 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/invoices",
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/invoices"
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/invoices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.advinservers.com/api/v1/client/invoices")
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{
"statuses": [
"Draft",
"Unpaid",
"Overdue",
"Paid",
"Cancelled",
"Refunded",
"Collections",
"Payment Pending"
],
"truncated": false,
"scan_limit": 500,
"items": [
{
"id": 18342,
"number": "18342",
"status": "Unpaid",
"date": "2026-09-11T00:00:00+00:00",
"due_date": "2026-10-02T00:00:00+00:00",
"date_paid": null,
"subtotal": "12.00",
"credit": "0.00",
"tax": "0.00",
"total": "12.00",
"currency": "USD",
"payment_method": "Paddle",
"url": "https://clients.advinservers.com/viewinvoice.php?id=18342"
},
{
"id": 17906,
"number": "17906",
"status": "Paid",
"date": "2026-08-12T00:00:00+00:00",
"due_date": "2026-09-02T00:00:00+00:00",
"date_paid": "2026-09-02T19:15:08+00:00",
"subtotal": "12.00",
"credit": "0.00",
"tax": "0.00",
"total": "12.00",
"currency": "USD",
"payment_method": "Paddle",
"url": "https://clients.advinservers.com/viewinvoice.php?id=17906"
}
]
}{
"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 statuses.
[
"Draft",
"Unpaid",
"Overdue",
"Paid",
"Cancelled",
"Refunded",
"Collections",
"Payment Pending"
]
The value of truncated.
false
The value of scan_limit.
500
The invoices, newest first, without their line items or payments.
Show child attributes
Show child attributes
[
{
"id": 18342,
"number": "18342",
"status": "Unpaid",
"date": "2026-09-11T00:00:00+00:00",
"due_date": "2026-10-02T00:00:00+00:00",
"date_paid": null,
"subtotal": "12.00",
"credit": "0.00",
"tax": "0.00",
"total": "12.00",
"currency": "USD",
"payment_method": "Paddle",
"url": "https://clients.advinservers.com/viewinvoice.php?id=18342"
},
{
"id": 17906,
"number": "17906",
"status": "Paid",
"date": "2026-08-12T00:00:00+00:00",
"due_date": "2026-09-02T00:00:00+00:00",
"date_paid": "2026-09-02T19:15:08+00:00",
"subtotal": "12.00",
"credit": "0.00",
"tax": "0.00",
"total": "12.00",
"currency": "USD",
"payment_method": "Paddle",
"url": "https://clients.advinservers.com/viewinvoice.php?id=17906"
}
]
[
{
"id": 18342,
"number": "18342",
"status": "Unpaid",
"date": "2026-09-11T00:00:00+00:00",
"due_date": "2026-10-02T00:00:00+00:00",
"date_paid": null,
"subtotal": "12.00",
"credit": "0.00",
"tax": "0.00",
"total": "12.00",
"currency": "USD",
"payment_method": "Paddle",
"url": "https://clients.advinservers.com/viewinvoice.php?id=18342"
}
]