Get the billing summary
Returns an organisation’s plan with its prices and limits, its credit, what this month costs so far and what it is using right now.
/_luna/orgs/{org}/billingAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
billing:readorgstringrequiredThe organisation, by its slug.
The billing summary.
organisationstringrequiredThe organisation's slug.
billingstringrequiredstripe when the cluster bills through Stripe, off when it does not bill.
planstringrequiredThe name of the plan the organisation is on.
planDetailsPlanItemrequiredA plan: what it charges, what it includes and what it limits.
Show propertiesHide properties
namestringrequiredThe plan's name, which is how you choose it.
titlestringrequiredWhat the plan is called. Its name when it has no title.
descriptionstringhighlightsstring[]Short lines that say what the plan gives.
publicbooleanrequiredWhether every organisation may choose the plan. A plan that is not public is one the operator gives an organisation.
orderinteger<int64>requiredWhere the plan comes among the plans offered, the lowest first.
ratesobjectrequiredThe price of each meter in US dollars per billed unit, by meter.
includedobjectrequiredHow many billed units of each meter a month includes at no charge, by meter.
quotasQuotasrequiredThe limits a plan sets for an organisation.
Show propertiesHide properties
requestsPerSecondnumber<double> | nullThe requests a second the organisation's tenants take together.
databaseBytesinteger<int64> | nullThe size of the organisation's databases together, in bytes.
blobBytesinteger<int64> | nullThe size of the files its lunas store together, in bytes.
egressBytesPerMonthinteger<int64> | nullThe bytes its tenants send out in a calendar month.
ingressBytesPerMonthinteger<int64> | nullThe bytes its tenants take in over a calendar month.
activeLunasinteger<int64> | nullThe lunas awake at once.
sandboxesinteger<int64> | nullThe sandboxes running at once.
totalCpuTotalLimit | nullShow propertiesHide properties
TotalLimitnulltotalMemoryMibTotalLimit | nullShow propertiesHide properties
TotalLimitnulllunaMemoryMibinteger<int64> | nullThe most memory any one luna may declare or use, in MiB (limits.memory).
lunaCpunumber<double> | nullThe most cores any one luna may declare or use (limits.cpu).
lunaDefaultMemoryMibinteger<int64> | nullThe memory a luna has when it declares none, in MiB.
lunaDefaultCpunumber<double> | nullThe cores a luna has when it declares none.
lunaReserveboolean | nullWhether lunas may reserve their limits (limits.reserve). When it is not set, they may not.
historyDaysinteger<int32> | nullHow many days back lunas can be restored or forked. An environment keeps this many days unless it asks for fewer.
monthlyCreditUsdnumber<double>requiredThe credit the plan gives each calendar month, in US dollars. Usage beyond the included amounts comes out of it first. What is left at the end of the month does not carry over.
monthlyFeeUsdnumber<double>requiredWhat the plan costs each month, in US dollars.
effectiveFromMsinteger<int64>requiredWhen this version of the plan took effect, in milliseconds since the Unix epoch.
workerEgressEgressModerequiredThe outbound connections code in workers may open.
nonetrustedopensandboxEgressEgressModerequiredThe outbound connections sandboxes may open.
nonetrustedopensandboxPublicPortsbooleanrequiredWhether sandboxes' declared ports may be given a public address.
grantGrantItem | nullShow propertiesHide properties
fromMsinteger<int64>requiredWhen the grant started, in milliseconds since the Unix epoch.
untilMsinteger<int64> | nullWhen the grant ends, in milliseconds since the Unix epoch. Null when it has no end.
endedbooleanrequiredWhether the grant has ended.
nullratesobjectrequiredThe price of each meter in US dollars per billed unit, by meter.
includedobjectrequiredHow many billed units of each meter a month includes at no charge, by meter.
unitsobjectrequiredWhat each meter's billed unit is called, by meter.
scalesobjectrequiredHow many of a meter's raw counts make one billed unit, by meter. Usage is in raw counts. Prices and included amounts are per billed unit.
quotasQuotasrequiredThe limits a plan sets for an organisation.
Show propertiesHide properties
requestsPerSecondnumber<double> | nullThe requests a second the organisation's tenants take together.
databaseBytesinteger<int64> | nullThe size of the organisation's databases together, in bytes.
blobBytesinteger<int64> | nullThe size of the files its lunas store together, in bytes.
egressBytesPerMonthinteger<int64> | nullThe bytes its tenants send out in a calendar month.
ingressBytesPerMonthinteger<int64> | nullThe bytes its tenants take in over a calendar month.
activeLunasinteger<int64> | nullThe lunas awake at once.
sandboxesinteger<int64> | nullThe sandboxes running at once.
totalCpuTotalLimit | nullShow propertiesHide properties
numberstringnulltotalMemoryMibTotalLimit | nullShow propertiesHide properties
numberstringnulllunaMemoryMibinteger<int64> | nullThe most memory any one luna may declare or use, in MiB (limits.memory).
lunaCpunumber<double> | nullThe most cores any one luna may declare or use (limits.cpu).
lunaDefaultMemoryMibinteger<int64> | nullThe memory a luna has when it declares none, in MiB.
lunaDefaultCpunumber<double> | nullThe cores a luna has when it declares none.
lunaReserveboolean | nullWhether lunas may reserve their limits (limits.reserve). When it is not set, they may not.
historyDaysinteger<int32> | nullHow many days back lunas can be restored or forked. An environment keeps this many days unless it asks for fewer.
subscriptionSubscriptionItem | nullShow propertiesHide properties
statusstring | nullThe status Stripe gives it, such as active or past_due.
feeUsdnumber<double>requiredWhat the subscription charges each month for the plan, in US dollars.
periodEndMsinteger<int64> | nullWhen the period paid for ends, in milliseconds since the Unix epoch.
endsMsinteger<int64> | nullWhen the subscription ends, if it was cancelled, in milliseconds since the Unix epoch.
thenPlanName | nullShow propertiesHide properties
namestringrequiredtitlestringrequirednullnullcreditCreditItemrequiredAn organisation's credit, in US dollars.
Show propertiesHide properties
monthlyUsdnumber<double>requiredThe credit the plan gives for this month.
monthlyLeftUsdnumber<double>requiredWhat is left of the plan's credit for this month.
toppedUpUsdnumber<double>requiredThe credit the operator added on top, in all.
toppedUpLeftUsdnumber<double>requiredWhat is left of the credit the operator added.
usedUsdnumber<double>requiredHow much of the credit is used.
owedUsdnumber<double>requiredWhat no credit covered and no card has paid yet.
creditUsdnumber<double>requiredThe plan's credit for this month and the credit the operator added, together, in US dollars.
spentUsdnumber<double>requiredHow much of the credit is used, in US dollars.
remainingCreditUsdnumber<double>requiredHow much of the credit is left, in US dollars.
monthUsdnumber<double>requiredWhat this month costs so far, in US dollars.
monthUsageobjectrequiredWhat this month used so far, as raw counts by meter.
packagesobjectrequiredA line for each package the organisation uses this month, by package.
limitsLimitsrequiredThe limits an organisation sets on its own spending.
Show propertiesHide properties
hardCapUsdnumber<double> | nullThe most the organisation spends in a calendar month, in US dollars. Its work pauses when the month reaches it. No cap when left out.
alertsUsdnumber<double>[]Amounts in US dollars. The organisation is told when the month's spending passes each one. At most 20.
inUseInUserequiredWhat an organisation is using right now.
Show propertiesHide properties
coresnumber<double>requiredThe cores its lunas used over the last half minute or so, with the sizes of the lunas that reserve and of its running sandboxes.
memoryMibinteger<int64>requiredThe memory in use, counted the same way, in MiB.
activeLunasinteger<int64>requiredThe lunas awake now.
sandboxesinteger<int64>requiredThe sandboxes running now.
limitsInUseLimitsrequiredWhat the plan allows of each. Null means no limit.
Show propertiesHide properties
coresnumber<double> | nullmemoryMibnumber<double> | nullactiveLunasinteger<int64> | nullsandboxesinteger<int64> | nullhasPaymentMethodbooleanrequiredWhether a card is on file.
paymentFailedbooleanrequiredWhether the last payment failed.
outOfCreditSinceMsinteger<int64> | nullSince when the organisation has been out of credit, in milliseconds since the Unix epoch.
pausedPaused | nullShow propertiesHide properties
codestringrequiredPaymentRequired, QuotaExceeded or Suspended.
messagestringrequiredThe reason, in words.
nullwarningsstring[]requiredWhat the organisation should know, such as a limit it is close to.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.