Get Summary
Returns a billing period’s statement as billing itself states it: lines, each line invoiced for the period or previewed for its end (a fixed fee, a meter’s usage billed past its grants, a credit taken off, anything else under its own name), and billedCost, their sum, which is what the period invoices or would if it ended now. On the current period also credits, the grants the account still draws on, and a projection to the period end at the recent daily pace. Nothing here is derived from the plan’s terms: a plan billing can express, this route reports. Money is in dollars to the cent, before tax. A line is before discounts, as billing reports it, and what a reward takes off follows as an other line named Discount: off each line previewed for the period end, and off each invoice as a whole (its total under its lines’ sum), on the span of the invoice’s fixed fee when it has one, else of its first line on the period. So the sum is what the period invoiced, or will.
curl --request GET \
--url https://control.green.us-east-1.aws.prod.archil.com/api/billing/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://control.green.us-east-1.aws.prod.archil.com/api/billing/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://control.green.us-east-1.aws.prod.archil.com/api/billing/summary', 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://control.green.us-east-1.aws.prod.archil.com/api/billing/summary",
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://control.green.us-east-1.aws.prod.archil.com/api/billing/summary"
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://control.green.us-east-1.aws.prod.archil.com/api/billing/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://control.green.us-east-1.aws.prod.archil.com/api/billing/summary")
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{
"success": true,
"data": {
"currency": "<string>",
"billingPeriod": {
"start": 123,
"end": 123
},
"plan": {
"id": "<string>",
"name": "<string>"
},
"lines": [
{
"type": "fixed",
"name": "<string>",
"start": 123,
"end": 123,
"amount": 123,
"featureId": "<string>",
"quantity": 123,
"unit": "<string>",
"invoiceId": "<string>"
}
],
"billedCost": 123,
"credits": [
{
"featureId": "<string>",
"name": "<string>",
"unit": "<string>",
"granted": 123,
"remaining": 123,
"resetsAt": 123,
"expiresAt": 123
}
],
"projected": {
"billedCost": 123,
"dailyRate": 123
},
"invoices": [
{
"id": "<string>",
"status": "draft",
"hostedInvoiceUrl": "<string>"
}
]
}
}{
"success": false,
"error": "Invalid request parameters",
"code": "<string>"
}{
"success": false,
"error": "Invalid request parameters",
"code": "<string>"
}{
"success": false,
"error": "Invalid request parameters",
"code": "<string>"
}Query Parameters
Which billing period: current (the default), or a YYYY-MM-DD date (UTC) inside a past period that has been invoiced; the day a period starts on selects it. A past period's lines are read whole from the invoices issued for it, named in invoices, under the plan they were issued for, whatever the account is on now.
"2026-09-20"
Was this page helpful?
curl --request GET \
--url https://control.green.us-east-1.aws.prod.archil.com/api/billing/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://control.green.us-east-1.aws.prod.archil.com/api/billing/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://control.green.us-east-1.aws.prod.archil.com/api/billing/summary', 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://control.green.us-east-1.aws.prod.archil.com/api/billing/summary",
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://control.green.us-east-1.aws.prod.archil.com/api/billing/summary"
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://control.green.us-east-1.aws.prod.archil.com/api/billing/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://control.green.us-east-1.aws.prod.archil.com/api/billing/summary")
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{
"success": true,
"data": {
"currency": "<string>",
"billingPeriod": {
"start": 123,
"end": 123
},
"plan": {
"id": "<string>",
"name": "<string>"
},
"lines": [
{
"type": "fixed",
"name": "<string>",
"start": 123,
"end": 123,
"amount": 123,
"featureId": "<string>",
"quantity": 123,
"unit": "<string>",
"invoiceId": "<string>"
}
],
"billedCost": 123,
"credits": [
{
"featureId": "<string>",
"name": "<string>",
"unit": "<string>",
"granted": 123,
"remaining": 123,
"resetsAt": 123,
"expiresAt": 123
}
],
"projected": {
"billedCost": 123,
"dailyRate": 123
},
"invoices": [
{
"id": "<string>",
"status": "draft",
"hostedInvoiceUrl": "<string>"
}
]
}
}{
"success": false,
"error": "Invalid request parameters",
"code": "<string>"
}{
"success": false,
"error": "Invalid request parameters",
"code": "<string>"
}{
"success": false,
"error": "Invalid request parameters",
"code": "<string>"
}