internal

Cancel Subscription

Cancel the current subscription at the end of the paid period.

The user keeps Pro access until current_period_end. Stripe's customer.subscription.updated webhook persists the cancel flag and sends the confirmation email; we also write the flag locally for an immediate UI update.

post/billing/subscription/cancel

Request

  • Base URL: https://api.companydata.dk (the document declares no server; this is the origin it was published from)
  • URL: https://api.companydata.dk/billing/subscription/cancel
  • Auth: HTTP bearer

Request body

reasonstring nullable

Optional cancellation reason for retention analytics

Response

Successful Response

cancel_at_period_endboolean required
current_period_endstring date-time nullable
statusstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.