Herald
OpenapiBilling

Get the bucket overview matrix.

Returns `{ rows: OverviewRow[], grandTotal: ByCreditType }` — `grandTotal` is a SEPARATE top-level field, not appended to rows.

GET
/api/bill/credit-buckets/overview

Returns { rows: OverviewRow[], grandTotal: ByCreditType } — grandTotal is a SEPARATE top-level field, not appended to rows.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Response Body

Overview matrix

application/json
  1. response

Overview response: rows per bucket + a SEPARATE grandTotal field (grandTotal is NOT appended as an extra row).

grandTotal*

Per-credit-type balance totals surfaced in the overview matrix.

rows*array<>
Example Request
curl -X GET 'https://example.com/api/bill/credit-buckets/overview'
Example Response
{
  "grandTotal": {
    "freePeriodic": 0,
    "granted": 0,
    "registration": 0,
    "subscription": 0,
    "topup": 0
  },
  "rows": [
    {
      "bucketId": "1980377d-7926-47e0-9e64-a9d0c746404d",
      "bucketTotal": 0,
      "byCreditType": {
        "freePeriodic": 0,
        "granted": 0,
        "registration": 0,
        "subscription": 0,
        "topup": 0
      },
      "enabled": true,
      "name": "string"
    }
  ]
}