diff --git a/web/src/main/java/it/pagopa/selfcare/onboarding/web/controller/TokenV2Controller.java b/web/src/main/java/it/pagopa/selfcare/onboarding/web/controller/TokenV2Controller.java index 04cbec97..227e35e9 100644 --- a/web/src/main/java/it/pagopa/selfcare/onboarding/web/controller/TokenV2Controller.java +++ b/web/src/main/java/it/pagopa/selfcare/onboarding/web/controller/TokenV2Controller.java @@ -162,7 +162,7 @@ public ResponseEntity delete(@ApiParam("${swagger.tokens.tokenId}") @PathVariable(value = "onboardingId") String onboardingId) { log.trace("delete Token start"); log.debug("delete Token tokenId = {}", onboardingId); - tokenService.rejectOnboarding(onboardingId, null); + tokenService.rejectOnboarding(onboardingId, "REJECTED_BY_USER"); return ResponseEntity.status(HttpStatus.NO_CONTENT).build(); }