Skip to main content
GET
Get the current Business's earmarked balance
The treasury view partitions your Cleff Account balance into what a new payout can actually draw on:
  • Earmarked balance: what Cleff has reserved for your next monthly invoice’s fees. Fees accrue regardless of account state, so this reports even before an account is provisioned.
  • Working balance: the available balance minus the fee earmark. Signed; low_balance_warning is raised when it goes negative.
  • Committed outflow: payouts committed but not yet debited from the balance, with the count of payouts behind the figure.
  • Headroom: working balance minus committed outflow, which is what a new payout can safely draw on. headroom_warning is raised when it goes negative, meaning committed payouts will fail at dispatch unless funds arrive first.
Payout creation does not reserve funds. Headroom is the read you check before committing volume, and a shortfall surfaces at dispatch, not at creation. The view is scoped to the Business and environment of the credential; a sandbox credential reads the sandbox partition, never production.

Authorizations

Authorization
string
header
required

Cleff API key issued to a Business that self-registers via POST /v1/registration

Response

currency
string
required
account_provisioned
boolean
required

False until the Business has a provisioned dedicated account. When false the working balance is null and no low-balance warning is raised, but the earmarked fee buckets still report.

working_balance_minor
number | null
required

Available balance minus the in-progress invoice, in minor units. Signed — negative is the low-balance condition. Null when no account is provisioned.

accrued_invoice_total_minor
number
required

Monthly-invoice total accrued for the in-progress period, in minor units (bucket c).

accrued_subscription_total_minor
number
required

The subscription slice of the accrued invoice total, in minor units. The rest of the invoice total is usage-driven fees. Lets the caller show what portion of the earmark is the recurring subscription.

next_invoice_forecast_date
string<date-time>
required

Forecast collection date for the in-progress invoice (first of next month, UTC).

low_balance_warning
boolean
required

True when the working balance is negative — earmarked fees exceed what's available.

committed_outflow_minor
number
required

Payouts committed but not yet debited from the balance mirror, in minor units.

committed_payout_count
number
required

Number of payouts making up the committed outflow.

headroom_minor
number | null
required

What a new payout can safely draw on: working balance minus committed outflow, in minor units. Signed. Null when no account is provisioned.

headroom_warning
boolean
required

True when the headroom is negative — committed payouts exceed what's available after the fee earmark, so they will fail at dispatch unless funds arrive first.