Get a month's bill
Returns one month of an organisation meter by meter: what it used, what its plan included and charges, and what each meter was charged. The same is given a day at a time. A plan that changed within the month is charged as it was at each hour.
/_luna/orgs/{org}/billing/usageAuthorizationBearer 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.
monthstringThe month, as YYYY-MM. This month when left out.
The month, meter by meter.
monthstringrequiredThe month, as YYYY-MM.
currentbooleanrequiredWhether it is the month in progress.
planPlanNamerequiredThe plan the organisation was on at the end of the month.
Show propertiesHide properties
namestringrequiredtitlestringrequiredincludedobjectrequiredHow many billed units of each meter the plan included, by meter.
ratesobjectrequiredThe plan's price for each meter in US dollars per billed unit, by meter.
usageobjectrequiredWhat the month used, as raw counts by meter.
chargedUsdobjectrequiredWhat each meter was charged, in US dollars, by meter.
feeUsdnumber<double>requiredThe plan's fee for the month, in US dollars.
costUsdnumber<double>requiredWhat the month cost in all, in US dollars.
extraUsdnumber<double>requiredWhat no credit covered, in US dollars, with the plan's fee left out.
daysDayUsage[]requiredThe same a day at a time, in UTC.
Show propertiesHide properties
DayUsagedaystringrequiredThe day, as YYYY-MM-DD.
costUsdobjectrequiredWhat each meter cost that day, in US dollars, by meter.
usageobjectrequiredWhat the day used, as raw counts by meter.
organisationstringrequiredThe organisation's slug.
unitsobjectrequiredWhat each meter's billed unit is called, by meter.
scalesobjectrequiredHow many of a meter's raw counts make one billed unit, by meter.
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.