diff --git a/src/Api/AdminConsole/Models/Response/Organizations/OrganizationResponseModel.cs b/src/Api/AdminConsole/Models/Response/Organizations/OrganizationResponseModel.cs index 767f83ee22..e72f1fcf82 100644 --- a/src/Api/AdminConsole/Models/Response/Organizations/OrganizationResponseModel.cs +++ b/src/Api/AdminConsole/Models/Response/Organizations/OrganizationResponseModel.cs @@ -142,12 +142,13 @@ public class OrganizationSubscriptionResponseModel : OrganizationResponseModel { if (license != null) { - // License expiration should always include grace period - See OrganizationLicense.cs + // License expiration should always include grace period (unless it's in a Trial) - See OrganizationLicense.cs. Expiration = license.Expires; - // Use license.ExpirationWithoutGracePeriod if available, otherwise assume license expiration minus grace period - ExpirationWithoutGracePeriod = license.ExpirationWithoutGracePeriod ?? - license.Expires?.AddDays(-Constants - .OrganizationSelfHostSubscriptionGracePeriodDays); + + // Use license.ExpirationWithoutGracePeriod if available, otherwise assume license expiration minus grace period unless it's in a Trial. + ExpirationWithoutGracePeriod = license.ExpirationWithoutGracePeriod ?? (license.Trial + ? license.Expires + : license.Expires?.AddDays(-Constants.OrganizationSelfHostSubscriptionGracePeriodDays)); } }