Optionaloptions: { env?: string; host?: string; token?: string }ProtectedenvProtectedhostProtectedtokenCancel a subscription. Issues a refund automatically if still within the refund period.
Get the current project's credit balance.
Get the project's usage-billing-mode overrides plus platform defaults.
Get the project's credit activity (deductions/top-ups) history, paginated.
Optionalquery: CreditsHistoryQueryList all invoices for the current project.
Get the usage-based pricing table for a given currency.
ISO 4217 currency code, e.g. "USD" or "RSD".
List all subscriptions (including expired) for the current project.
Renew an expired subscription (and any others sharing its bundle
ref_no) — creates a renewal invoice and returns a checkout link.
Generate a checkout link to manually top up the project's credit balance.
Set the billing mode ("credits" | "hybrid" | "invoice") for a usage option code on the current project.
Transactions client — billing/subscriptions, invoices, credits/balance, usage pricing and per-project billing-mode overrides. All routes go through the
transactions/…gateway prefix (/luma/transactions/v1/...), matching the transactions service's REST surface (internal/controllers/{subscription,invoices,topup,credit_history,billing_modes,prices,balance}.go).This is the billing service — not distributed/database transactions.