Docs / Read Statement
Read Statement
Read Statement
- Auth
- cookie session
- Cache-Control
no-store- Source of truth
clients/openapi.jsonanddocs/API.md§12
The customer's monthly statement: billable lines, traffic and a reproducible digest.
Cookie-session authenticated and parameterless apart from `month, so it reads exactly one customer's rows -- the same isolation argument as GET /v1/account/usage, applied to the narrower statement (see app.statements for the query-by-customer-key-ids detail). This route never calls _meter`: reading a bill is not billable, and the customer who needs it most is the one who has spent their quota.
A month with no activity is a `200 with zero lines and a real digest, not a 404`: "you owe nothing this month" is an answer an accounts-payable clerk files, and a 404 would be indistinguishable from a typo.
Description: clients/openapi.json
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
month | query | no | string | 2026-11 | YYYY-MM; defaults to the current UTC month. |
Example request
curl -sS \
'https://vg.tempproject.online/v1/account/usage/statement?month=2026-11' \
-H "Cookie: cbn_session=$NEWS_SESSION"import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/account/usage/statement?month=2026-11"
def call() -> dict:
req = urllib.request.Request(URL, headers={
"Cookie": f"cbn_session={os.environ['NEWS_SESSION']}",
})
with urllib.request.urlopen(req, timeout=15) as res:
print(res.status, res.headers.get("ETag"))
return json.loads(res.read().decode("utf-8"))
if __name__ == "__main__":
body = call()
print(json.dumps(body, indent=2, ensure_ascii=False)[:2000])const res = await fetch(
"https://vg.tempproject.online/v1/account/usage/statement?month=2026-11",
{
method: "GET",
headers: {
cookie: `cbn_session=${process.env.NEWS_SESSION}`,
},
},
);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(res.headers.get("etag"), await res.json());The requests are generated from the path template and the parameters in clients/openapi.json, so a new parameter appears here without an edit to this site.
Example response
cache-control: no-store
content-type: application/octet-streamNo JSON body on this route; the headers are the ones docs/API.md §2 documents for it
Failures
This operation can answer 200, 400, 401, 422. The full envelope for each status, with its body, is on Errors.