Lucius API

Introduction

Get started with the Lucius Billing API for usage-based and subscription billing.

The Lucius Billing API powers the Contract-to-Cash (C2C) billing engine. It lets you programmatically submit usage events, query contracts and their pricing programs, and retrieve invoices with line items.

Who is this for?

If you have a Lucius contract with usage-based pricing, you'll use this API to report metered usage from your systems. Lucius rates each event against your pricing program, updates draft invoices in real time, and handles subscription charges automatically.

What can you do?

ResourceActions
Usage eventsSubmit metered usage (bulk), list events, get event by ID
ContractsList your contracts, get contract details, view active pricing
InvoicesList invoices, get invoice detail with line items

How it works

Your system submits usage → Lucius rates it → Invoice updated
  1. Submit usage — POST events with a metric name, quantity, and timestamp
  2. Automatic rating — Each event is rated immediately against your contract's pricing rules
  3. Invoice projection — The matching draft invoice is updated with the new charge
  4. Billing cycle — At period end, invoices include both subscription and usage charges

Base URL

https://api.lucius.finance

All endpoints are under /v1/billing.

Next steps

On this page