The app's statement for a billing period.
What finished this billing period, in the ledger's own unit, against the app's price card: the flat part, the included volume, and the overage. A period is a month counted from the day the app went on its card. An app on credits gets a statement with no card, no period and no lines, which is how a client tells "nothing to bill" from "not found"; a card scheduled to start is named as upcoming. Provisional until the period has ended and its last day has been finalized.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The app id.
uuidThe tenant identifier
Query Parameters
Any instant (Unix ms) in the period wanted; omit for the period in progress.
int64Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/networks/497f6eca-6276-4993-bfeb-53cbbbba6f08/statement"{
"networkId": "00000000-0000-0000-0000-000000000000",
"appName": "string",
"periodStartMs": 0,
"periodEndMs": 0,
"card": {
"effectiveFromMs": 0,
"endsAtMs": 0
},
"upcomingCard": {
"effectiveFromMs": 0,
"endsAtMs": 0
},
"currency": "USD",
"lines": [
{
"meter": "LEDGER_OUTCOME",
"ledgerId": "00000000-0000-0000-0000-000000000000",
"ledgerName": "string",
"unit": {
"singular": "string",
"plural": "string"
},
"outcomes": 0,
"includedPerMonth": 0,
"overage": 0,
"overagePrice": 0,
"amount": 0
}
],
"trial": {
"meter": "LEDGER_OUTCOME",
"ledgerId": "00000000-0000-0000-0000-000000000000",
"units": 0,
"used": 0,
"endsAtMs": 0,
"ended": false
},
"flat": 0,
"total": 0,
"isProvisional": false,
"cost": {
"creditsCharged": 0,
"creditsPerOutcome": 0,
"creditsPerExecution": 0
}
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}The Application's calendar month so far, in dollars and credits, projected to the month's end.
The agent cost card's forecast for the whole Application: the same projection over four weeks of daily history, in the same shape. Production runs only, and no budget line — an Application has no cap of its own.
Support KPI rollup for the Application over an optional window (defaults to the last 30 days).
Containment / escalation / degrade / override rates, time-to-human percentiles, live operator load, cost per resolved conversation, and the currently-awaiting-a-human gauge. Rates are null when their denominator is zero. `from`/`to` are Unix ms (half-open); `origin` filters spend only. All time is `from=0`: a window reaching back before the Application existed is counted from the day it was created.