# Billing (/api/reference/billing)



Billing endpoints expose an organization's ledger: its current balance,
its transaction history, and a usage breakdown of VM-lease time by pipeline
and user. They also start a Stripe Checkout session for topping up and
redeem coupon codes.

Balances are denominated in cents. Top-ups are credited asynchronously when
Stripe confirms the checkout via webhook, so a successful `checkout` call
returns a redirect URL, not an immediate balance change.

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document="&#x22;./openapi.json&#x22;" webhooks="[]" operations="[{&#x22;path&#x22;:&#x22;/api/v0/billing/balance/{org}&#x22;,&#x22;method&#x22;:&#x22;get&#x22;},{&#x22;path&#x22;:&#x22;/api/v0/billing/transactions/{org}&#x22;,&#x22;method&#x22;:&#x22;get&#x22;},{&#x22;path&#x22;:&#x22;/api/v0/billing/usage/{org}&#x22;,&#x22;method&#x22;:&#x22;get&#x22;},{&#x22;path&#x22;:&#x22;/api/v0/billing/usage/{org}/breakdown&#x22;,&#x22;method&#x22;:&#x22;get&#x22;},{&#x22;path&#x22;:&#x22;/api/v0/billing/usage/{org}/series&#x22;,&#x22;method&#x22;:&#x22;get&#x22;}]" />
