diff --git a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java index 706e23a9b..a5dfed231 100644 --- a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java +++ b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/services/PolicyStoreService.java @@ -109,6 +109,8 @@ public Policy registerPolicy(final CreatePolicyRequest request) { final Policy policy = edcTransformer.transformToIrsPolicy(policyJson); policy.setValidUntil(request.validUntil()); + handleTrialToModifyFallbackPolicy(policy.getPolicyId()); + registeredPolicy = doRegisterPolicy(policy, request.businessPartnerNumber() == null ? BPN_DEFAULT : request.businessPartnerNumber());