diff --git a/bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs b/bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs index f252f14346..380d404b21 100644 --- a/bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs +++ b/bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs @@ -436,11 +436,15 @@ public class ProviderService : IProviderService return; } - var subscriptionItem = await GetSubscriptionItemAsync(organization.GatewaySubscriptionId, GetStripeSeatPlanId(organization.PlanType)); - var extractedPlanType = PlanTypeMappings(organization); - if (subscriptionItem != null) + if (!string.IsNullOrWhiteSpace(organization.GatewaySubscriptionId)) { - await UpdateSubscriptionAsync(subscriptionItem, GetStripeSeatPlanId(extractedPlanType), organization); + var subscriptionItem = await GetSubscriptionItemAsync(organization.GatewaySubscriptionId, + GetStripeSeatPlanId(organization.PlanType)); + var extractedPlanType = PlanTypeMappings(organization); + if (subscriptionItem != null) + { + await UpdateSubscriptionAsync(subscriptionItem, GetStripeSeatPlanId(extractedPlanType), organization); + } } await _organizationRepository.UpsertAsync(organization);