N.Y. Uniform Commercial Code § 2-601
Section 2--601. Buyer's Rights on Improper Delivery. Subject to the provisions of this Article on breach in installment contracts (Section 2--612) and unless otherwise agreed under the sections on contractual limitations of remedy (Sections 2--718 and 2--719), if the goods or the tender of delivery fail in any respect to conform to the contract, the buyer may