run a search on hitch, and you will find good info on the wire harness. IN the end, save yourself the time, and just get the Nissan OEM harness, because it comes with the plug bracket, and the required relays. The post will show you all the details

plug is about $55-60