`PATCH /billing` — update billing settings.
/billingRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/billing" \ -H "Content-Type: application/json" \ -d '{}'{ "annual_discount_percent": 0, "auto_topup_enabled": true, "auto_topup_packs": 0, "auto_topup_threshold_pct": 0, "billing_period": "string", "gb_exported_limit": 0, "gb_ingested_limit": 0, "gb_scanned_limit": 0, "gb_stored_limit": 0, "is_trial_active": true, "org_id": "string", "payment_method_configured": true, "plan_tier": null, "retention_days": 0, "stripe_customer_id": "string", "trial_ends_at": "string", "updated_at": "string"}`GET /billing/payment-methods` — the org's saved cards from Stripe. Any admin may view (masked display fields only); empty when the org has never had a Stripe customer. A management API that does not answer is a `503`, never an empty list. GET
Previous Page
`GET /billing/plans` — the public plan catalog. **Unauthenticated** (the signup page reads it before an org exists) and stateless: composed from the compiled-in `plan-defaults` / `pricing-defaults` codegen + the hand-written plan-catalog labels/features. The single wire source that replaces the frontend's `PRICING_PLANS` constant. GET
Next Page