API
Credits API template
Document product credit endpoints after implementing them
The credit ledger is currently available to authenticated application code and
the dashboard. The boilerplate does not expose /api/v1/credits.
When a cloned product adds a credit endpoint, call the existing server-side
getCreditBalance() and consumeCredits() helpers instead of writing ledger
rows directly. Document the real response and insufficient-balance behavior
here after adding authentication, authorization and concurrency tests.