Common Workflows

Adding a New User to a Tenant

1

Admin invites user: POST /invite

2

User receives email with invitation link

3

User clicks link: GET /invitations/{token}/accept

4

If new user: Set password via POST /invitations/{token}/set-password

5

User is added to tenant with specified role

Setting Up Billing

1

Create tenant: POST /tenants

2

Add payment method:

  • Get setup intent: POST /payments/setup-intent

  • Collect card with Stripe.js on frontend

  • Attach payment method: POST /payments/payment-methods

3

Create subscription: POST /payments/subscription

4

Subscription status updated via webhooks

Changing Subscription Plans

1

Get available plans: GET /payments/plans

2

Update subscription: `PATCH /payments/subscription` {%{% step %}

Stripe prorates the charges automatically

3

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