Illegal Contract
When a licensing statute is intended primarily to raise revenue rather than protect the public, a contractor's failure to obtain the required license generally will not render the contract unenforceable. Thus, a client ordinarily may not avoid payment by claiming the contract is illegal solely because the contractor lacked the license.