OrganizationBalance
An organization's ledger position: the figure it can spend, that figure converted to the organization's own currency for display, and the ledger totals split per currency. Amounts are signed decimals; nothing is summed across currencies.
spendable objectrequired
The ledger balance in the platform currency (EUR): the sum of every ledger entry of the organization in that currency, 0 when it has none. This is the figure the platform spends against. For a prepaid organization it is the credit left (top-ups and gifts minus what calls were charged) and the organization is refused with 402 once it has none. For a post-paid (enterprise) organization it is typically negative: usage is debited as it happens and the debit is settled on the monthly invoice.
Signed balance. Positive is credit remaining, negative is an amount owed and not yet settled.
ISO 4217 code of the platform currency the balance is held in (always EUR).
Possible values: [EUR, USD, GBP, CHF, CAD, AUD, JPY]
approximate objectrequired
spendable rendered in the organization's own currency, for display only. null when the organization's currency is already the platform currency (EUR), or when no conversion rate is configured for the pair. A null is not an error; show spendable instead.
- object
- null
spendable.amount multiplied by rate, rounded.
The organization's own billing currency (organization.currency).
Possible values: [EUR, USD, GBP, CHF, CAD, AUD, JPY]
The rate applied, from the platform currency to currency.
byCurrency objectrequired
Signed ledger balance per currency, one entry per currency the organization has any ledger activity in (for example royalties priced in USD next to the EUR platform fee). spendable.amount is the EUR entry, or 0 when there is none.
expenses objectrequired
Running total of what the organization was charged, per currency, as positive amounts: the sum of every debit for platform fees, compute and royalties paid to data owners. Per currency, it matches the sum of the cost[].total of every event of the organization's consumption feed, compute charges included. Credits are not netted out.
revenues objectrequired
Running total of royalties the organization earned as a data owner, per currency, as positive amounts. Includes royalties the platform paid it on calls it absorbed.
{
"spendable": {
"amount": 0,
"currency": "EUR"
},
"approximate": {
"amount": 0,
"currency": "EUR",
"rate": 0
},
"byCurrency": {
"EUR": 1.27325665
},
"expenses": {
"EUR": 1.27325665
},
"revenues": {
"EUR": 1.27325665
}
}