Treasury
The balance partitioned: fee earmark, working balance, committed outflow, and payout headroom.
- 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_warningis 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_warningis raised when it goes negative, meaning committed payouts will fail at dispatch unless funds arrive first.
Authorizations
Cleff API key issued to a Business that self-registers via POST /v1/registration
Response
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.
Available balance minus the in-progress invoice, in minor units. Signed — negative is the low-balance condition. Null when no account is provisioned.
Monthly-invoice total accrued for the in-progress period, in minor units (bucket c).
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.
Forecast collection date for the in-progress invoice (first of next month, UTC).
True when the working balance is negative — earmarked fees exceed what's available.
Payouts committed but not yet debited from the balance mirror, in minor units.
Number of payouts making up the committed outflow.
What a new payout can safely draw on: working balance minus committed outflow, in minor units. Signed. Null when no account is provisioned.
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.