Hello rini's mom
When you define the passengers on the site nightjet.com, you can indicate that you have a ticket for Switzerland:

But note that you will get a discount only for the Swiss part of the trip and only if you buy a flex ticket.
Kind regards
Daniel