Billing Report
curl --request GET \
--url https://api.myustadia.com/api/v1/billing \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.myustadia.com/api/v1/billing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.myustadia.com/api/v1/billing', 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://api.myustadia.com/api/v1/billing",
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://api.myustadia.com/api/v1/billing"
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://api.myustadia.com/api/v1/billing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.myustadia.com/api/v1/billing")
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{
"month": "2026-06",
"client_id": "acme_corp",
"summary": {
"courses_total": 12,
"courses_ready": 11,
"courses_partial": 0,
"courses_error": 1,
"distinct_external_refs": 5,
"total_modules": 48
},
"quota_seconds": {
"quota_seconds": 7200,
"consumed_seconds": 3428,
"remaining_seconds": 3772,
"percent_consumed": 48,
"over_quota": false,
"unlimited": false
},
"breakdown_by_ref": [
{
"external_ref": "acme-emea",
"courses": 3,
"courses_ready": 3,
"modules": 12
}
],
"note": "quota_seconds.percent_consumed is the authoritative usage figure."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Billing
Billing Report
Monthly billing report for this API client.
The authoritative usage view is quota_seconds: the seconds bucket. Fields:
quota_seconds, consumed_seconds, remaining_seconds, percent_consumed
(0-100, the figure to show the client), over_quota (true when the account
is at or below the start floor; new generations and preset creation are
blocked), unlimited (true when the account has no quota cap at all —
distinct from a quota of 0, which means the account is fully blocked pending
subscription and reads percent_consumed: 100, over_quota: True).
Use percent_consumed / remaining_seconds to show how much the client has left.
Also returns the course summary and the per-external_ref breakdown_by_ref.
Example: GET /api/v1/billing?month=2026-04
GET
/
api
/
v1
/
billing
Billing Report
curl --request GET \
--url https://api.myustadia.com/api/v1/billing \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.myustadia.com/api/v1/billing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.myustadia.com/api/v1/billing', 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://api.myustadia.com/api/v1/billing",
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://api.myustadia.com/api/v1/billing"
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://api.myustadia.com/api/v1/billing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.myustadia.com/api/v1/billing")
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{
"month": "2026-06",
"client_id": "acme_corp",
"summary": {
"courses_total": 12,
"courses_ready": 11,
"courses_partial": 0,
"courses_error": 1,
"distinct_external_refs": 5,
"total_modules": 48
},
"quota_seconds": {
"quota_seconds": 7200,
"consumed_seconds": 3428,
"remaining_seconds": 3772,
"percent_consumed": 48,
"over_quota": false,
"unlimited": false
},
"breakdown_by_ref": [
{
"external_ref": "acme-emea",
"courses": 3,
"courses_ready": 3,
"modules": 12
}
],
"note": "quota_seconds.percent_consumed is the authoritative usage figure."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}