Get usage cost
curl --request GET \
--url https://api.ornn.com/commerce/billing/showback \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ornn.com/commerce/billing/showback"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ornn.com/commerce/billing/showback', 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.ornn.com/commerce/billing/showback",
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.ornn.com/commerce/billing/showback"
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.ornn.com/commerce/billing/showback")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/commerce/billing/showback")
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{
"windowStart": "2026-10-01",
"windowEnd": "2026-10-14",
"rows": [
{
"reservationId": "11111111-1111-4111-8111-111111111111",
"status": "active",
"gpuCount": 8,
"unit": "gpu",
"windowStart": "2026-10-07",
"windowEnd": "2026-10-14",
"gpuHours": 1344,
"costCents": 336000,
"sharePct": "100.00"
}
],
"totalGpuHours": 1344,
"totalCostCents": 336000
}{
"error": "start must be YYYY-MM-DD"
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}Get usage cost
Returns unit-hours (GPU-hours, or vCPU-hours for CPU capacity) and usage cost per reservation for the part of each reservation inside the date range, using the reserved GPU or vCPU count and agreed price. This is informational, not an invoice.
GET
/
commerce
/
billing
/
showback
Get usage cost
curl --request GET \
--url https://api.ornn.com/commerce/billing/showback \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ornn.com/commerce/billing/showback"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ornn.com/commerce/billing/showback', 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.ornn.com/commerce/billing/showback",
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.ornn.com/commerce/billing/showback"
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.ornn.com/commerce/billing/showback")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/commerce/billing/showback")
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{
"windowStart": "2026-10-01",
"windowEnd": "2026-10-14",
"rows": [
{
"reservationId": "11111111-1111-4111-8111-111111111111",
"status": "active",
"gpuCount": 8,
"unit": "gpu",
"windowStart": "2026-10-07",
"windowEnd": "2026-10-14",
"gpuHours": 1344,
"costCents": 336000,
"sharePct": "100.00"
}
],
"totalGpuHours": 1344,
"totalCostCents": 336000
}{
"error": "start must be YYYY-MM-DD"
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}Authorizations
Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.
Query Parameters
First day of the range, YYYY-MM-DD.
Last day of the range, YYYY-MM-DD, on or after start.
Was this page helpful?