curl --request GET \
--url https://api.mountthor.com/v1/admin/billing/costs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountthor.com/v1/admin/billing/costs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountthor.com/v1/admin/billing/costs', 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.mountthor.com/v1/admin/billing/costs",
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.mountthor.com/v1/admin/billing/costs"
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.mountthor.com/v1/admin/billing/costs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountthor.com/v1/admin/billing/costs")
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{
"currency": "USD",
"customer_id": "<string>",
"line_items": [
{
"amount_cents": 123,
"priced": true,
"quantity_seconds": 123,
"resource_class": "mac-m4-pro",
"resource_kind": "bare_metal_machine",
"tenant_id": "22222222-2222-2222-2222-222222222222",
"tenant_slug": "acme-prod",
"unit": "hour",
"unit_price_cents": 123,
"usage_model": "reserved"
}
],
"period": {
"end": "2026-06-04T00:00:00Z",
"requested": "current",
"start": "2026-06-01T00:00:00Z"
},
"total_cents": 123
}"<string>"List Billing Costs
Joins live usage against the customer’s active price book and returns itemized line items per (tenant, resource_kind, resource_class, usage_model). The math is recomputed live on every request for both the current period and past months. Issued invoices are served by the invoice routes, not this one.
curl --request GET \
--url https://api.mountthor.com/v1/admin/billing/costs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountthor.com/v1/admin/billing/costs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountthor.com/v1/admin/billing/costs', 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.mountthor.com/v1/admin/billing/costs",
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.mountthor.com/v1/admin/billing/costs"
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.mountthor.com/v1/admin/billing/costs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountthor.com/v1/admin/billing/costs")
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{
"currency": "USD",
"customer_id": "<string>",
"line_items": [
{
"amount_cents": 123,
"priced": true,
"quantity_seconds": 123,
"resource_class": "mac-m4-pro",
"resource_kind": "bare_metal_machine",
"tenant_id": "22222222-2222-2222-2222-222222222222",
"tenant_slug": "acme-prod",
"unit": "hour",
"unit_price_cents": 123,
"usage_model": "reserved"
}
],
"period": {
"end": "2026-06-04T00:00:00Z",
"requested": "current",
"start": "2026-06-01T00:00:00Z"
},
"total_cents": 123
}"<string>"Authorizations
Bearer scheme name used by typed customer admin operations.
Query Parameters
current or a closed calendar month YYYY-MM.
Response
Customer-aggregated itemized billing costs
Customer-level itemized cost response.
ISO 4217 currency code; today always USD per umbrella
scoping decision.
"USD"
Stable UUID for the customer account.
Itemized line items, ordered by (tenant_slug, resource_kind, resource_class, usage_model) for stable client rendering.
Show child attributes
Show child attributes
Window covered by the response.
Show child attributes
Show child attributes
Customer total = sum of amount_cents across all line items.