Short answer. Yes, you pay but with a deduction. Article 1234 says that when an obligation has been substantially performed in good faith, the obligor may recover as though he had completely fulfilled it, less the damages you suffered from the defects. So you pay the contract price minus what it fairly costs to correct the remaining flaws.

What the law says

If the obligation has been substantially performed in good faith, the obligor may recover as though there had been a strict and complete fulfillment, less damages suffered by the obligee.

Civil Code, Article 1234 — Substantial Performance in Good Faith. Read the full provision →

Substantial performance in good faith

Article 1234 softens the harsh idea that anything short of perfect performance means the performer gets nothing. It provides that if the obligation has been substantially performed in good faith, the obligor may recover as though there had been a strict and complete fulfillment, less damages suffered by the obligee. The doctrine of substantial performance recognises that a contractor who has essentially done the job honestly, leaving only minor items or defects, should not forfeit his whole fee over the shortfall. He is allowed to recover on the contract as if he had finished it — but on the express condition that what you lost because of the defects is subtracted first.

The price is reduced by your damages

The article does not make you pay for imperfect work at the full rate. Recovery is less damages suffered by the obligee. That is precisely the deduction you are asking about. From the contract price you may subtract the reasonable cost of remedying the defects, and any other loss the defects fairly caused you. The contractor is paid for the substantial work he genuinely delivered, and you are made whole for the part he did not. The result is meant to be fair to both sides — he is not stripped of everything for a small failing, and you are not forced to shoulder the cost of fixing his mistakes.

Two conditions must both be present

The doctrine only helps a contractor who meets both of its requirements. First, performance must be substantial — the essential work done, with only minor or incidental defects remaining, not major portions left unfinished. Second, it must be in good faith — an honest effort to comply, not a deliberate cutting of corners or a conscious deviation from the agreement. A contractor who wilfully skimped, or who left significant work undone, cannot invoke Article 1234 to demand near-full payment. The provision rewards honest, nearly complete performance; it does not shield bad faith or genuine non-completion dressed up as a few small defects.

What it does not allow, and your position

Article 1234 does not require you to accept seriously incomplete or bad-faith work and simply dock a bit off the price — those are handled by other rules, including the remedy of having poor work corrected or undone at the contractor's cost. What it prevents is a contractor losing his entire fee over trivial defects, and equally, it prevents you from withholding the whole price when only minor items remain. The sensible course is to agree on the deduction, or to have the defects fixed and offset the cost against what you owe. Either way, document the defects and the reasonable cost of repair, since that figure drives the deduction.

Cases citing this provision

These Supreme Court decisions cite the provision above. We list them so you can read them yourself; the summaries of what each decided are not ours to give.

Related provisions

Note. Statute text quoted on this page is reproduced from the official enactment and is linked to the full provision. The explanation around it is general legal information from Vivas & Nobles Law Office, not legal advice. Whether it applies to your situation depends on facts only a lawyer reviewing them can assess.