API Reference · Billing

Get one invoice with its line items

The full invoice including the per-resource line-item breakdown. A closed month reads from storage; the in-progress month is recomputed on the fly (never persisted until it closes).

GET/v1/tenants/{name}/invoices/{id}

Authorization

x-api-keystringrequired
Your per-workspace API key, e.g. llc_AbC123…. Also accepted as Authorization: Bearer <key>. Mint keys on your workspace's API keys page — each key belongs to one workspace.

Path parameters

namestringrequired
Workspace (tenant) name.
idstringrequired
Invoice id, e.g. `acme-2026-06`.

Response

200The invoice and its line items.

idstring
e.g. acme-2026-06
periodStartstring
e.g. 2026-06-01
periodEndstring
Exclusive — first day of the following month.
subscriptionstring
e.g. pro
baseCentsinteger
Flat monthly subscription fee (not prorated).
overageCentsinteger
Time-weighted metered overage for the period.
totalCentsinteger
statusenum
open = in-progress month (provisional); issued = closed + persisted.
lineItemsarray
curl https://api.live-llm.com/v1/tenants/acme/invoices/web \
  -H "x-api-key: $LIVELLM_KEY"
Try itGEThttps://api.live-llm.com/v1/tenants/{name}/invoices/{id}
Fill required path params: name, id.
Example response200
{
  "id": "acme-2026-06",
  "periodStart": "2026-06-01",
  "periodEnd": "2026-07-01",
  "subscription": "pro",
  "baseCents": 1,
  "overageCents": 1,
  "totalCents": 1,
  "status": "open",
  "lineItems": [
    {
      "label": "Starter subscription",
      "cents": 0
    }
  ]
}