Dealer FEES

I have been negotiating with dealers on a certified preowned SUV in New Jersey.

The Nissan dealer for a Nissan Rogue Sport added $5,000 as Certification fees which I refused to pay or negotiate on, even though he said that it was the cost of certification.

Are they allowed to charge a certification fee in NJ.

I also reached out to a Hyundai dealer for a CPO SUV - Hyundai Kona Sport and he told me that there are emission testing fees - he did not specify the amount but wanted me to come in to discuss and test drive.

Are they allowed to charge this fee which I think is ridiculous considering that they have to get it inspected to sell it anyway and they are just trying to add fees on top of the MSRP