The buyer on notifying the seller of the buyer's intention to do so may deduct all or any part of the damages resulting from any breach of the contract from any part of the price still due under the same contract.
N.D. Cent. Code § 41-02-96
(2-717) Deduction of damages from the price
Known as the Uniform Commercial Code
The act spans §§ 41–41 (597 sections).
Official source: North Dakota Legislative Branch. Reproduced from public-domain North Dakota statutes; confirm against the official source for the current text. Not legal advice.