Organizations
Subscribe to a plan
Changed onSubscribe the organization to a plan's monthly or yearly price, and return the URL to send the member to. Without a subscription, it's Stripe Checkout, which comes back to returnUrl (a page of the web app) once paid. With one, the subscription moves to the plan: through the billing portal, where the member confirms the prorated amount, or at once (prorated) when either plan charges per member, returning returnUrl. Requires the billing: ["manage"] permission (owners and admins)
post/api/v1/organizations/{organizationId}/billing/subscribe
Request
- Base URLhttps://app.easyscraper.com
- URLhttps://app.easyscraper.com/api/v1/organizations/{organizationId}/billing/subscribe
- AuthAPI key in cookie better-auth.session_token
Path parameters
organizationIdstring uuid required
Request body
Response
OK
Changes
- breaking
added
subschema #1to the response bodyoneOflist for the response status
- breaking
- info
endpoint added
- info