Skip to main content
GET
Preview the financial consequence of a cancellation
Returns the deterministic financial forecast of canceling a subscription, shown before the mutation so an operator never cancels blind. The cancel mutation itself is unchanged — this endpoint only reads. It exposes exactly what the engine computes deterministically:
  • effective_date and resulting_status — when the cancel would take effect and the status it leaves the subscription in.
  • deferred_revenue_forfeited / recognized_as_breakage — the still-deferred revenue an immediate cancel forfeits and recognizes as breakage, computed read-only from the same revenue-recognition data the mutation uses.
  • avoided_future_recurring — the future recurring amount that will no longer bill.
  • flat_fee_refund — always 0: the flat fee is paid in advance and is not refunded.
It deliberately omits an unused-time proration credit (the cancel mutation posts none) and a final metered-usage figure (only the mutating invoice path can produce one). See Explain any number.

Query Parameters

Example Request

Response

Fields

Read-only and side-effect free — nothing is posted, scheduled, or changed. A missing or cross-tenant id returns 404.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Path Parameters

id
string<uuid>
required

Query Parameters

immediately
boolean
default:false

Preview an immediate cancel (true) vs cancel-at-period-end (default).

Response

The cancel preview.

data
object