getBillingAccount
const url = 'https://example.com/apis/nodus.dev/v1/billingaccounts/default';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/apis/nodus.dev/v1/billingaccounts/defaultResponses
Section titled “ Responses ”The organization’s billing account.
object
object
LiquidBillingSummary reports settled ledger activity in the current UTC calendar month. Earned credits do not expire at the period boundary. Applications are posted spending, never pending funding holds.
object
AppliedToOtherChargesUSD is earned credit captured for other eligible charges, net of corrections.
AppliedToReservationsUSD is earned credit captured for reservation charges, net of corrections.
BaseReservationChargesUSD is posted base reservation usage, including signed charge corrections.
EarnedCreditsUSD is lending compensation posted during this reporting period.
EarningsCorrectionsUSD is the signed adjustment to lending earnings posted during this period.
NetEarnedCreditsUSD is EarnedCreditsUSD plus EarningsCorrectionsUSD.
NetReservationChargesUSD is base reservation charges less earned credits actually applied to them.
PeriodEndTime is the exclusive end of the current UTC calendar month.
PeriodStartTime is the inclusive start of the current UTC calendar month.
RemainingEarnedBalanceUSD is unspent earned credit, including carryover and amounts currently held.
ReservationCoveredBasisPoints is omitted when net monthly charges cannot define a percentage.
ReservedEarnedBalanceUSD is held for work but has not yet paid a charge.
Example generated
{ "status": { "liquidCapacity": { "appliedToOtherChargesUSD": "example", "appliedToReservationsUSD": "example", "baseReservationChargesUSD": "example", "earnedCreditsUSD": "example", "earningsCorrectionsUSD": "example", "netEarnedCreditsUSD": "example", "netReservationChargesUSD": "example", "periodEndTime": "example", "periodStartTime": "example", "remainingEarnedBalanceUSD": "example", "reservationCoveredBasisPoints": 1, "reservedEarnedBalanceUSD": "example" } }}default
Section titled “ default ”An error: a metav1.Status whose reason is a registered code.
Status is the error body of every API response: a Kubernetes metav1.Status (so kubectl and client-go understand it) plus three top-level extensions that those clients ignore (ADR-028).
object
object
object
Docs is the URL of the code’s docs page.
Fix says what to do next, for example a CLI command or the field to change.
object
object
RequestID identifies the request in logs and support tickets.
Example generated
{ "apiVersion": "example", "code": 1, "details": { "causes": [ { "field": "example", "message": "example", "reason": "example" } ], "group": "example", "kind": "example", "name": "example", "retryAfterSeconds": 1, "uid": "example" }, "docs": "example", "fix": "example", "kind": "example", "message": "example", "metadata": { "continue": "example", "remainingItemCount": 1, "resourceVersion": "example", "selfLink": "example", "shardInfo": { "selector": "example" } }, "reason": "example", "requestId": "example", "status": "example"}