FruxonDocs
Agent NetworkGraph

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.

GET
/v1/tenants/{tenant}/networks/{network}/statement
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

network*string

The app id.

Formatuuid
tenant*string

The tenant identifier

Query Parameters

at?integer

Any instant (Unix ms) in the period wanted; omit for the period in progress.

Formatint64

Response 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
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}