Subs target a sub-org; per-sub members split from account admins

RefactorBillingService
Shipped
April 28, 2026 at 1:56 AM UTC
Author
Kamo
Commit
2cdd058

Subscriptions now require targetOrganizationId on create — the (account, market, target_org) triple is the new uniqueness key. AccountBillingMemberService is split into AccountMemberService (account-level admins) and SubscriptionMemberService (per-sub licensees + sub-managers). LicenseService priority lookup reads **************** on the specific sub plus TeamMember.isOrganizationOwner on the target org. EntitlementInvalidator gains invalidateSubscription. AccountBillingService no longer auto-seeds the free KamoCRM sub — that lives in the org-creation hook over in SecurityService.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing