basalt / subscriptions/src / invoiceRoutes
Function: invoiceRoutes()
> invoiceRoutes(options?): BasaltRoute[]
Defined in: subscriptions/src/plugin.ts:389
Read-only invoice endpoints for the current tenant, built on the neutral route() from @basaltkit/http — so they serve identically on the Fastify, Express and Hono adapters:
GET /billing/invoices— list this tenant's invoices (newest first)GET /billing/invoices/:id— one invoice as JSONGET /billing/invoices/:id/html— a printable HTML invoice
Ownership is enforced against the current tenant; another tenant's invoice reads as 404. Issuing/finalizing invoices stays server-side via INVOICES.
Parameters
options?
auth?
boolean