Common Workflows
Adding a New User to a Tenant
Admin invites user: POST /invite
User receives email with invitation link
User clicks link: GET /invitations/{token}/accept
If new user: Set password via POST /invitations/{token}/set-password
User is added to tenant with specified role
Setting Up Billing
Create tenant: POST /tenants
Add payment method:
Get setup intent:
POST /payments/setup-intentCollect card with Stripe.js on frontend
Attach payment method:
POST /payments/payment-methods
Create subscription: POST /payments/subscription
Subscription status updated via webhooks
Changing Subscription Plans
Get available plans: GET /payments/plans
Update subscription: `PATCH /payments/subscription` {%{% step %}
Stripe prorates the charges automatically
Webhook updates subscription status
Additional Resources
FastAPI Documentation: https://fastapi.tiangolo.com
SQlAlchemy Documentation: https://www.sqlalchemy.org/
Stripe API Reference: https://stripe.com/docs/api
React Documentation: https://react.dev
Tailwind CSS: https://tailwindcss.com
Support
For questions or issues, contact: [email protected]
Last updated
