All integrationsPayments & Billing

Metronome

Run usage-based billing in Metronome: create customers, billable metrics, products, rate cards and contracts, send and read usage, grant credits, check balances and read invoices.

actions
30

Actions

Steps a workflow can run in Metronome.

  • Create customerCreate a customer in Metronome. Give the aliases your usage events use to name them, such as your own account id.
  • Get customerGet one customer with its name, usage aliases and dates.
  • List customersList customers, optionally those with one usage alias or only archived ones.
  • Rename customerChange a customer's name.
  • Archive customerArchive a customer. Metronome keeps its records for audit, and usage is no longer billed to them.
  • Create billable metricDefine what Metronome measures: events of one type, counted or aggregated over a property such as tokens used.
  • Get billable metricGet one billable metric with its event filter and aggregation.
  • List billable metricsList the billable metrics Metronome measures.
  • Archive billable metricArchive a billable metric so no new product can use it.
  • Create productCreate something customers are charged for: a usage product that charges per unit of a billable metric, or a fixed product.
  • Get productGet one product with its current name and billable metric.
  • List productsList products, active ones unless you choose otherwise.
  • Archive productArchive a product. Rate cards stop offering it.
  • Create rate cardCreate a rate card, the price list contracts take their rates from. It prices in US dollars.
  • List rate cardsList rate cards with their names, currencies and aliases.
  • Add rateSet a product's flat price on a rate card from a time on. Prices are in the smallest unit of the rate card's currency, such as cents.
  • Get ratesGet the rates a rate card has at one moment, such as now.
  • Archive rate cardArchive a rate card so no new contract can use it.
  • Create contractPut a customer on a rate card from a start time, so their usage is priced and invoiced.
  • Get contractGet one contract of a customer with its rate card, term and credits.
  • List contractsList a customer's contracts.
  • Archive contractPermanently end and archive a contract. This cannot be undone.
  • Create creditGive a customer credit that offsets what they owe, for a period. The amount is in the smallest unit of the currency, such as cents.
  • List creditsList the credits a customer has been given, with what is left of each.
  • Get net balanceGet what a customer can still spend across all their credits and commits right now, in cents for US dollars.
  • Send usage eventReport one usage event, such as an API call. An event with a transaction id Metronome has seen is not counted twice.
  • Search usage eventsLook up reported usage events by transaction id, to see how Metronome processed them and which billable metrics they matched. Events show up within seconds.
  • Get usageGet how much of a billable metric a customer used over a period.
  • List invoicesList a customer's invoices, including the draft one Metronome keeps up to date for the current period.
  • Get invoiceGet one invoice with its line items and total.

Automate Metronome with Lodol.

Connect Metronome, then hand Lodol the job in Slack, Claude or ChatGPT.

Free plan, no credit card