Organizations

Cancel the subscription

Changed on

Open the Stripe billing portal to cancel the organization's subscription at the end of its period, and return its URL, which comes back to returnUrl (a page of the web app). The organization keeps its plan until then. For a subscription already set to end, returns returnUrl. Requires the billing: ["manage"] permission (owners and admins)

post/api/v1/organizations/{organizationId}/billing/cancel

Request

  • Base URL
    https://app.easyscraper.com
  • URL
    https://app.easyscraper.com/api/v1/organizations/{organizationId}/billing/cancel
  • Auth
    API key in cookie better-auth.session_token

Path parameters

organizationIdstring uuid required

Request body

returnUrlstring uri required

Response

OK

urlstring uri required

Changes