Wiring a 4 Pin lighted rocker switch, depends on the type of rocker switch.
We have these two Rocker Switches, with technical information:
Just remember, whenever you come across a part with unknown connections, the first thing to do is look for the datasheet! If you don’t understand the pinout from the datasheet, then by all means post a question about it and we will assist with the wiring of our Rocker Switches.
Below is a diagram on how to wire a 4 Pin Lighted Rocker Switch: