You must have the billing permission in your organization to start checkout sessions or open the Customer Portal. Organization owners always have this permission. See Organizations and billing for how to grant billing access to other members.
Available plans
Your organization starts on the Free tier until a checkout is completed.
Start a checkout session
POST /api/billing/checkout-session creates a Stripe Checkout session for the specified plan and returns a redirect URL. Send the user to that URL to complete payment.
Redirect the user to the returned
url. After a successful payment, Stripe sends a webhook to Safeclose, which links your organization to the Stripe customer and activates the selected plan. The user is then redirected back to your billing page.
If the user cancels the checkout, they are redirected back to your billing page with no changes to your subscription.
Open the Customer Portal
POST /api/billing/portal opens the Stripe Customer Portal where your organization can update payment methods, download invoices, or cancel the subscription.
Redirect the user to the returned
url. Stripe handles the session and returns the user to your billing page when they are done.
How billing status updates work
After a successful checkout or subscription change, Stripe sends a webhook event to Safeclose. Safeclose processes the following events automatically:
You do not need to take any action for these updates — Safeclose handles them in the background.
API summary
Related pages
Organizations and billing
Learn how to manage org members, assign billing permissions, and view your plan.
Stripe webhook events
Understand how Safeclose verifies and processes Stripe webhook events.
