Microwave

Our MW oven just stopped working. For the past few days, when we opened the door, the fan would come on. Now the only thing that works is the timer. I assume it is a door switch of some kind? Because this unit is built in, I’d really prefer to fix it vice buy a new one. Does anyone know what part numbers I need to order to rectify this? Thanks all!