billing

Reconcile the subscription against Dodo

Fetches the workspace's subscription facts from Dodo and updates the local mirror: status, plan, renewal date, cancellation flag — and which subscription the workspace even has, matched via checkout metadata when the mirror never learned of a purchase. Webhooks remain the only path that grants credits; this syncs facts, which are idempotent. The client calls it after returning from checkout and on billing-page load, so the page is truthful even where webhooks cannot reach (local development) or have not arrived yet (production).

post/api/v1/billing/reconcile

Request

  • Base URL: https://api.cadencz.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.cadencz.com/api/v1/billing/reconcile
  • Auth: HTTP bearer

Response

Successful Response

idstring required
workspace_idstring required
tierstring required
plan_statestring required
plan_labelstring required
statusstring required
renews_atstring nullable required
cancel_at_period_endboolean required
billing_period'monthly' | 'yearly' nullable required
has_provider_subscriptionboolean
trial_eligibleboolean required
included_creditsinteger required
channel_capinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.