This does not make much sense to me. Why would they complain after paying what sounds like most of your invoice? You need to ask them to get this friend of theirs to document what he thinks is "illegal" (I presume he means not to BS7671, there is a difference). You should also contact your governing body if you have one, and pre-warn them that they may get a complaint, they may give you advice on how to proceed. If they cannot or will not expand on "illegal" then I would just take it with a pinch of salt and move on, as has been said it is not worth the time. It might help members on here if you provide more details of what the work entailed, could they be saying that it is not to BS7671 or that goods provided etc are not as stated in your quotation (I presume you have a written copy)