Documentation Index
Fetch the complete documentation index at: https://docs.linquid.io/llms.txt
Use this file to discover all available pages before exploring further.
Billing API
Billing is workspace-scoped and covers plan lifecycle plus credit balance operations.Authentication model
- Session auth required (
/billing/*is not API-key accessible). workspaceIdpath must match an accessible workspace.- Permission checks are applied per route (
billing:read/billing:manage).
Endpoint matrix
Subscription and plans
GET /billing/plansGET /billing/:workspaceIdPOST /billing/:workspaceId/subscribePOST /billing/:workspaceId/change-planPOST /billing/:workspaceId/cancelPOST /billing/:workspaceId/reactivateGET /billing/:workspaceId/portal
Credits and top-up
POST /billing/:workspaceId/add-creditsGET /billing/:workspaceId/credit-packagesGET /billing/:workspaceId/transactions
Auto-recharge
GET /billing/:workspaceId/auto-rechargePUT /billing/:workspaceId/auto-rechargePOST /billing/:workspaceId/auto-recharge/payment-method
Usage and history
GET /billing/:workspaceId/usageGET /billing/:workspaceId/usage-historyGET /billing/:workspaceId/history
Data model highlights
- Monetary balances are represented in micro-dollars internally and converted for display.
- Usage aggregates combine click/conversion analytics with fraud-check cost accounting.
- History combines Stripe invoice records with billing-relevant credit transactions.
Auto-recharge behavior
To enable auto-recharge:- workspace needs active subscription/customer context
- a payment method must be configured
- threshold/amount validation is enforced on update
Caching behavior
High-read usage endpoints (/usage, /usage-history) are snapshot-cached briefly to reduce repeated analytics load.
Typical failures
404 NOT_FOUNDworkspace missing/inaccessible400invalid plan/period/payment setup403permission denied500upstream billing provider or analytics fetch errors
/api-reference/billing/subscriptions-and-plan-lifecycle/api-reference/billing/credits-auto-recharge-and-history/user-guides/manual/monetization/billing-plans-and-credits/user-guides/manual/monetization/billing-plans-and-credits/user-guides/manual/monetization/plans-pricing-and-limits-reference

