public async Task <CustomerProfileResponse> GetByCustomerIdAsync(
            [Required][FromRoute] string customerId,
            [FromQuery] bool includeNotVerified,
            [FromQuery] bool includeNotActive)
        {
            if (string.IsNullOrWhiteSpace(customerId))
            {
                throw new BadRequestException($"{nameof(customerId)} can't be empty");
            }

            var result = await _customerProfileService.GetByCustomerIdAsync(customerId, includeNotVerified, includeNotActive);

            if (!string.IsNullOrEmpty(result?.Profile?.CustomerId))
            {
                _log.Info(GetApiKeyName(), new { customerId = result.Profile.CustomerId });
            }

            return(_mapper.Map <CustomerProfileResponse>(result));
        }